tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martinelli Paolo A." <Paolo.Martine...@iriscube.com>
Subject RE: NoClassDefFoundError
Date Thu, 10 Jun 2004 11:31:21 GMT
Try to put the axis.jar under $CATALINA_HOME/shared/lib.

Which version of Tomcat are you using?

Bye,

Paolo Martinelli
IrisCube Reply S.p.A.

-----Original Message-----
From: angelraff@libero.it [mailto:angelraff@libero.it]
Sent: Thu 6/10/2004 12:37
To: tomcat-user
Subject: Re: NoClassDefFoundError
 
> Is your webapp in "ROOT"?  That's usually the default application for Tomcat and
> your own app would be in a named context.  Assuming you are doing the latter,
> and your named context is "mycontext", you'd put it in:
> 
> $CATALINA_HOME/webapps/mycontext/WEB-INF/lib
> 
> Jake

My application is in $CATALINA_HOME/webapps/ROOT/matrici

I have tried to put the jar file in
$CATALINA_HOME/webapps/ROOT/matrici/web/WEB-INF/lib and it fails

Assuming that my application is "matrici"

Do i have to put the jar file in $CATALINA_HOME/webapps/matrici/WEB-INF/lib?

I have a doubt... there are other jar files containing other inportant class and
this class is found correctly.
Why?

Angelo




> 
> Quoting "angelraff@libero.it" <angelraff@libero.it>:
> 
> > Hi all!
> > 
> > I'm new to Tomcat.
> > 
> > I have a problem testing my web application (jsp pages)
> > 
> > A page of this application fails with this exception:
> > javax.servlet.ServletException: org/apache/axis/client/Service
> > 	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:256)
> > 	javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
> > 
> > root cause
> > 
> > java.lang.NoClassDefFoundError: org/apache/axis/client/Service
> > 	java.lang.ClassLoader.defineClass0(Native Method)
> > 	java.lang.ClassLoader.defineClass(ClassLoader.java:537)
> > 	java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
> > 	java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
> > 	java.net.URLClassLoader.access$100(URLClassLoader.java:55)
> > 	java.net.URLClassLoader$1.run(URLClassLoader.java:194)
> > 	java.security.AccessController.doPrivileged(Native Method)
> > 	java.net.URLClassLoader.findClass(URLClassLoader.java:187)
> > 
>
org.apache.catalina.loader.StandardClassLoader.findClass(StandardClassLoader.java:520)
> > 
>
org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:857)
> > 
>
org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:756)
> > 	java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
> > 	java.lang.ClassLoader.defineClass0(Native Method)
> > 	java.lang.ClassLoader.defineClass(ClassLoader.java:537)
> > 	java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
> > 	java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
> > 	java.net.URLClassLoader.access$100(URLClassLoader.java:55)
> > 	java.net.URLClassLoader$1.run(URLClassLoader.java:194)
> > 	java.security.AccessController.doPrivileged(Native Method)
> > 	java.net.URLClassLoader.findClass(URLClassLoader.java:187)
> > 
>
org.apache.catalina.loader.StandardClassLoader.findClass(StandardClassLoader.java:520)
> > 
>
org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:857)
> > 
>
org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:756)
> > 
>
org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:840)
> > 
>
org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:756)
> > 
>
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1370)
> > 
>
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1230)
> > 	org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:184)
> > 	org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:110)
> > 	java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
> > 	java.lang.Class.getDeclaredConstructors0(Native Method)
> > 	java.lang.Class.privateGetDeclaredConstructors(Class.java:1610)
> > 	java.lang.Class.getConstructor0(Class.java:1922)
> > 	java.lang.Class.newInstance0(Class.java:278)
> > 	java.lang.Class.newInstance(Class.java:261)
> >         ..........etc etc.....
> > 
> > i have seen in the archive a similar problem posted by Tejo Vamsi Prayaga,
> > but
> > no solution
> > 
> > At the end that class is in axis.jar, file located in
> > $CATALINA_HOME/webapps/ROOT/WEB-INF/lib
> > Is this the right location for my jar files?
> > 
> > Thanx
> > Angelo
> > 
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org





---------------------------------------------------------------------
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