You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Pieter Temmerman <pt...@sadiel.es> on 2008/11/26 16:24:46 UTC

RE: HELP!!! java.lang.NoClassDefFoundError running CXF-based client inTomcat

One such tool is jarFinder
(http://www.isocra.com/articles/jarFinder.php)

You need Ant to build the tool.

Example:

java -cp classes com.isocra.utils.jarSearch.DirectorySearcher DIRECTORY
org.my.program.class

Another explanation could be that the wrong class loader is looking for
the class. Can you move your program .jar to /server/lib and see if it
works? (This is not a solution though).

On Wed, 2008-11-26 at 09:16 -0600, Caldarale, Charles R wrote:
> > From: Steve Cohen [mailto:scohen@javactivity.org]
> > Subject: HELP!!! java.lang.NoClassDefFoundError running
> > CXF-based client inTomcat
> >
> > I am beginning to think the problem is not a missing class
> > but a class conflicting with something in Tomcat.
> 
> Highly likely.  First just look at the names of the Tomcat-supplied jars and see if any match or are very similar to the ones you have in your webapp.  (Can't tell you which directories to look at, since that varies with the version of Tomcat you're using, which you didn't bother to tell us.)
> 
> If that doesn't turn up anything, try finding a tool to scan jars and report duplicate classes (sorry, I don't know of any specific ones, but there must be some out there).
> 
>  - Chuck
> 
> 
> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.
> 
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


RE: HELP!!! java.lang.NoClassDefFoundError running CXF-basedclient inTomcat

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Pieter Temmerman [mailto:ptemmerman.ext@sadiel.es]
> Subject: RE: HELP!!! java.lang.NoClassDefFoundError running
> CXF-basedclient inTomcat
>
> Can you move your program .jar to /server/lib and see if it
> works? (This is not a solution though).

You really, really don't want to do that - it just muddies the waters.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org