Hi,
I get the following stack trace when accessing any pre-compiled jsp bundled
inside the war file. I'm using Jetty 5.1.10.
java.lang.NullPointerException
at org.apache.jasper.runtime.TagHandlerPool.get(TagHandlerPool.java:108)
at com.ventura24.nlp.backoffice.jsp.error_jsp._jspx_meth_bean_message_0
(error_jsp.java:153)
at com.ventura24.nlp.backoffice.jsp.error_jsp._jspService(error_jsp.java:93)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:428)
The error has to do with the struts-bean.tld, but it isn't thrown if I disable
jsp precompilation. It isn't likely to be a version mismatch in jasper jars,
since it happens if I use the standard jspc task bundled with Ant as well as
using the jasper-compiler.jar bundled with Jetty.
Which is the exact jasper version bundled with Jetty 5.1.10? I've downloaded
all versions of Tomcat, and found none that matches the file size.
The relevant project layout is:
/ : base folder
/web : jsp files
/web/WEB-INF
The relevant Ant fragments are:
<!--
Compile the JSP pages from ${jsp.path} into ${jsp.java.dest}.
This works well for Jetty4, but fails for Jetty5.
-->
<jspc
destdir="${jsp.java.dest}"
compilerclasspath="${compiler.classpath}"
verbose="9"
classpathref="enhanced.project.class.path"
srcdir="${web}"
package="com.ventura24.nlp.backoffice.jsp"
uriroot="${web}"
uribase="/"
webinc="${web}/WEB-INF/web-jsp.xml">
<include name="**/*.jsp"/>
<excludesfile name="${web}/discarded-jsp.txt"/>
</jspc>
<!-- The jar used is the one bundled with Jetty5. -->
<taskdef
name="jasper2"
classname="org.apache.jasper.JspC"
classpathref="enhanced.project.class.path"/>
<!--
Throws the same runtime error in all precompiled jsps.
-->
<jasper2
uriroot="${web}"
package="com.ventura24.nlp.backoffice.jsp"
webXmlFragment="${web}/WEB-INF/web-jsp.xml"
outputDir="${jsp.java.dest}">
</jasper2>
Any help would be appreciated.
Thank you,
Jose San Leandro.
_______________________________________________
jetty-discuss mailing list
jetty-discuss@...
https://lists.sourceforge.net/lists/listinfo/jetty-discuss