• Post Reply Bookmark Topic Watch Topic
  • New Topic

Tomcat on Linux  RSS feed

 
Meena Natarajan
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
I had created a application on Windows 98' and now trying to run the same on Linux. I am encountering this error. Please help.

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
/opt/jakarta/tomcat/work/Standalone/localhost/intra/dates/date_jsp.java:101: handlePageException(java.lang.Exception) in javax.servlet.jsp.PageContext cannot be applied to (java.lang.Throwable)
if (pageContext != null) pageContext.handlePageException(t);
^
1 error
 
Idly Vada
Ranch Hand
Posts: 135
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Meena Natarajan:

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
/opt/jakarta/tomcat/work/Standalone/localhost/intra/dates/date_jsp.java:101: handlePageException(java.lang.Exception) in javax.servlet.jsp.PageContext cannot be applied to (java.lang.Throwable)
if (pageContext != null) pageContext.handlePageException(t);
^
1 error

I think the problem is with the compilation of JSP. Have you looked at the tomcat generated servlet source code(date_jsp.java)? Why don't you post the JSP code here.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!