Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Remove tip that suggests editing setclasspath.sh. I think it is just wrong.

...

b) Edit the file catalina.properties under $CATALINA_BASE/conf; there is a property called common.loader to which you can add additional paths to find JARs or classes for the common classloader.

How do I

...

If Tomcat was working fine the first few times after installation but suddenly refuses to start up and gives the following error message:

No Format

$ ./startup.sh
Cannot find /path/to/tomcat/bin/setclasspath.sh
This file is needed to run this program

Then all you need to do is to include the complete paths for the BASEDIR and CATALINA_HOME variables in the files setclasspath.sh and catalina.sh respectively.

This should be done even if CATALINA_HOME has been defined and exported previously on the command line and/or in /etc/profile as well. Moreover, this error message persists even though the file setclasspath.sh is present in Tomcat's bin directory.

No Format

$ echo "BASEDIR=/path/to/tomcat" >> setclasspath.sh
$ echo "CATALINA_HOME=/path/to/tomcat" >> catalina.sh

How do I authenticate Manager access via JNDI to Active Directory for multiple Tomcat instances?

...