File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes New jsp error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » JSP
Bookmark "New jsp error" Watch "New jsp error" New topic
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: 61310
    
  66

Hmmm, not the most informative error message I've seen. Does this happen on all the JSPs or just one specific page?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by 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: 61310
    
  66

The examples should work right "out of the box" -- I'd suggest reinstallig Tomcat from scratch.
 
GeeCON Prague 2014
 
subject: New jsp error