[PJUG Javamail] JSP errors, but only w/Tomcat 6
Rob Tanner
rtanner at linfield.edu
Mon Apr 13 23:24:53 UTC 2009
Thanks to everyone who replied, but the answer turned out to be none of the
above. I reinstalled Tomcat and copied over the old server.xml (the only
actual changes are to enable SSL) and all my problems went away. I¹m
suspicious of Eclipse. I¹m using Pulse/MyEclipse and starting and stopping
Tomcat from within Eclipse (something I don¹t do on my Linux system. I¹ve
had problems with it before and now I¹m thinking that¹s the cause. I¹m
going to post on their forum and see if I can find any answers or fixes,
etc.
Thanks again to all who replied. I¹m back up and running.
-- Rob
On 4/8/09 3:09 PM, "Rob Tanner" <rtanner at linfield.edu> 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://javac.com/pipermail/javamail/attachments/20090413/b7ddc159/attachment-0002.html>
More information about the Javamail
mailing list