tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kevin Jackson" <>
Subject JSP pre-compilation problem
Date Thu, 21 Jun 2007 10:37:14 GMT
Hi all,

I'm working with mvn and the jetty jspc plugin for pre-compiling jsps
and I've come across this error:

[INFO] [jetty-jspc:jspc {execution: jspc}]
2007-06-21 11:15:18.969::INFO:  Logging to STDERR via org.mortbay.log.StdErrLog
java.lang.ClassCastException: [Ljava.lang.Object; cannot be cast to
        at org.apache.jasper.compiler.JDTJavaCompiler.compile(
        at org.apache.jasper.compiler.Compiler.generateClass(
        at org.apache.jasper.compiler.Compiler.compile(
        at org.apache.jasper.JspC.processFile(
        at org.apache.jasper.JspC.execute(
        at org.mortbay.jetty.jspc.plugin.JspcMojo.compile(
        at org.mortbay.jetty.jspc.plugin.JspcMojo.execute(

I've looked online (and to be honest I cannot find the JDTJavaCompiler
src, but I did find the JDTCompiler src @
which had the following:

if (!problemList.isEmpty()) {
            JavacErrorDetail[] jeds =
                (JavacErrorDetail[]) problemList.toArray(new

>From my limited knowledge of the codebase, this looks like a likely
candidate for the cause of the error message I'm seeing.  I'm going to
swap the jspc plugin to (a slightly modified version of) the standard
mvn jspc plugin to see if the same error occurs.

I also checked the tomcat bugzilla and didn't find anything that looked similar.

env info:
-tomcat version 6.0.13
-mvn version 2.0.7
-jetty jspc plugin version 6.1.0


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message