after I configured jsvc it works like expected -except for automatic JSP compiling. If I start tomcat with startup.sh the compiling of JSP works normal. Once that JSP are compiled the start method doesn't matter anymore. Tomact acts normally.
Here is my testcase:
Copy the sample web-application from jakarta-tomcat-5.0.18/webapps/tomcat-docs/appdev/sample/
to
jakarta-tomcat-5.0.18/webapps/
Put this to the appropriate place inside the server.xml:
<!-- Tomcat Root Context -->
<Context path="" docBase="web" debug="0">
</Context>Start tomcat with /etc/init.d/tomcat.sh. In my case I got the follwing response in my browser: (The log catalina.out does not show more hints)
HTTP Status 500 -
--------------------------------------------------------------------------------
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception org.apache.jasper.JasperException: Unable to compile class for JSP org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:558) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:291) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248) javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
root cause
java.io.FileNotFoundException: /opt/wupperring/jakarta-tomcat-5.0.18/work/Catalina/localhost/_/org/apache/jsp/hello_jsp.java
java.io.FileOutputStream.open(Native Method)
java.io.FileOutputStream.<init>(FileOutputStream.java:176)
java.io.FileOutputStream.<init>(FileOutputStream.java:70)
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:223)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:456)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:552)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:291)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
note The full stack trace of the root cause is available in the Tomcat logs.
Regards Bernhard -- MfG Bernhard Wraase NET.KOSMOS Projektentwicklung und Management GmbH Tel.: +49 231 5522931 Fax: +49 231 5522930
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
