• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to define BASEDIR env variable for Tomcat configuration

 
madhu amar
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
graham o'regan
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
make sure that *.sh files are executeable, if not, the env vars aren't set at start up
 
Joel Mata
Greenhorn
Posts: 25
Java Oracle Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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>
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic