Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • 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

How to configure OSX for Tomcat?

 
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
 
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.
 
I child proofed my house but they still get in. Distract them with this tiny ad:
Enterprise-grade Excel API for Java
https://products.aspose.com/cells/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!