tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alec Bau <Alec....@msdw.com>
Subject Alternative compiler with Tomcat?
Date Tue, 09 May 2000 19:52:23 GMT
Is it possible to instruct Tomcat to use for JSP other compiler (Jikes,
etc.) that's faster than stock JDK javac? Anybody tried this? If yes
what compilers are available and how to configure Tomcat?

When I tried to use the following in web.xml to enable Jikes it gave me
an exception at a 1st attempt to compile a JSP:

        <init-param>
            <param-name>jspCompilerPlugin</param-name>

<param-value>org.apache.jasper.compiler.JikesJavaCompiler</param-value>
        </init-param>

Internal Servlet Error:

org.apache.jasper.JasperException: Unable to compile class for JSP
 at org.apache.jasper.compiler.Compiler.compile(Compiler.java, Compiled
Code)
 at org.apache.jasper.runtime.JspServlet.loadJSP(JspServlet.java:413)
 at
org.apache.jasper.runtime.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:149)

 at
org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.java:161)

 at
org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:261)

 at org.apache.jasper.runtime.JspServlet.service(JspServlet.java,
Compiled Code)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java,
Compiled Code)
 at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)
 at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:160)

 at
org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338)

 at java.lang.Thread.run(Thread.java:479)



Thanks.

Mime
View raw message