I need to be able to set a system property (i.e. -Dxxx=yyy). How can I accomplish this in Tomcat 4.0?

Alessandro A. Garbagnati

In Tomcat 3.x you can set the -D properties putting them into the environment variable TOMCAT_OPTS that is added to the JVM starting call from inside the tomcat.sh (or tomcat.bat) script.

Tomcat 4.0 follows the same logic, but the name of the variable is CATALINA_OPTS. The reason is because you can run the two different versions.

or, if you have more than one option
    CATALINA_OPTS="-Dxxx=yyy -Dpippo=pluto -D..."

Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.



About | Sitemap | Contact