Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to configure OSX for Tomcat?

 
Dominic Steng�rd
Ranch Hand
Posts: 186
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey Mac gurus!

Have placed Tomcat under ~/Library/tomcat and have set the environment variables as follows in my .bash_profile:

TOMCAT_HOME="~/Library/tomcat"
CATALINA_HOME="~/Library/tomcat"
export CATALINA_HOME

When I cd into tomcat/home and execute the command ./startup.sh I get the following error message:

Cannot find ./catalina.sh
This file is needed to run this program

The problem obviously lies with the environment variables.
Thanks in advance!

Regards
 
Venkatraman Kandaswamy
Ranch Hand
Posts: 120
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think catalina.sh does not have execute permission.Give it executable permission and you are all set.
 
Dominic Steng�rd
Ranch Hand
Posts: 186
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks buddie!

The catalina.sh problem is solved ... but now the problem is that it says:

Cannot find ~/Library/tomcat/bin/setclasspath.sh
This file is needed to run this program

Ive chmoded it so it has execute permission, but it still doesnt work.
Any thought?
Thanks!

Regards
 
Dominic Steng�rd
Ranch Hand
Posts: 186
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Found the error!

Simple mistake really, turns out I had set both the TOMCAT_HOME and CATALINA_HOME, only one of them is supposed to be set.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic