Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Generating client from WSDL using AXIS2 tool problem

843833Jul 3 2008 — edited Jul 24 2008
Hi,

I read the document of AXIS2 at: http://ws.apache.org/axis2/1_2/userguide-creatingclients.html. I followed the instructions, but got an exception when I ran the client. I setup the classpath to have all the jar files for AXIS2. I use tomcat 1.6.* as the server and have the axis war file with it.

Here is the command to run the client:

C:\Data\webService\axis2-WSDL\build\classes>java org.apache.axis2.axis2userguide.Client

Here is the output from the console:

C:\Data\webService\axis2-WSDL\build\classes>java org.apache.axis2.axis2userguide.Client
log4j:WARN No appenders could be found for logger (org.apache.axis2.description.AxisService).
log4j:WARN Please initialize the log4j system properly.
***** 01 *****
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/axis2/databinding/ADBBean
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$000(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at org.apache.axis2.axis2userguide.Client.doInOnly(Client.java:34)
at org.apache.axis2.axis2userguide.Client.main(Client.java:19)
Caused by: java.lang.ClassNotFoundException: org.apache.axis2.databinding.ADBBean
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
... 14 more

I added one line before and after "DoInOnlyRequest req = new DoInOnlyRequest();", so that I know the problem is that line. However, DoInOnlyRequest.java is generated by AXIS2 tool. I cannot figure out what is wrong.

My workstation is window XP. Latest versions for AXIS2 and tomcat.

Could you help me to find the problem? Hope to hear from you soon.

Thanks and Regards,
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 21 2008
Added on Jul 3 2008
5 comments
4,067 views