Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Tomcat Users »

Nt Service and Sax Parser

Altug B. Altintas

2003-12-01

Replies:

Hi,

I have got very strange problem. Here is the problem

If i write a bat file to start Tomcat like this

************************************
set TOMCAT_HOME=C:\tomcat
set JAVA_HOME=C:\j2sdk1.4.1
set RTDIR=c:\rt
set PATH=%RTDIR%\bin;c:\tomcat\;c:\tomcat\bin;.
set CATALINA_OPTS="-Xmx1024m"
set CATALINA_HOME=C:\tomcat
set CATALINA_BASE=C:\tomcat
set CLASSPATH=C:\tomcat;.
cd %RTDIR%

call %TOMCAT_HOME%\bin\shutdown.bat
call %TOMCAT_HOME%\bin\startup.bat
************************************

Tomcat starts and my application works well. In my application i used SAX
parser APIs so i put "crimson.jar" and "jaxp.jar" to
TOMCAT_HOME\common\endorsed

Anyway this is not problem, the problem is when i want to make Tomcat NT
service, my JSP pages which are uses SAX Parser API doesn't work.

Here is the comments which i tried to make NT Service

**********************************************************
set TOMCAT_HOME=C:\tomcat
set JAVA_HOME=C:\j2sdk1.4.1
set RTDIR=c:\rt
set PATH=%RTDIR%\bin;C:\tomcat;C:\tomcat;.
set CATALINA_OPTS="-Xmx1024m"
set CATALINA_HOME=C:\tomcat
set CATALINA_BASE=C:\tomcat
set CLASSPATH=C:\tomcat;.



"%CATALINA_HOME%\bin\tomcat.exe" -install tomcat
"%JAVA_HOME%\jre\bin\server\jvm.dll" -Djava.class.path="%CATALINA_HOME%\comm
on\lib;%CATALINA_HOME%\bin\bootstrap.jar;%JAVA_HOME%\lib\tools.jar" -Dcatali
na.home="%CATALINA_HOME%" -djava.home="%JAVA_HOME%\jre"
%CATALINA_OPTS% -Dfile.encoding="ISO-8859-9" -Xrs -start
org.apache.catalina.startup.BootstrapService -params start -config
"%CATALINA_HOME%\conf\server.xml" -stop
org.apache.catalina.startup.BootstrapService -params stop -out
"%CATALINA_HOME%\logs\stdout.log" -err
"%CATALINA_HOME%\logs\stderr.log" -current "c:\rt" -path "c:\rt"
**********************************************************

My code is same, "crimson.jar" and "jaxp.jar" files are same, the difference
is between normal start and NT start. Any idea ??

Regards


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)



©2008 junlu.com - Jax Systems, LLC, U.S.A.