tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Edoardo Panfili <>
Subject Re: NoClassDefFoundError: javax/servlet/http/HttpServlet
Date Tue, 02 May 2006 16:04:05 GMT
Edoardo Panfili wrote:
> Marc Farrow wrote:
> there is somethings wrog in my develope/deploy/me system.
> I'll begin from scratch.
After a fresh installation the problem is still here (but not after all 

sometimes Tocat throws this exception
java.lang.NoClassDefFoundError: javax/servlet/http/HttpServlet
         at java.lang.ClassLoader.defineClass1(Native Method)
         at java.lang.ClassLoader.defineClass(

but this not happens all the times, after a restart Tomcat now works 
correctly. I can't figure why.

In the original situation I have also another VM installed (I didn't 
know) but I have removed libgcj6 and all the dipendencies.

In catalina.log I can find:
Exception in thread "main" java.lang.NoClassDefFoundError: while 
resolving class: org.apache.catalina.startup.Bootstrap
    at java.lang.VMClassLoader.transformException(java.lang.Class, 
java.lang.Throwable) (/usr/lib/
    at java.lang.VMClassLoader.resolveClass(java.lang.Class) 
    at java.lang.Class.initializeClass() (/usr/lib/
    at java.lang.Class.forName(java.lang.String, boolean, 
java.lang.ClassLoader) (/usr/lib/
    at (/usr/lib/
Caused by: java.lang.ClassNotFoundException: 
not found in 
parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}}
    at java.lang.ClassLoader.loadClass(java.lang.String, boolean) 
    at java.lang.ClassLoader.loadClass(java.lang.String) 
    ...4 more
but now is no longer in my system

The first line of is
export JAVA_HOME=/opt/jdk

Tomcats starts up with no problems.
my libc version is 2.3.6
kernel version is 2.6.15
and the Sun JVM is 1.5.0_06

Now the system works but I don't know why.

Edoardo Panfili

AIM: edoardopn
tel:075 9142766

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message