• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem running Tomcat 5.5.9 on OS X Tiger

 
Unnsse Khan
Ranch Hand
Posts: 511
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello again

I just downloaded Tomcat 5.5.9 onto my G4 PowerBook running OS X Tiger. I am using the JDK 1.5.0 as my JAVA_HOME.

This is what my .bash_profile looks like:



When I cd into the $CATALINA_HOME/bin directory and I receive the following error message:



Now when I do a ls -al, one can clearly see that this file exists:



What am I possibly doing wrong?

With thanks!
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64832
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sh startup.sh


Don't run the script using sh. This launches a new process whose working directory is the home folder of the process owner.

Just execute the script directly:

 
Rene Larsen
Ranch Hand
Posts: 1179
Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
and I think that you need to make all *.sh scripts executeble

try "chmod 755 *.sh" in a Terminal window in the bin folder and "./startup.sh" to start tomcat

Rene
 
Unnsse Khan
Ranch Hand
Posts: 511
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bear & Rene,

Thanks guys! This actually worked... I posted a earlier post on the JSP forum that I was having difficulty compiling a JSP file with Subversion on my OS X Tiger. Well, I think that its because that the particular version (5.0.28) of Tomcat which I was using didn't support JDK 1.5 (it even says on the jakarta.tomcat.org URL that Tomcat 5.5.9 is the one that is expected to be used for JDK 1.5) and also conflicted with a dynamic library in Subversion.

Well, now Subversion 1.2.0, JDK 1.5, and Tomcat 5.5.9 are fully operational on my PowerBook!

Also, for some odd reason, the sh startup.sh does work! I can start or shutdown tomcat by using sh or ./

What's weird is that the war file from my project actually did work on my WinXP machine running JDK 1.5 and Tomcat 5.0.19.

Thanks for chmod advice...

With thanks!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic