You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by wendy <la...@yahoo.com> on 2005/11/15 10:39:52 UTC

problem on running tomcat as windows services

Hi,
   
  I would like to ask about my observation on Tomcat run on different ways. 
  First, I run Tomcat on the command-line. I encountered no errors and I can access my webapp succesfully.
   
  Then, I try to re-run Tomcat as Windows service. I execute the ff command:
   
  C:\Tomcat\bin>NET START Tomcat5
The Apache Tomcat service is starting.
The Apache Tomcat service was started successfully.
   
  Then I access the url of my webapp. I got HTTP Status 500- error, saying:
  javax.servlet.ServletException: javax.xml.transform.TransformerException: javax.xml.transform.TransformerException: Unable to find file: shared/header.xsl
   
  My xsl files were located at TOMCAT_HOME/webapps/MyApp/xsl. 
  I put this line on my setclasspath.bat:
   
  set CLASSPATH=%JAVA_HOME%\lib\tools.jar
set CLASSPATH=%CLASSPATH%;%CATALINA_HOME%\webapps\MyApp\xsl;%CATALINA_HOME%\webapps\MyApp\xml

  Basically, that's the only change I made on my Tomcat instance' config files, and it run successfully when I'm runnin my Tomcat on the command-line.
   
  Why is it that i got an HTTP error when I'm running the same webapp on Tomcat, which is started as a Windows service?
   
  Is there anything I have to set for me to run it as a Windows service, successfully?
   
  I really need a reply. I'm getting confused.
   
  Thanks a lot.
  lalyne

Send instant messages to your online friends http://uk.messenger.yahoo.com