File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 Soft Skills this week in the Jobs Discussion 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: 5845
    
    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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: org.apache.jasper.JasperException: Unable to compile class for JSP and NUll pointer Exception