• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • paul wheaton
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Tim Holloway
  • Carey Brown
  • salvin francis

Problem running Tomcat 5.5.9 on OS X Tiger

 
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!
 
Marshal
Posts: 67279
170
Mac Mac OS X IntelliJ IDE jQuery Java
  • 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:

 
Ranch Hand
Posts: 1179
Mac OS X Eclipse IDE
  • 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!
 
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
create, convert, edit or print DOC and DOCX in Java
https://products.aspose.com/words/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!