| Author |
New jsp error
|
Dave Wingate
Ranch Hand
Joined: Mar 26, 2002
Posts: 262
|
|
.... well, it's new to me. I'm trying to bring a old .war application onto a new version and installation of tomcat (4.1). All of my jsp pages worked fine on the old installation ( I think; this is something I inherited). When I port my jsp's to v 4.1 I get this compilation error message: org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: -1 in the jsp file: null Generated servlet error: [javac] Compiling 1 source file at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:130) at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:293) at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:340) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:352) at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:474) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:184) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) etc. Has anyone seen this before? I'm stumped as to what the error message means.
|
Fun programming etcetera!
|
 |
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56168
|
|
|
Hmmm, not the most informative error message I've seen. Does this happen on all the JSPs or just one specific page?
|
[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
|
 |
Dave Wingate
Ranch Hand
Joined: Mar 26, 2002
Posts: 262
|
|
I didn't think the message was very helpful either. It happens on all of my jsps.
|
 |
Dave Wingate
Ranch Hand
Joined: Mar 26, 2002
Posts: 262
|
|
|
I also noticed that I get this error message when I try to view the examples jsps that are shipped with tomcat (like examples/jsp/dates/date.jsp). Does this mean that my installation of tomcat is totally hosed. Do I need to reinstall tomcat? Or could this be a configuration thing I dont know about?
|
 |
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56168
|
|
|
The examples should work right "out of the box" -- I'd suggest reinstallig Tomcat from scratch.
|
 |
 |
|
|
subject: New jsp error
|
|
|