Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Jasper Exceptions

 
Sylvia H Charbonneau
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there a general rule of them for what would cause a Jasper Exception ? I'm encountering this :

============================================
org.apache.jasper.JasperException
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:248)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684)
at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:575)
at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:498)
at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:822)
at org.apache.jsp.Generic_en_jsp._jspService(Generic_en_jsp.java:125)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
...
...
====================================

And the root cause doesn't help me either. Any ideas ? Any websites that I can visit to learn more about what causes this kind of error ?

Thanks for your help !!

S
 
Sylvia H Charbonneau
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Oops....and I encounter this from my JSP page while running on a Tomcat/Apache combination.

Thanks !

S
 
Ramaswamy Srinivasan
Ranch Hand
Posts: 295
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Sylvia,

Well.....

What you encountered is the Jasper Exception. Jasper is the JSP Compiler, along with Tomcat. All the JSPs we make get compiled to servlet by the Jasper.

The jasper exception might be due to any small mistake we commit in our JSP.
Then, the compiler cannot compile the class for Java.

So, what can be concluded broadly is JasperException occurs when our JSP can't be compiled into class file... for example,

Yourfile.jsp will be transformed into yourfile_jsp.java and then compiled to the corresponding class. When this fails, we get such exception.

Also sometimes, internal server error may lead to Jasper...In that times,
the log files in the tomcat might be helpful...can be found in

Tomcat\logs

The generated java file for ur JSP can be viewed in the

Tomcat\work\standalone\localhost\your application(if you have)

Or

Tomcat\work\standalone\localhost\_ if u r running from the ROOT.

Visit the following link for insight on Jasper


Jasper

Well....your topic might be moved to Tomcat forum for further discussion..This is left to the bartenders.....

Any way, the JSP file could be of some help in spotting the error out.
Get back if u can't find what goes wrong.

Cheers,
Swamy
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!