[PJUG Javamail] JSP errors, but only w/Tomcat 6

Rob Tanner rtanner at linfield.edu
Wed Apr 8 18:09:41 EDT 2009


Hi,

I¹ve moved most of my development work off my Linux box and onto my Mac
laptop (using the Eclipse IDE in both cases).  I started to layout a JSP
which will end up as a data-entry form.  At the moment, other than the JSP
header (<%@ page language="java" pageEncoding="ISO-8859-1" %>), there is no
Java code in the file.  When I try to view the file in my browser using
Tomcat /6.0.18 running on the laptop, I get the exception below.  If I copy
the same file to the Linux box using Tomcat/5.5.23, it displays just fine.
Any idea about what the problem might be?



type Exception report

message

description The server encountered an internal error () that prevented it
from fulfilling this request.

exception

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

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

Stacktrace:
    
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandle
r.java:92)
    
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:3
30)
    
org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:423)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:317)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:295)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:282)
    
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:5
86)
    
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:3
17)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

note The full stack trace of the root cause is available in the Apache
Tomcat/6.0.18 logs.



Thanks,
Rob

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.pjug.org/pipermail/javamail/attachments/20090408/7ac00c72/attachment.html 


More information about the Javamail mailing list