wood burning stoves 2.0*
The moose likes Mac OS and the fly likes How to configure OSX for Tomcat? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » Mac OS
Bookmark "How to configure OSX for Tomcat?" Watch "How to configure OSX for Tomcat?" New topic
Author

How to configure OSX for Tomcat?

Dominic Steng�rd
Ranch Hand

Joined: Feb 05, 2001
Posts: 186
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


Dominic Steng�rd<br />Sun Certified Java 2 Programmer
Venkatraman Kandaswamy
Ranch Hand

Joined: Jul 07, 2004
Posts: 120
I think catalina.sh does not have execute permission.Give it executable permission and you are all set.


--Venkatraman<br />SCJP 1.4<br /><a href="http://kvrlogs.blogspot.com" target="_blank" rel="nofollow">blog</a>
Dominic Steng�rd
Ranch Hand

Joined: Feb 05, 2001
Posts: 186
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

Joined: Feb 05, 2001
Posts: 186
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.
 
jQuery in Action, 2nd edition
 
subject: How to configure OSX for Tomcat?
 
Similar Threads
ben..............tomcat is not installing
logs: catalina v. console.log
Internal Servlet Error (Error: 500)
tomcat on windows 98
starting tomcat eror