Thanks a lot, it worked...  =)

"Longson, Robert" <[EMAIL PROTECTED]> wrote:  lalyne,

Either
a) edit service.bat and change the PR_CLASSPATH to include your stuff then type 
service remove followed by service install.
or
b) run tomcat5w.exe //ES//tomcat, go to the java tab and edit the Java 
Classpath.

restart tomcat and it should work.

Best regards

Robert.

-----Original Message-----
From: wendy [mailto:[EMAIL PROTECTED]
Sent: 15 November 2005 09:40
To: users@tomcat.apache.org
Subject: 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 

--------------------------------------------------------

The information contained in this message is intended only for the recipient, 
and may be a confidential attorney-client communication or may otherwise be 
privileged and confidential and protected from disclosure. If the reader of 
this message is not the intended recipient, or an employee or agent responsible 
for delivering this message to the intended recipient, please be aware that any 
dissemination or copying of this communication is strictly prohibited. If you 
have received this communication in error, please immediately notify us by 
replying to the message and deleting it from your computer. 
--------------------------------------------------------


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





 
never argue with idiots, they'll take you down to their level, and beat you 
with experience 








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

Reply via email to