Hi folks. I'm still unsuccessful at adding an explicit classpath to Tomcat when running as a service via the -Djava.class.path= switch detailed below.
Can someone confirm or deny that this is the proper way to add an explicit classpath to the service? If so, I'll log the bug. Thanks, -R -----Original Message----- From: Robert Ensinger [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 03, 2004 11:40 PM To: [EMAIL PROTECTED] Subject: need help adding classpath to Tomcat 5.0.18 NT Service Hi Folks, I'm working with an app that needs a classpath "kickstart" to run properly. The jar is deployed to %CATALINA_HOME%\shared\lib\. When starting the server via the startup.bat, the app works properly when the set classpath variable in the setclasspath.bat is defined as: set CLASSPATH=%JAVA_HOME%\lib\tools.jar;%CATALINA_HOME%\shared\lib\engine.jar Now I wish to see this app run when Tomcat is started as a service. Under Java VM in the configuration utility I have added: -Djava.class.path="%JAVA_HOME%\lib\tools.jar;%CATALINA_HOME%\shared\lib\engi ne.jar" My Java Options box reads as follows: -Dcatalina.home="C:\Program Files\Apache Software Foundation\Tomcat 5.0" -Djava.endorsed.dirs="C:\Program Files\Apache Software Foundation\Tomcat 5.0\common\endorsed" -Djava.class.path="%JAVA_HOME%\lib\tools.jar;%CATALINA_HOME%\shared\lib\engi ne.jar" -Xrs This isn't working. I've read the docs and How Tos, spelunked this list, googled, added this classpath to the systems environmental variables, to the catalina.xml, and even the catalina.proprties. None of this seems to work. Where is the proper spot to add a classpath to Tomcat running as a service? What is the proper syntax? (examples?) My java version is 1.4.2. I have successfully setup this app in JRun4 & Weblogic 8.1 running as services. Need a little help with the Tomcat. Thanks! Robert Ensinger --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
