Hello,

I've installed previous beta versions of Tomcat 4 as an NT service using the
JavaService tool from
http://www.alexandriasc.com/software/JavaService/index.html without problem.
I tried the same thing using RC1, but Tomcat wouldn't start.  Here's the
exception that appeared on STDOUT :

Catalina.start: java.lang.Exception: Can't open config file:
C:\WINNT\system32\conf\server.xml due to: java.io.FileNotFoundException:
C:\WINNT\system32\conf\server.xml (Le chemin sp�cifi� est introuvable)
java.lang.Exception: Can't open config file:
C:\WINNT\system32\conf\server.xml due to: java.io.FileNotFoundException:
C:\WINNT\system32\conf\server.xml (Le chemin sp�cifi� est introuvable)
 at org.apache.catalina.util.xml.XmlMapper.readXml(XmlMapper.java:238)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:725)
 at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
 at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
 at java.lang.reflect.Method.invoke(Native Method)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:212)

What should I change to make this work using JavaService?  Running the exact
same version of Tomcat directly from the DOS prompt with the default
"startup" and "shutdown" files works without any problems.  I haven't
modified anything else in any other way ; the environment variables
TOMCAT_HOME and CATALINA_HOME are correctly defined.

Thanks,
Chris Brown


Note: the installation script for JavaService is as follows (pretty much
standard):

@echo off
echo --------
echo Usage:   %0 jdk_home tomcat_home (classic/hotspot/server)
echo NOTE:    You MAY NOT use spaces in the path names. If you know how
echo          to fix this, please tell me.
echo          JDK 1.3 does not come with hotpot server by default, you must
echo          install this seperately if you wish to use it.
echo Example: %0 c:\progra~1\jdk c:\progra~1\tomcat hotspot
echo --------

if "%1" == "" goto eof
if "%2" == "" goto eof
if "%3" == "" goto eof

copy JavaService.exe %2\bin\TomcatService.exe > nul
%2\bin\TomcatService.exe -install Catalina
%1\jre\bin\%3\jvm.dll -Djava.class.path=%2\bin\bootstrap.jar;%2\bin\servlet.
jar;%1\lib\tools.jar -Dcatalina.home=%2 -start
org.apache.catalina.startup.Bootstrap -params start -stop
org.apache.catalina.startup.Bootstrap -params stop -out
%2\logs\stdout.log -err %2\logs\stderr.log

goto eof

:eof


Reply via email to