Are you referencing the page as xxxxx.jsp or just xxxx

That caught me out a couple of times. Additionally check the servlet entries
in your web.XML file.

Regards

Kevin

-----Original Message-----
From: John and Alicia Scott [mailto:[EMAIL PROTECTED]]
Sent: 05 July 2002 20:19
To: [EMAIL PROTECTED]
Subject: Tomcat 4.0.3-HTTP Status 500-Internal Server Error


Hi,

I've just started to use Tomcat 4.0.3.  All of the applications in the
\webapps\examples file that came with Tomcat run correctly.  I added a new
folder, \webapps\examples\jsp\forms, that contains form.jsp.  This file
sends/receives data from a javabean that I put in the
\webapps\examples\WEB_INF\classes\forms folder.  The bean is named
FormBean.java.  When I try to run the jps page from my browser, I get the
following error message: Tomcat 4.0.3-HTTP Status 500-Internal Server Error.
I copies part of the long root cause output below.
java.lang.ClassNotFoundException: com.jguru.FormBean
        at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav
a:1394)
        at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav
a:1243)
        at
org.apache.jasper.compiler.BeanRepository.getBeanType(BeanRepository.java:18
1)
        at
org.apache.jasper.compiler.GetPropertyGenerator.generate(GetPropertyGenerato
r.java:102)
        at
org.apache.jasper.compiler.JspParseEventListener$GeneratorWrapper.generate(J
spParseEventListener.java:834)
        at
org.apache.jasper.compiler.JspParseEventListener.generateAll(JspParseEventLi
stener.java:241)
        at
org.apache.jasper.compiler.JspParseEventListener.endPageProcessing(JspParseE
ventListener.java:197)
        at org.apache.jasper.compiler.Compiler.compile(Compiler.java:215)
        at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:552)
        at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe
rvlet.java:177)
        at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:189)
        at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
        at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
This appears to be a classpath problem, but I can't identify what is wrong
with my configuration, if anything.  Do you have suggestions
on how to correct this problem?
Thanks,
John


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to