tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dahnke, Eric" <>
Subject RE: How to run tomcat as service program in Win2k [[HELP]]
Date Thu, 11 Apr 2002 16:29:00 GMT

I've followed this thread and am still having no luck. Here's the situation.
The TC that comes with jwsdp is TC4.0b7. This release of TC doesn't include
a tomcat.exe file, so I grabbed one from the TC4.0.1 release. I then run
following from the cmd prompt.

"%CATALINA_HOME%\bin\tomcat.exe" -install Tomcat
"%JAVA_HOME%\jre\bin\classic\jvm.dll" -Djava.class.path=
-Dcatalina.home="%CATALINA_HOME%" -Xrs -start
org.apache.catalina.startup.Bootstrap -params start -stop
org.apache.catalina.startup.Bootstrap -params stop -out

Response is:

The service was successfully installed.

Upon starting the service I get:

"Could not start the service on Local Computer. The service did not return
an error. This could be a Windows error or an internal service error."

the stderr.log file is created but is empty.

Anyone have any ideas? How can I further troubleshoot. Regards Eric

-----Original Message-----
From: Jordan C N Chong []
Sent: Thursday, April 11, 2002 2:06 AM
To: Tomcat Users List
Subject: Access local directory with Tomcat 4.0

Dear all,

Sorry to post this question again, cause I didn't receive any reply... so I
think I should rephrase my question.

I am using standalone Apache Tomcat 4.0, on my Windows 2000 machine.

I am making a servlet for file downloading using the Tomcat 4.0, but I am
not sure how to setup or configure the local directory, cause when I do

FileInputStream filein = new FileInputStream("C:\\temp\\text.txt");

I got IOException for that, because Tomcat 4.0 complains the directory is
not accessible... Please help me. Thank you very much.

Best regards,

To unsubscribe:   <>
For additional commands: <>
Troubles with the list: <>

To unsubscribe:   <>
For additional commands: <>
Troubles with the list: <>

View raw message