tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shapira, Yoav" <Yoav.Shap...@mpi.com>
Subject RE: JSP won't compile
Date Wed, 01 Sep 2004 15:51:41 GMT

Hi,
This is why you should put your class in a package:
http://jakarta.apache.org/tomcat/faq/classnotfound.html.

Yoav Shapira
Millennium Research Informatics


>-----Original Message-----
>From: news [mailto:news@sea.gmane.org] On Behalf Of Chuck Chopp
>Sent: Wednesday, September 01, 2004 11:42 AM
>To: tomcat-user@jakarta.apache.org
>Subject: Re: JSP won't compile
>
>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(JspServletWrappe
r.ja
>va)
>	at
>org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.j
ava)
>	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(JspServletWrappe
r.ja
>va)
>	at
>org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.j
ava)
>	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.j
ava)
>	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(PageConte
xtIm
>pl.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




This e-mail, including any attachments, is a confidential business communication, and may
contain information that is confidential, proprietary and/or privileged.  This e-mail is intended
only for the individual(s) to whom it is addressed, and may not be saved, copied, printed,
disclosed or used by anyone else.  If you are not the(an) intended recipient, please immediately
delete this e-mail from your computer system and notify the sender.  Thank you.


---------------------------------------------------------------------
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