tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Turner <tomcat-u...@johnturner.com>
Subject Re: Class Not Found Error for WebApp
Date Thu, 14 Aug 2003 15:59:47 GMT

Caused by: java.lang.NoClassDefFoundError:

NoClassDefFoundError != ClassNotFound

The two are different.  NoClassDef means that the class that is being 
found is not the one that is expected, not that the class is not found. 
   This comes up weekly at least, if not more often, try searching the 
archives.

John

Vid Bijelic wrote:

> Hi,
> 
> I am using Tomcat4.1, Apache2.0.4, Linux Redhat9.0,
> j2sdk1.4.2, and WebApp connector I downloaded from
> CVS.
> 
> I created webapp.so module and .jar file and place it
> in server/lib and I am gettint error class not found
> when trying to start Tomcat4. I tried puting classes
> directory from warp/build/ to /var/tomcat4/common and
> it didn't help. Here is the error trace from log file
> (catalina.out):
> 
> --------------------------------------------
>         at
> java.lang.reflect.Method.invoke(Method.java:324)
>         at
> org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
> Exception during startup processing
> java.lang.reflect.InvocationTargetException
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at
> java.lang.reflect.Method.invoke(Method.java:324)
>         at
> org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
> Caused by: java.lang.NoClassDefFoundError:
> org/apache/catalina/Connector
>         at java.lang.ClassLoader.defineClass0(Native
> Method)
>         at
> java.lang.ClassLoader.defineClass(ClassLoader.java:537)
>         at
> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
>         at
> java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
>         at
> java.net.URLClassLoader.access$100(URLClassLoader.java:55)
>         at
> java.net.URLClassLoader$1.run(URLClassLoader.java:194)
>         at
> java.security.AccessController.doPrivileged(Native
> Method)
>         at
> java.net.URLClassLoader.findClass(URLClassLoader.java:187)
>         at
> org.apache.catalina.loader.StandardClassLoader.findClass(StandardClassLoader.java:621)
>         at
> org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:958)
>         at
> org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:857)
>         at
> org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:941)
>         at
> org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:857)
>         at
> org.apache.commons.digester.ObjectCreateRule.begin(ObjectCreateRule.java:252)
>         at
> org.apache.commons.digester.Digester.startElement(Digester.java:1237)
>         at
> org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown
> Source)
>         at
> org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown
> Source)
>         at
> org.apache.xerces.impl.XMLNamespaceBinder.emptyElement(Unknown
> Source)
>         at
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown
> Source)
>         at
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
> Source)
>         at
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
> Source)
>         at
> org.apache.xerces.parsers.DTDConfiguration.parse(Unknown
> Source)
>         at
> org.apache.xerces.parsers.DTDConfiguration.parse(Unknown
> Source)
>         at
> org.apache.xerces.parsers.XMLParser.parse(Unknown
> Source)
>         at
> org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
> Source)
>         at
> org.apache.commons.digester.Digester.parse(Digester.java:1495)
>         at
> org.apache.catalina.startup.Catalina.start(Catalina.java:449)
>         at
> org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
>         at
> org.apache.catalina.startup.Catalina.process(Catalina.java:180)
>         ... 5 more
> ---------------------------------------------------
> 
> I would appreciate any help,
> 
> Thanks,
> 
> Vid
> 
> __________________________________
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free, easy-to-use web site design software
> http://sitebuilder.yahoo.com
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> 



Mime
View raw message