It is not loading servlet.jar cos that is only there in the tomcat lib. Just shove a copy of that under JBOSS_HOME/lib/ext and it should find it on restart. Vinay
----- Original Message ----- From: Norton Lam Sent: Tuesday, May 01, 2001 10:58 PM To: '[EMAIL PROTECTED]' Subject: [JBoss-user] NoClassDefFoundError: javax/servlet/http/HttpServle
Can someone please help me with this exception I'm getting from my servlet?
java.lang.NoClassDefFoundError: javax/servlet/http/HttpServlet at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java, Compiled Code) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java, Compiled Code) at java.net.URLClassLoader.defineClass(URLClassLoader.java, Compiled Code) at java.net.URLClassLoader.access$1(URLClassLoader.java, Compiled Code) at java.net.URLClassLoader$1.run(URLClassLoader.java, Compiled Code) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java, Compiled Code) at java.lang.ClassLoader.loadClass(ClassLoader.java, Compiled Code) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java, Compiled Code) at java.lang.ClassLoader.loadClass(ClassLoader.java, Compiled Code) at java.lang.ClassLoader.loadClass(ClassLoader.java, Compiled Code) at org.apache.tomcat.loader.AdaptiveClassLoader.loadClass(AdaptiveClassLoader.j ava, Compiled Code) at org.apache.tomcat.loader.AdaptiveServletLoader.loadClass(AdaptiveServletLoad er.java, Compiled Code) at org.apache.tomcat.core.ServletWrapper.loadServlet(ServletWrapper.java, Compiled Code) at org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java, Compiled Code) at org.apache.tomcat.core.Handler.service(Handler.java, Compiled Code) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java, Compiled Code) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java, Compiled Code) at org.apache.tomcat.core.ContextManager.service(ContextManager.java, Compiled Code) at org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection (Ajp12ConnectionHandler.java, Compiled Code) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java, Compiled Code) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java, Compiled Code) at java.lang.Thread.run(Thread.java, Compiled Code)
I'm running on Linux with Apache 1.3.19 delegating to Tomcat/Jboss. I'm running my own version of tomcat (instead of the JBoss-Tomcat distribution) because I need a virtual host configuration through apache.
Jboss reports the TOMCAT_HOME/lib/servlet.jar being added to the classpath extension when it's started.
[Classpath extension] Added library:file:/usr/local/jakarta-tomcat-3.2.1/lib/ant .jar [Classpath extension] Added library:file:/usr/local/jakarta-tomcat-3.2.1/lib/jax p.jar [Classpath extension] Added library:file:/usr/local/jakarta-tomcat-3.2.1/lib/ser vlet.jar [Classpath extension] Added library:file:/usr/local/jakarta-tomcat-3.2.1/lib/par ser.jar [Classpath extension] Added library:file:/usr/local/jakarta-tomcat-3.2.1/lib/web server.jar [Classpath extension] Added library:file:/usr/local/jakarta-tomcat-3.2.1/lib/jas per.jar [Classpath extension] Added library:file:/usr/local/jdk1.2.2/lib/tools.jar
The servlet works fine when run via tomcat alone, but not with the jboss/tomcat combination.
Is there something else I should check?
Thanx for your help.
Norton
_______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
|