Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes JSP and the fly likes org.apache.jasper.JasperException: Unable to compile class for JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "org.apache.jasper.JasperException: Unable to compile class for JSP" Watch "org.apache.jasper.JasperException: Unable to compile class for JSP" New topic
Author

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

Tavamalar Malar
Greenhorn

Joined: Jun 11, 2012
Posts: 2
hi,

I seriously need help on this issue. I m trying to deploy a web application using JDK 1.6 and tomcat 6 and 7. But i m facing some error and I have spent hours to find solution but unable to find it. please help me..below is the error


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

An error occurred at line: 19 in the generated java file
The return type is incompatible with JspSourceDependent.getDependants()

Stacktrace:
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:92)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)
org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:439)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:356)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:334)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:321)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:592)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:328)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
DIMS.controller.AppFilter.dispatch(AppFilter.java:117)
DIMS.controller.AppFilter.doFilter(AppFilter.java:97)
I have try to delete the work directory in tomcat but no use at all...Please help me out
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60741
    
  65

Perhaps it might help to show us the code causing the error? Please be sure to UseCodeTags.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19649
    
  18

I did a quick search on JspSourceDependent, and found this. It's an old post, but the error message is very similar. Here is another similar thread.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: org.apache.jasper.JasperException: Unable to compile class for JSP
 
Similar Threads
Problem with running the web application
Generated servlet error:
Generated servlet error:
JasperException Error
JAVA_HOME does not point to the JDK