File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Tomcat and the fly likes tomcat 6 jasper error. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "tomcat 6 jasper error." Watch "tomcat 6 jasper error." New topic

tomcat 6 jasper error.

syed suhaib

Joined: Jun 12, 2003
Posts: 2
Hi, I've tomcat 6 configured proper for the context outside of webapps:


<Context reloadable="true" docBase="/home/bms/pms" debug="1"/>

I'm getting following error whenever I accessed any jsp page in the application. Html pages are showing up alright. I have this application running on tomcat5 fine.
org.apache.jasper.JasperException: Unable to compile class for JSP:

An error occurred at line: 56 in the generated java file
The method getJspApplicationContext(ServletContext) is undefined for the type JspFactory

Thanks, Suhaib.
syed suhaib

Joined: Jun 12, 2003
Posts: 2
Got the solution here:

I had old version of servlet.jar in my classpath which was causing the Jasper expception.
Muhammad Saifuddin
Ranch Hand

Joined: Dec 06, 2005
Posts: 1323

Welcome to Javaranch,

Thanks for providing the solution.. suhaib
[ October 20, 2007: Message edited by: Muhammad Saifuddin ]

[Blog][Linkedin] How To Ask Questions On JavaRanch My OpenSource
I agree. Here's the link:
subject: tomcat 6 jasper error.
It's not a secret anymore!