RE: HELP!!! java.lang.NoClassDefFoundError running CXF-based client inTomcat
From: Steve Cohen [mailto:[EMAIL PROTECTED] 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: HELP!!! java.lang.NoClassDefFoundError running CXF-based client inTomcat
Tomcat version is 6.0.16. Sorry for not mentioning it originally. Thanks. Caldarale, Charles R wrote: From: Steve Cohen [mailto:[EMAIL PROTECTED] 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
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:[EMAIL PROTECTED] 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: HELP!!! java.lang.NoClassDefFoundError running CXF-based client inTomcat
From: Steve Cohen [mailto:[EMAIL PROTECTED] Subject: Re: HELP!!! java.lang.NoClassDefFoundError running CXF-based client inTomcat Tomcat version is 6.0.16. That simplifies things, since the only directory to look at is Tomcat's lib. One common error is having j2ee.jar around, which is a no-no. One other thing you didn't mention is the names of the classes getting the NCDFE exceptions. - 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
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. This appears relevant to me after reading http://tomcat.apache.org/tomcat-6.0-doc/class-loader-howto.html - the section entitled XML Parsers and JSE 5, although I'm not sure what to do about it if this is the cause. This would be the first time we've tried adding a SOAP client to this application, so it seems likely that this is the case. Caldarale, Charles R wrote: From: Steve Cohen [mailto:[EMAIL PROTECTED] 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: HELP!!! java.lang.NoClassDefFoundError running CXF-based client inTomcat
From: Steve Cohen [mailto:[EMAIL PROTECTED] 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
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:[EMAIL PROTECTED] 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]