• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Junilu Lacar
  • Liutauras Vilda
Sheriffs:
  • Paul Clapham
  • Jeanne Boyarsky
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
Bartenders:
  • Jesse Duncan
  • Frits Walraven
  • Mikalai Zaikin

Tomcat not starting up on MacOS X

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,
I just downloaded the zip file of Tomcat 8.0.14. But I am not able to start it.
I have setup my $CATALINA_HOME environment variable to /Library/Java/Tomcat and then tried to invoke startup.sh file like this:
$CATALINA_HOME/bin/startup.sh
this is what I got:



This shows that Tomcat has started. But when I try to open http://localhost:8080 on all my browsers(chrome, mozilla, safari, opera and my personally made JavaFX browser), they complain that the page was not found.

When I try to shutdown Tomcat as:
$CATALINA_HOME/bin/shutdown.sh

It gives me this output:



It says, "java: No such file or directory".

Whats is wrong with this? Am I missing something? This never happened on my windows PC I had an year ago. Please Help.

My JDK version - JDK 1.8
 
Saloon Keeper
Posts: 25660
183
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
That's an awfully strange setting for JAVA_HOME.

You SHOULD be able to issue the command:



from your command line and see Java run. If not, then it's definitely not the right value.

I'd actually expect something like:

/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk

for JAVA_HOME.
 
Ranch Hand
Posts: 327
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You're almost there on the JAVA_HOME; but you want to look in /System/Library/Java/JavaVirtualMachines. I just read this path is deprecated so I'm not sure what the current information really is.

Take a look at:
http://stackoverflow.com/questions/6614380/jdk-on-osx-10-7-lion

It is confusing; but there is some information there that could be helpful.
 
pie. tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic