• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

tomcat 6 jasper error.

 
syed suhaib
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I've tomcat 6 configured proper for the context outside of webapps:

$CATALINA_HOME/conf/Catalina/localhost/app.xml

[pms.xml]
<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
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Got the solution here:
http://www.mail-archive.com/users@tomcat.apache.org/msg35677.html

I had old version of servlet.jar in my classpath which was causing the Jasper expception.
 
Muhammad Saifuddin
Ranch Hand
Posts: 1324
Android Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to Javaranch,

Thanks for providing the solution.. suhaib
[ October 20, 2007: Message edited by: Muhammad Saifuddin ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic