This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JBoss/WildFly and the fly likes org.apache.jasper.JasperException: Unable to compile class for JSP and NUll pointer Exception Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "org.apache.jasper.JasperException: Unable to compile class for JSP and NUll pointer Exception" Watch "org.apache.jasper.JasperException: Unable to compile class for JSP and NUll pointer Exception" New topic
Author

org.apache.jasper.JasperException: Unable to compile class for JSP and NUll pointer Exception

naresh kumar k
Ranch Hand

Joined: May 25, 2011
Posts: 30
hi
I am trying implement struts program using jboss server and eclipse ide
while trying to compile i am facing following error. can any one help on this


HTTP Status 500 -

--------------------------------------------------------------------------------

type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

org.apache.jasper.JasperException: Unable to compile class for JSP
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:619)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:312)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:326)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:253)
javax.servlet.http.HttpServlet.service(HttpServlet.java:847)


root cause

java.lang.NullPointerException
org.apache.jasper.compiler.Parser.parseBody(Parser.java:1598)
org.apache.jasper.compiler.Parser.parseOptionalBody(Parser.java:976)
org.apache.jasper.compiler.Parser.parseCustomTag(Parser.java:1247)
org.apache.jasper.compiler.Parser.parseElements(Parser.java:1421)
org.apache.jasper.compiler.Parser.parse(Parser.java:130)
org.apache.jasper.compiler.ParserController.doParse(ParserController.java:255)
org.apache.jasper.compiler.ParserController.parse(ParserController.java:103)
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:196)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:358)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:338)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:325)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:607)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:312)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:326)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:253)
javax.servlet.http.HttpServlet.service(HttpServlet.java:847)


note The full stack trace of the root cause is available in the JBoss Web/3.0.0-CR1 logs.
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5812
    
    7

You posted the error message displayed in the browser. In many cases this error doesn't provide enough information to debug the problem. You need to find the corresponding exception stack trace in the application server log, that should tell you why the JSP cannot be compiled.


JBoss In Action
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: org.apache.jasper.JasperException: Unable to compile class for JSP and NUll pointer Exception
 
Similar Threads
Problem in compiling Jsp
JasperException
Jboss 6 + Jsp +Struts
Unable to load tag handler class "com.opensymphony.webwork.views.jsp.PropertyTag
With JBoss 4.2 and elipse 3.3