I think this is because tools.jar isn't added to the classpath in the
service.bat service installer file.  I've modified mine to include this.  See
attached (renamed to service.txt to avoid being removed by filters).

BTW, I've mentioned this a few times to the Tomcat developers with little
response except that they'd think about it.  I don't see how this is an optional
thing to do since, without adding tools.jar to the classpath, jsp's simply won't
compile when Tomcat is run under the service.

Jake

Quoting Jens Kühnberger <[EMAIL PROTECTED]>:

> Hi,
> 
> I got a problem with installing tomcat 5.0.25 as a service. When I run
> tomcat with the startup script (startup.bat) I don't have any problem.
> After installing the service (service.exe install) and running my
> application as a service, I get the following compilation error for
> every jsp page I want to run:
> 
> 03.06.2004 17:25:43 org.apache.jasper.compiler.Compiler generateClass
> SCHWERWIEGEND: Javac exception
> Error running javac.exe compiler
>       at
>
org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter.executeExternalCompile(DefaultCompilerAdapter.java:452)
>       at
>
org.apache.tools.ant.taskdefs.compilers.JavacExternal.execute(JavacExternal.java:44)
>       at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:942)
>       at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:764)
>       at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:378)
>       at org.apache.jasper.compiler.Compiler.compile(Compiler.java:463)
>       at org.apache.jasper.compiler.Compiler.compile(Compiler.java:442)
>       at org.apache.jasper.compiler.Compiler.compile(Compiler.java:430)
>       at
> org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
>       at
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:274)
>       at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
>       at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
>       at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
>       at
>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
>       at
>
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
>       at
>
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
>       at
>
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
>       at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
>       at
>
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
>       at
>
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
>       at
>
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
>       at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
>       at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
>       at
>
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
>       at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
>       at
>
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
>       at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
>       at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
>       at
>
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
>       at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
>       at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
>       at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
>       at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:793)
>       at
>
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:702)
>       at
> org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:571)
>       at
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:644)
>       at java.lang.Thread.run(Unknown Source)
> Caused by: java.io.IOException: CreateProcess: javac.exe -classpath
>
C:\tomcat5025\bin\bootstrap.jar;C:\tomcat5025\webapps\ROOT\WEB-INF\classes;C:\tomcat5025\webapps\ROOT\WEB-INF\lib\avalon-framework-cvs-20020806.jar;C:\tomcat5025\webapps\ROOT\WEB-INF\lib\batik.jar;C:\tomcat5025\webapps\ROOT\WEB-INF\lib\commons-beanutils.jar;C:\tomcat5025\webapps\ROOT\WEB-INF\lib\commons-collections.jar;C:\tomcat5025\webapps\ROOT\WEB-INF\lib\commons-digester.jar;C:\tomcat5025\webapps\ROOT\WEB-INF\lib\commons-lang.jar;C:\tomcat5025\webapps\ROOT\WEB-INF\lib\commons-logging.jar;C:\tomcat5025\webapps\ROOT\WEB-INF\lib\commons-validator.jar;C:\tomcat5025\webapps\ROOT\WEB-INF\lib\fop.jar;C:\tomcat5025\webapps\ROOT\WEB-INF\lib\izmado.jar;C:\tomcat5025\webapps\ROOT\WEB-INF\lib\jakarta-oro.jar;C:\tomcat5025\webapps\ROOT\WEB-INF\lib\jakarta-regexp-1.3.jar;C:\tomcat5025\webapps\ROOT\WEB-INF\lib\jdom.jar;C:\tomcat5025\webapps\ROOT\WEB-INF\lib\jstl.jar;C:\tomcat5025\webapps\ROOT\WEB-INF\lib\log4j.jar;C:\tomcat5025\webapps\ROOT\WEB-INF\lib\poi-2.5-final-20040302.jar;C:\tom?
> 
>       at java.lang.Win32Process.create(Native Method)
>       at java.lang.Win32Process.<init>(Unknown Source)
>       at java.lang.Runtime.execInternal(Native Method)
>       at java.lang.Runtime.exec(Unknown Source)
>       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>       at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>       at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>       at java.lang.reflect.Method.invoke(Unknown Source)
>       at
> org.apache.tools.ant.taskdefs.Execute$Java13CommandLauncher.exec(Execute.java:808)
>       at org.apache.tools.ant.taskdefs.Execute.launch(Execute.java:445)
>       at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:459)
>       at
>
org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter.executeExternalCompile(DefaultCompilerAdapter.java:449)
>       ... 42 more
> --- Nested Exception ---
> java.io.IOException: CreateProcess: javac.exe -classpath
>
C:\tomcat5025\bin\bootstrap.jar;C:\tomcat5025\webapps\ROOT\WEB-INF\classes;C:\tomcat5025\webapps\ROOT\WEB-INF\lib\avalon-framework-cvs-20020806.jar;C:\tomcat5025\webapps\ROOT\WEB-INF\lib\batik.jar;C:\tomcat5025\webapps\ROOT\WEB-INF\lib\commons-beanutils.jar;C:\tomcat5025\webapps\ROOT\WEB-INF\lib\commons-collections.jar;C:\tomcat5025\webapps\ROOT\WEB-INF\lib\commons-digester.jar;C:\tomcat5025\webapps\ROOT\WEB-INF\lib\commons-lang.jar;C:\tomcat5025\webapps\ROOT\WEB-INF\lib\commons-logging.jar;C:\tomcat5025\webapps\ROOT\WEB-INF\lib\commons-validator.jar;C:\tomcat5025\webapps\ROOT\WEB-INF\lib\fop.jar;C:\tomcat5025\webapps\ROOT\WEB-INF\lib\izmado.jar;C:\tomcat5025\webapps\ROOT\WEB-INF\lib\jakarta-oro.jar;C:\tomcat5025\webapps\ROOT\WEB-INF\lib\jakarta-regexp-1.3.jar;C:\tomcat5025\webapps\ROOT\WEB-INF\lib\jdom.jar;C:\tomcat5025\webapps\ROOT\WEB-INF\lib\jstl.jar;C:\tomcat5025\webapps\ROOT\WEB-INF\lib\log4j.jar;C:\tomcat5025\webapps\ROOT\WEB-INF\lib\poi-2.5-final-20040302.jar;C:\tom?
> 
>       at java.lang.Win32Process.create(Native Method)
>       at java.lang.Win32Process.<init>(Unknown Source)
>       at java.lang.Runtime.execInternal(Native Method)
>       at java.lang.Runtime.exec(Unknown Source)
>       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>       at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>       at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>       at java.lang.reflect.Method.invoke(Unknown Source)
>       at
> org.apache.tools.ant.taskdefs.Execute$Java13CommandLauncher.exec(Execute.java:808)
>       at org.apache.tools.ant.taskdefs.Execute.launch(Execute.java:445)
>       at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:459)
>       at
>
org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter.executeExternalCompile(DefaultCompilerAdapter.java:449)
>       at
>
org.apache.tools.ant.taskdefs.compilers.JavacExternal.execute(JavacExternal.java:44)
>       at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:942)
>       at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:764)
>       at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:378)
>       at org.apache.jasper.compiler.Compiler.compile(Compiler.java:463)
>       at org.apache.jasper.compiler.Compiler.compile(Compiler.java:442)
>       at org.apache.jasper.compiler.Compiler.compile(Compiler.java:430)
>       at
> org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
>       at
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:274)
>       at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
>       at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
>       at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
>       at
>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
>       at
>
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
>       at
>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
>       at
>
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
>       at
>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
>       at
>
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
>       at
>
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
>       at
>
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
>       at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
>       at
>
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
>       at
>
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
>       at
>
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
>       at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
>       at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
>       at
>
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
>       at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
>       at
>
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
>       at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
>       at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
>       at
>
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
>       at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
>       at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
>       at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
>       at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:793)
>       at
>
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:702)
>       at
> org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:571)
>       at
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:644)
>       at java.lang.Thread.run(Unknown Source)
> 03.06.2004 17:25:43 org.apache.jasper.compiler.Compiler generateClass
> SCHWERWIEGEND: Env: Compile:
>
javaFileName=/C:/tomcat5025/work/Catalina/localhost/_//org/apache/jsp\index_jsp.java
> 
>
classpath=/C:/tomcat5025/webapps/ROOT/WEB-INF/classes/;/C:/tomcat5025/webapps/ROOT/WEB-INF/lib/avalon-framework-cvs-20020806.jar;/C:/tomcat5025/webapps/ROOT/WEB-INF/lib/batik.jar;/C:/tomcat5025/webapps/ROOT/WEB-INF/lib/commons-beanutils.jar;/C:/tomcat5025/webapps/ROOT/WEB-INF/lib/commons-collections.jar;/C:/tomcat5025/webapps/ROOT/WEB-INF/lib/commons-digester.jar;/C:/tomcat5025/webapps/ROOT/WEB-INF/lib/commons-lang.jar;/C:/tomcat5025/webapps/ROOT/WEB-INF/lib/commons-logging.jar;/C:/tomcat5025/webapps/ROOT/WEB-INF/lib/commons-validator.jar;/C:/tomcat5025/webapps/ROOT/WEB-INF/lib/fop.jar;/C:/tomcat5025/webapps/ROOT/WEB-INF/lib/izmado.jar;/C:/tomcat5025/webapps/ROOT/WEB-INF/lib/jakarta-oro.jar;/C:/tomcat5025/webapps/ROOT/WEB-INF/lib/jakarta-regexp-1.3.jar;/C:/tomcat5025/webapps/ROOT/WEB-INF/lib/jdom.jar;/C:/tomcat5025/webapps/ROOT/WEB-INF/lib/jstl.jar;/C:/tomcat5025/webapps/ROOT/WEB-INF/lib/log4j.jar;/C:/tomcat5025/webapps/ROOT/WEB-INF/lib/poi-2.5-final-20040302.jar;/C:/tomcat5
>
025/webapps/ROOT/WEB-INF/lib/saxon7.jar;/C:/tomcat5025/webapps/ROOT/WEB-INF/lib/standard.jar;/C:/tomcat5025/webapps/ROOT/WEB-INF/lib/struts.jar;/C:/tomcat5025/webapps/ROOT/WEB-INF/lib/myapp.jar;C:\tomcat5025\work\Catalina\localhost\_;/C:/tomcat5025/webapps/ROOT/WEB-INF/classes/;/C:/tomcat5025/webapps/ROOT/WEB-INF/lib/avalon-framework-cvs-20020806.jar;/C:/tomcat5025/webapps/ROOT/WEB-INF/lib/batik.jar;/C:/tomcat5025/webapps/ROOT/WEB-INF/lib/commons-beanutils.jar;/C:/tomcat5025/webapps/ROOT/WEB-INF/lib/commons-collections.jar;/C:/tomcat5025/webapps/ROOT/WEB-INF/lib/commons-digester.jar;/C:/tomcat5025/webapps/ROOT/WEB-INF/lib/commons-lang.jar;/C:/tomcat5025/webapps/ROOT/WEB-INF/lib/commons-logging.jar;/C:/tomcat5025/webapps/ROOT/WEB-INF/lib/commons-validator.jar;/C:/tomcat5025/webapps/ROOT/WEB-INF/lib/fop.jar;/C:/tomcat5025/webapps/ROOT/WEB-INF/lib/izmado.jar;/C:/tomcat5025/webapps/ROOT/WEB-INF/lib/jakarta-oro.jar;/C:/tomcat5025/webapps/ROOT/WEB-INF/lib/jakarta-regexp-1.3.jar;/C:
>
/tomcat5025/webapps/ROOT/WEB-INF/lib/jdom.jar;/C:/tomcat5025/webapps/ROOT/WEB-INF/lib/jstl.jar;/C:/tomcat5025/webapps/ROOT/WEB-INF/lib/log4j.jar;/C:/tomcat5025/webapps/ROOT/WEB-INF/lib/poi-2.5-final-20040302.jar;/C:/tomcat5025/webapps/ROOT/WEB-INF/lib/saxon7.jar;/C:/tomcat5025/webapps/ROOT/WEB-INF/lib/standard.jar;/C:/tomcat5025/webapps/ROOT/WEB-INF/lib/struts.jar;/C:/tomcat5025/webapps/ROOT/WEB-INF/lib/myapp.jar;C:/tomcat5025/shared/classes/;C:/tomcat5025/common/classes/;C:/tomcat5025/common/endorsed/xercesImpl.jar;C:/tomcat5025/common/endorsed/xmlParserAPIs.jar;C:/tomcat5025/common/lib/ant.jar;C:/tomcat5025/common/lib/commons-collections.jar;C:/tomcat5025/common/lib/commons-dbcp-1.1.jar;C:/tomcat5025/common/lib/commons-el.jar;C:/tomcat5025/common/lib/commons-pool-1.1.jar;C:/tomcat5025/common/lib/jasper-compiler.jar;C:/tomcat5025/common/lib/jasper-runtime.jar;C:/tomcat5025/common/lib/jsp-api.jar;C:/tomcat5025/common/lib/naming-common.jar;C:/tomcat5025/common/lib/naming-facto
>
ry.jar;C:/tomcat5025/common/lib/naming-java.jar;C:/tomcat5025/common/lib/naming-resources.jar;C:/tomcat5025/common/lib/servlet-api.jar;/C:/tomcat5025/bin/bootstrap.jar;/C:/Programme/Java/j2re1.4.2_04/lib/ext/dnsns.jar;/C:/Programme/Java/j2re1.4.2_04/lib/ext/ldapsec.jar;/C:/Programme/Java/j2re1.4.2_04/lib/ext/localedata.jar;/C:/Programme/Java/j2re1.4.2_04/lib/ext/sunjce_provider.jar
>      cp=c:\tomcat5025\bin\bootstrap.jar
>      cp=C:\tomcat5025\webapps\ROOT\WEB-INF\classes
> 
> cp=C:\tomcat5025\webapps\ROOT\WEB-INF\lib\avalon-framework-cvs-20020806.jar
>      cp=C:\tomcat5025\webapps\ROOT\WEB-INF\lib\batik.jar
>      cp=C:\tomcat5025\webapps\ROOT\WEB-INF\lib\commons-beanutils.jar
>      cp=C:\tomcat5025\webapps\ROOT\WEB-INF\lib\commons-collections.jar
>      cp=C:\tomcat5025\webapps\ROOT\WEB-INF\lib\commons-digester.jar
>      cp=C:\tomcat5025\webapps\ROOT\WEB-INF\lib\commons-lang.jar
>      cp=C:\tomcat5025\webapps\ROOT\WEB-INF\lib\commons-logging.jar
>      cp=C:\tomcat5025\webapps\ROOT\WEB-INF\lib\commons-validator.jar
>      cp=C:\tomcat5025\webapps\ROOT\WEB-INF\lib\fop.jar
>      cp=C:\tomcat5025\webapps\ROOT\WEB-INF\lib\izmado.jar
>      cp=C:\tomcat5025\webapps\ROOT\WEB-INF\lib\jakarta-oro.jar
>      cp=C:\tomcat5025\webapps\ROOT\WEB-INF\lib\jakarta-regexp-1.3.jar
>      cp=C:\tomcat5025\webapps\ROOT\WEB-INF\lib\jdom.jar
>      cp=C:\tomcat5025\webapps\ROOT\WEB-INF\lib\jstl.jar
>      cp=C:\tomcat5025\webapps\ROOT\WEB-INF\lib\log4j.jar
>      cp=C:\tomcat5025\webapps\ROOT\WEB-INF\lib\poi-2.5-final-20040302.jar
>      cp=C:\tomcat5025\webapps\ROOT\WEB-INF\lib\saxon7.jar
>      cp=C:\tomcat5025\webapps\ROOT\WEB-INF\lib\standard.jar
>      cp=C:\tomcat5025\webapps\ROOT\WEB-INF\lib\struts.jar
>      cp=C:\tomcat5025\webapps\ROOT\WEB-INF\lib\myapp.jar
>      cp=C:\tomcat5025\work\Catalina\localhost\_
>      cp=C:\tomcat5025\webapps\ROOT\WEB-INF\classes
> 
> cp=C:\tomcat5025\webapps\ROOT\WEB-INF\lib\avalon-framework-cvs-20020806.jar
>      cp=C:\tomcat5025\webapps\ROOT\WEB-INF\lib\batik.jar
>      cp=C:\tomcat5025\webapps\ROOT\WEB-INF\lib\commons-beanutils.jar
>      cp=C:\tomcat5025\webapps\ROOT\WEB-INF\lib\commons-collections.jar
>      cp=C:\tomcat5025\webapps\ROOT\WEB-INF\lib\commons-digester.jar
>      cp=C:\tomcat5025\webapps\ROOT\WEB-INF\lib\commons-lang.jar
>      cp=C:\tomcat5025\webapps\ROOT\WEB-INF\lib\commons-logging.jar
>      cp=C:\tomcat5025\webapps\ROOT\WEB-INF\lib\commons-validator.jar
>      cp=C:\tomcat5025\webapps\ROOT\WEB-INF\lib\fop.jar
>      cp=C:\tomcat5025\webapps\ROOT\WEB-INF\lib\izmado.jar
>      cp=C:\tomcat5025\webapps\ROOT\WEB-INF\lib\jakarta-oro.jar
>      cp=C:\tomcat5025\webapps\ROOT\WEB-INF\lib\jakarta-regexp-1.3.jar
>      cp=C:\tomcat5025\webapps\ROOT\WEB-INF\lib\jdom.jar
>      cp=C:\tomcat5025\webapps\ROOT\WEB-INF\lib\jstl.jar
>      cp=C:\tomcat5025\webapps\ROOT\WEB-INF\lib\log4j.jar
>      cp=C:\tomcat5025\webapps\ROOT\WEB-INF\lib\poi-2.5-final-20040302.jar
>      cp=C:\tomcat5025\webapps\ROOT\WEB-INF\lib\saxon7.jar
>      cp=C:\tomcat5025\webapps\ROOT\WEB-INF\lib\standard.jar
>      cp=C:\tomcat5025\webapps\ROOT\WEB-INF\lib\struts.jar
>      cp=C:\tomcat5025\webapps\ROOT\WEB-INF\lib\myapp.jar
>      cp=C:\tomcat5025\shared\classes
>      cp=C:\tomcat5025\common\classes
>      cp=C:\tomcat5025\common\endorsed\xercesImpl.jar
>      cp=C:\tomcat5025\common\endorsed\xmlParserAPIs.jar
>      cp=C:\tomcat5025\common\lib\ant.jar
>      cp=C:\tomcat5025\common\lib\commons-collections.jar
>      cp=C:\tomcat5025\common\lib\commons-dbcp-1.1.jar
>      cp=C:\tomcat5025\common\lib\commons-el.jar
>      cp=C:\tomcat5025\common\lib\commons-pool-1.1.jar
>      cp=C:\tomcat5025\common\lib\jasper-compiler.jar
>      cp=C:\tomcat5025\common\lib\jasper-runtime.jar
>      cp=C:\tomcat5025\common\lib\jsp-api.jar
>      cp=C:\tomcat5025\common\lib\naming-common.jar
>      cp=C:\tomcat5025\common\lib\naming-factory.jar
>      cp=C:\tomcat5025\common\lib\naming-java.jar
>      cp=C:\tomcat5025\common\lib\naming-resources.jar
>      cp=C:\tomcat5025\common\lib\servlet-api.jar
>      cp=C:\tomcat5025\bin\bootstrap.jar
>      cp=C:\Programme\Java\j2re1.4.2_04\lib\ext\dnsns.jar
>      cp=C:\Programme\Java\j2re1.4.2_04\lib\ext\ldapsec.jar
>      cp=C:\Programme\Java\j2re1.4.2_04\lib\ext\localedata.jar
>      cp=C:\Programme\Java\j2re1.4.2_04\lib\ext\sunjce_provider.jar
>      work dir=C:\tomcat5025\work\Catalina\localhost\_
>      extension dir=C:\Programme\Java\j2re1.4.2_04\lib\ext
>      srcDir=C:\tomcat5025\work\Catalina\localhost\_
>      include=org/apache/jsp/index_jsp.java
> 
> 03.06.2004 17:25:43 org.apache.jasper.compiler.Compiler generateClass
> SCHWERWIEGEND: Error compiling file:
> /C:/tomcat5025/work/Catalina/localhost/_//org/apache/jsp\index_jsp.java
>      [javac] Compiling 1 source file
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
@echo off
if "%OS%" == "Windows_NT" setlocal
rem ---------------------------------------------------------------------------
rem NT Service Install/Uninstall script
rem
rem Options
rem install                Install the service using Tomcat5 as service name.
rem                        Service is installed using default settings.
rem remove                 Remove the service from the System.
rem
rem name        (optional) If the second argument is present it is considered
rem                        to be new service name                                      
     
rem
rem $Id: service.bat,v 1.5 2004/04/08 16:49:37 mturk Exp $
rem ---------------------------------------------------------------------------

rem Guess CATALINA_HOME if not defined
set CURRENT_DIR=%cd%
if not "%CATALINA_HOME%" == "" goto gotHome
set CATALINA_HOME=%cd%
if exist "%CATALINA_HOME%\bin\tomcat5.exe" goto okHome
rem CD to the upper dir
cd ..
set CATALINA_HOME=%cd%
:gotHome
if exist "%CATALINA_HOME%\bin\tomcat5.exe" goto okHome
echo The tomcat.exe was not found...
echo The CATALINA_HOME environment variable is not defined correctly.
echo This environment variable is needed to run this program
goto end
:okHome
if not "%CATALINA_BASE%" == "" goto gotBase
set CATALINA_BASE=%CATALINA_HOME%
:gotBase
 
set EXECUTABLE=%CATALINA_HOME%\bin\tomcat5.exe

rem Set default Service name
set SERVICE_NAME=Tomcat5

if "%1" == "" goto displayUsage
if "%2" == "" goto setServiceName
set SERVICE_NAME=%2
:setServiceName
if %1 == install goto doInstall
if %1 == remove goto doRemove
echo Unknown parameter "%1"
:displayUsage
echo 
echo Usage: service.bat install/remove [service_name]
goto end

:doRemove
rem Remove the service
"%EXECUTABLE%" //DS//%SERVICE_NAME%
echo The service '%SERVICE_NAME%' has been removed
goto end

:doInstall
rem Install the service
rem Use the environment variables as an exaple
rem Each command line option is prefixed with PR_

set PR_DISPLAYNAME=Apache Tomcat
set PR_DESCRIPTION=Apache Tomcat Server - http://jakarta.apache.org/tomcat
set PR_INSTALL=%EXECUTABLE%
set PR_LOGPATH=%CATALINA_HOME%\logs
set PR_CLASSPATH=%JAVA_HOME%\lib\tools.jar;%CATALINA_HOME%\bin\bootstrap.jar
"%EXECUTABLE%" //IS//%SERVICE_NAME% --Jvm auto --StartClass 
org.apache.catalina.startup.Bootstrap --StopClass 
org.apache.catalina.startup.Bootstrap --StartParams start --StopParams stop
rem Clear the environment variables. They are not needed any more.
set PR_DISPLAYNAME=
set PR_DESCRIPTION=
set PR_INSTALL=
set PR_LOGPATH=
set PR_CLASSPATH=
rem Set extra parameters
"%EXECUTABLE%" //US//%SERVICE_NAME% --JvmOptions 
"-Dcatalina.base=%CATALINA_BASE%;-Dcatalina.home=%CATALINA_HOME%;-Djava.endorsed.dirs=%CATALINA_HOME%\common\endorsed"
 --StartMode jvm --StopMode jvm
rem More extra parameters
set PR_STDOUTPUT=%CATALINA_HOME%\logs\stdout.log
set PR_STDERROR=%CATALINA_HOME%\logs\stderr.log
set PR_STARTPATH=%CATALINA_HOME%\bin
set PR_STOPPATH=%CATALINA_HOME%\bin
"%EXECUTABLE%" //US//%SERVICE_NAME% ++JvmOptions 
"-Djava.io.tmpdir=%CATALINA_BASE%\temp;-Dbuild.compiler.emacs=true;-Xrs"
echo The service '%SERVICE_NAME%' has been installed

:end
cd %CURRENT_DIR%
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to