This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Tomcat and the fly likes Problems with jsps in  tomcat 5.0.25 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Problems with jsps in  tomcat 5.0.25" Watch "Problems with jsps in  tomcat 5.0.25" New topic
Author

Problems with jsps in tomcat 5.0.25

Henry Dunn
Greenhorn

Joined: Feb 16, 2004
Posts: 4
I have never had problems with tomcat in the past.
However, I get errors whenever I try to execute even the simplest jsp pages, pages with only html code in them. I recently put such a file in the webapps/ROOT directory and got the following results when I tried to access it:
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
[javac] /usr/local/tomcat/work/Catalina/localhost/_/org/apache/jsp/test_jsp.java:56: handlePageException(java.lang.Exception) in javax.servlet.jsp.PageContext cannot be applied to (java.lang.Throwable)
[javac] if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
[javac] ^
[javac] 1 error

I don't know what I'm doing wrong, please help.


SCJP
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60761
    
  65

Moving to the Tomcat forum.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Dirk Schreckmann
Sheriff

Joined: Dec 10, 2001
Posts: 7023
Please continue in the duplicate thread...


[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problems with jsps in tomcat 5.0.25
 
Similar Threads
Compile errors when accessing *.jsp files.
Problems with jsps in tomcat 5.0.25
Unable to compile Jsp
Tomcat Error
Changing ClassPath