tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marc Farrow" <marc.far...@gmail.com>
Subject Re: NoClassDefFoundError: javax/servlet/http/HttpServlet
Date Tue, 02 May 2006 11:59:30 GMT
This seems like the classic "you are using a java JRE versus a java JDK".

On 5/2/06, Edoardo Panfili <edoardo@aspix.it> wrote:
>
>
> I did some search on google but seems that my situation is not the same
>
> I have a very simple webapp, (no lib directory in WEB-INF) in a fresh
> installation of Tomcat 5.5.17. The only add from me is the postgres jdbc
> driver postgresql-8.1-405.jdbc3.jar in the $tomcat/common/lib
>
> My system is: Linux 2.6.15-1-686 (Debian testing)
> and the java VM is the one from Sun: java version "1.5.0_06"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05)
> Java HotSpot(TM) Client VM (build 1.5.0_06-b05, mixed mode, sharing)
>
> Why tomcat throws this exception?
>
>
> 2-mag-2006 12.48.37 org.apache.catalina.core.StandardWrapperValve invoke
> GRAVE: Allocate exception for servlet UltimiDownload
> java.lang.NoClassDefFoundError: javax/servlet/http/HttpServlet
>         at java.lang.ClassLoader.defineClass1(Native Method)
>         at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
>         at
> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
>         at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
>         at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
>         at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
>         at
> org.apache.catalina.loader.WebappClassLoader.loadClass(
> WebappClassLoader.java:1267)
>         at
> org.apache.catalina.loader.WebappClassLoader.loadClass(
> WebappClassLoader.java:1198)
>         at
> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java
> :1034)
>         at
> org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java
> :757)
>         at
> org.apache.catalina.core.StandardWrapperValve.invoke(
> StandardWrapperValve.java:130)
>         at
> org.apache.catalina.core.StandardContextValve.invoke(
> StandardContextValve.java:178)
>         at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
> :126)
>         at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
> :105)
>         at
> org.apache.catalina.core.StandardEngineValve.invoke(
> StandardEngineValve.java:107)
>         at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java
> :148)
>         at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
>         at
>
> org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection
> (Http11BaseProtocol.java:664)
>         at
> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(
> PoolTcpEndpoint.java:527)
>         at
> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(
> LeaderFollowerWorkerThread.java:80)
>         at
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
> ThreadPool.java:684)
>         at java.lang.Thread.run(Thread.java:595)
>
>
> To reload the application I stop and restart tomcat. It seem that Tomcat
> works better (after some restart it producesed the exceeption some other
> times no) if I remove $tomcat/work/Catalina/ but it sound strange for
> me...
>
> thanks
> Edoardo
>
> --
> edoardo@aspix.it
> AIM: edoardopn
> Jabber: edoardopa@talk.google.com
> tel:075 9142766
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>


--
Marc Farrow
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message