tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chuck Chopp <chuckch...@rtfmcsi.com>
Subject Re: JSP won't compile
Date Wed, 01 Sep 2004 15:42:29 GMT
Additional information:

I found some additional information in a server log.  It looks like the Java 
class that is being generated for "login.jsp" is not getting declared 
properly, or else the source file "login_jsp.java" is not being found even 
though it exists.

Here's the snippets of what I found in the log file.  Please note that only 
the tail end of this is what gets shown in the browser.

What I'm curious about is what the package names should be for java classes 
that are generated as part of converting a JSP into a java class.  The 
source file does exist but for some reason the exception 
"java.lang.ClassNotFoundException" occurs for the class 
"org.apache.jsp.login_jsp".


2004-09-01 11:17:36 ApplicationDispatcher[/Demo01] Servlet.service() for 
servlet jsp threw exception
org.apache.jasper.JasperException: Unable to compile class for JSP
	at org.apache.jasper.JspCompilationContext.load(JspCompilationContext.java)
	at 
org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java)
	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java)
	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java)
	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java)

[...snip...]

----- Root Cause -----
java.lang.ClassNotFoundException: org.apache.jsp.login_jsp
	at org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java)
	at org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java)
	at org.apache.jasper.JspCompilationContext.load(JspCompilationContext.java)
	at 
org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java)
	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java)
	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java)
	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java)

[...snip...]

2004-09-01 11:17:36 StandardWrapperValve[jsp]: Servlet.service() for servlet 
jsp threw exception
org.apache.jasper.JasperException: Exception forwarding for name login: 
org.apache.jasper.JasperException: Unable to compile class for JSP
	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java)
	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java)
	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java)

[...snip...]

----- Root Cause -----
javax.servlet.ServletException: Exception forwarding for name login: 
org.apache.jasper.JasperException: Unable to compile class for JSP
	at 
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java)
	at org.apache.jsp.index_jsp._jspService(index_jsp.java)
	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java)


-- 
Chuck Chopp

ChuckChopp (at) rtfmcsi (dot) com http://www.rtfmcsi.com

RTFM Consulting Services Inc.     864 801 2795 voice & voicemail
103 Autumn Hill Road              864 801 2774 fax
Greer, SC  29651

Do not send me unsolicited commercial email.


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message