Search the web
Sign In
New User? Sign Up
jetty-discuss · Jetty Discussion
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Problem with jsp compiled classes in Jetty5   Message List  
Reply | Forward Message #7514 of 8501 |
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



Wed Jun 7, 2006 10:29 am

jetty-discuss@...
Send Email Send Email

Forward
Message #7514 of 8501 |
Expand Messages Author Sort by Date

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...
Jose San Leandro
jetty-discuss@...
Send Email
Jun 7, 2006
10:12 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help