Hello,
I'm using tomcat and for Servlets everything works fine. But Jasper
doesn't work. Calling any JSP-File end up in a Internal Server Error and the
following Exception was thrown:
java.lang.NoClassDefFoundError: sun/tools/javac/Main
at
org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaCompiler.ja
va:128)
at org.apache.jasper.compiler.Compiler.compile(Compiled Code)
at
org.apache.jasper.runtime.JspServlet.loadJSP(JspServlet.java:413)
at
org.apache.jasper.runtime.JspServlet$JspServletWrapper.loadIfNecessar
y(JspServlet.java:149)
at
org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspSer
vlet.java:161)
at
org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:2
61)
at org.apache.jasper.runtime.JspServlet.service(Compiled Code)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.tomcat.core.ServletWrapper.handleRequest(Compiled
Code)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:559
)
at
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processCon
nection(Compiled Code)
at org.apache.tomcat.service.TcpConnectionThread.run(Compiled
Code)
at java.lang.Thread.run(Compiled Code)
In the httpd.conf I have the following:
<LocationMatch /*.jsp>
SetHandler jserv-servlet
</LocationMatch>
AddType test/jsp .jsp
AddHandler jserv-servlet .jsp
Has anyone any idea, what I can do to fix it?
Thank you
Maik