[prev in list] [next in list] [prev in thread] [next in thread] 

List:       tomcat-user
Subject:    Re: HELP!!! java.lang.NoClassDefFoundError running CXF-based client
From:       Steve Cohen <scohen () javactivity ! org>
Date:       2008-11-26 17:41:01
Message-ID: 492D8A2D.4070004 () javactivity ! org
[Download RAW message or body]

Thank you Larry!!!!!!!!!!!

That was it! I was barking up the wrong tree. The class that couldn't be 
loaded was indeed the "MyClient" class, which existed in a Utility Jar 
that I had not made a Java EE Module Dependency.

D'Oh!

Steve


Larry Isaacs wrote:
> Be aware that in Eclipse WTP, your web project is "published" to the server to be \
> served. Jars that are added to the project as runtime dependencies will be copied \
> to the "WEB-INF/lib" of the "published" webapp.  Just adding a jar to the build \
> path of the web project DOES NOT add the jar as a runtime dependency. The project \
> builds fine, but won't work at runtime due to missing classes.  Normally, the \
> Problems view will show warnings when this is the case. 
> Assuming this is your problem, go the Java EE Module Dependencies page in the web \
> project's Properties dialog.  Make sure all the jars you want in "WEB-INF/lib" at \
> runtime are checked. 
> Cheers,
> Larry
> 
> -----Original Message-----
> From: Steve Cohen [mailto:scohen@javactivity.org]
> Sent: Wednesday, November 26, 2008 11:44 AM
> To: Tomcat Users List
> Subject: Re: HELP!!! java.lang.NoClassDefFoundError running CXF-based client \
> inTomcat 
> It's the Real Tomcat, but running inside Eclipse WTP, which starts and
> stops the server.
> 
> Caldarale, Charles R wrote:
> 
> > > From: Steve Cohen [mailto:scohen@javactivity.org]
> > > Subject: Re: HELP!!! java.lang.NoClassDefFoundError running
> > > CXF-based client inTomcat
> > > 
> > > Another piece of information I omitted: JDK version
> > > java-1.5.0-sun-1.5.0.13 running under Ubuntu Linux.
> > > 
> > > 
> > Is this a real Tomcat or a 3rd-party repackaged version?  If the latter, please \
> > install a real one from tomcat.apache.org and try again, as the 3rd-party ones \
> > often break things in subtle ways. 
> > - 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
> 
> 
> 
> ---------------------------------------------------------------------
> 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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic