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

Joe Hoffman joe at intelopment.com
Wed Apr 8 20:57:51 EDT 2009


As I recall, that method does not exist in java1.4, and Apples JRE is  
not supporting java EE5, where that method was first defined.

What version of the JRE are you using on the Mac?

</guess>

joe

On Apr 8, 2009, at 3:09 PM, Rob Tanner wrote:

> 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(DefaultErrorHandler.java:92)
>      
> org 
> .apache 
> .jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)
>      
> 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:586)
>      
> org 
> .apache 
> .jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317)
>      
> 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
> _______________________________________________
> Web Site - http://www.pjug.org/
> Javamail mailing list
> Javamail at pjug.org
> http://www.pjug.org/mailman/listinfo/javamail

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


More information about the Javamail mailing list