[PJUG Javamail] JSP errors, but only w/Tomcat 6
Rob Tanner
rtanner at linfield.edu
Fri Apr 10 00:55:32 EDT 2009
Joe,
The default is 1.5.0_16
java version "1.5.0_16"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_16-b06-284)
Java HotSpot(TM) Client VM (build 1.5.0_16-133, mixed mode, sharing)
I can run 1.6.0_07 for 64 bit as well
java version "1.6.0_07"
Java(TM) SE Runtime Environment (build 1.6.0_07-b06-153)
Java HotSpot(TM) 64-Bit Server VM (build 1.6.0_07-b06-57, mixed mode)
-- Rob
On 4/8/09 5:57 PM, "Joe Hoffman" <joe at intelopment.com> wrote:
> 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:33
>> 0)
>>
>> 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:58
>> 6)
>>
>> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:31
>> 7)
>> 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/20090409/34c430b2/attachment.html
More information about the Javamail
mailing list