Right now I am getting NoClassDefFoundError (see below), when my code is creating a stub. Any help is greatly appreciated. InmateMatchServiceStub stub = new InmateMatchServiceStub(myURL);
java.lang.NoClassDefFoundError: org/apache/axis2/client/Stub at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:539) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123) at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappCla ssLoader.java:1634) at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader .java:860) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader .java:1307) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader .java:1189) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302) at us.sc.state.doc.intake.IntakeInmateMatchAction.searchSCDC(IntakeInmateMa tchAction.java:108) ________________________________ From: Danny Lin [mailto:[EMAIL PROTECTED] Sent: Monday, January 15, 2007 4:12 PM To: [email protected]; [email protected] Subject: Axis2 client JAR requirements I have a webservice written using XMLBeans databinding. The client is also using XMLBeans. So far, I've got the web service running and the client (a Java class with main() method) is able to talk to the service without problems. In practice, I need to have a client from another webapp. I want to do something similar to my client.java in the test. The Axis2 is installed as a webapp. What's the recommendation for sharing the JAR libraries? Should I copy all Axis2 JAR to Tomcat shared/lib directory? Or, should I hand pick the required JARs and pack them within my WAR file? Is there a list of the required JAR files when using XMLBeans databinding? Thanks. Danny
