Kwa Kil On Swa

Monday, January 22, 2007

JSP Errors

This is a nasty error to debug- all I got was this:

org.apache.jasper.JasperException: Unable to compile class for JSP

Generated servlet error:
Type mismatch: cannot convert from null to int
at org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:512)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)


To debug it, try setting

<property name="jsp.precompile" value="false"/>

(UPDATE: Did I mean <property name="precompile.jsp" value="true"/>)

and then rebuild

I got an error message telling me exactly where the problem was

0 Comments:

Post a Comment

<< Home