• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Rob Spoor
  • Bear Bibeault
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:
  • Frits Walraven
  • Himai Minh

How to configure OSX for Tomcat?

 
Ranch Hand
Posts: 186
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 am Arthur, King of the Britons. And this is a tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic