aspose file tools*
The moose likes Tomcat and the fly likes How to define BASEDIR env variable for Tomcat configuration Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "How to define BASEDIR env variable for Tomcat configuration" Watch "How to define BASEDIR env variable for Tomcat configuration" New topic
Author

How to define BASEDIR env variable for Tomcat configuration

madhu amar
Greenhorn

Joined: Aug 25, 2005
Posts: 1
Iam trying to run Tomacat in Solaris 9 and having problems during the process.The version is tomcat 5.5.11.When i execute startup.sh its giving the following error:

The BASEDIR environment variable is not defined correctly.
This environment variable is needed to run this program.

Can someone tell me how to set BASEDIR env varaible?

Thanks in advance
Madhu
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

You don't set that one yourself.
"startup.sh" runs the catalina.sh script which in turn runs the setclasspath.sh script. This is where BASE_DIR gets set.

You should only need to set the JAVA_HOME environment variable.

If you're running multiple instances of Tomcat from one installation, you will also need to set CATALINA_HOME and CATALINA_BASE.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
graham o'regan
Greenhorn

Joined: Jul 29, 2003
Posts: 2
make sure that *.sh files are executeable, if not, the env vars aren't set at start up
Joel Mata
Greenhorn

Joined: Oct 31, 2009
Posts: 25

graham o'regan wrote:make sure that *.sh files are executeable, if not, the env vars aren't set at start up


Yes, in my case i had to change all the permissions recursively from the apache-tomcat-<version>


ITIL V3, SCJP, Spring Core v3 and Going for the OCJMD
 
Consider Paul's rocket mass heater.
 
subject: How to define BASEDIR env variable for Tomcat configuration