tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dave <fu...@flashmail.com>
Subject Got internal servlet error with tomcat's example
Date Wed, 08 Nov 2000 19:11:04 GMT
Hi all,

I was testing my tomcat installation using examples from the package,
I had no problem in running the examples using the set-up from
mod_jk.conf-auto, which use "Alias" to set-up "/examples" in my
default web root.  

However, when I setup another vertualhost, I got internal servlet
error.  I was using the same "examples", it shouldn't be a programming
error.

Here is my setup of VH

	httpd.conf--->

<VirtualHost 192.168.0.5>
ServerName jsp
DocumentRoot "/www/examples"
JkMount /*.jsp apj13
JkMount /servlet/* apj13
........
</VirtualHost>

	server.xml --->

<Host "jsp">
    <Context path=""
	docBase="/www/examples" debug="0">
</Host>

	Here is my output from the browser---->

Error: 500
Location: /jsp/num/numguess.jsp
Internal Servlet Error:

javax.servlet.ServletException: num/NumberGuessBean
	at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:390)
	at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:387)
	at org.apache.tomcat.core.Handler.service(Handler.java:263)
	at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:371)
	at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:786)
	at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:732)
	at
org.apache.tomcat.service.connector.Ajp13ConnectionHandler.processConnection(Ajp13ConnectionHandler.java:160)
	at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:407)
	at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
	at java.lang.Thread.run(Thread.java:484)

Root cause: 
java.lang.NoClassDefFoundError: num/NumberGuessBean
	at java.lang.Class.newInstance0(Native Method)
	at java.lang.Class.newInstance(Class.java:237)
	at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.load(JspServlet.java:116)
	at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:154)
	at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:164)
	at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:309)
	at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:382)
	at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:387)
	at org.apache.tomcat.core.Handler.service(Handler.java:263)
	at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:371)
	at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:786)
	at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:732)
	at
org.apache.tomcat.service.connector.Ajp13ConnectionHandler.processConnection(Ajp13ConnectionHandler.java:160)
	at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:407)
	at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
	at java.lang.Thread.run(Thread.java:484)



Any idea? CLASSPATH? TOMCAT_HOME?

Thanks
Dave

Mime
View raw message