Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Tavamalar Malar
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64700
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Perhaps it might help to show us the code causing the error? Please be sure to UseCodeTags.
 
Rob Spoor
Sheriff
Pie
Posts: 20511
54
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic