I am just learning axis and trying to deploy the stock example. However, when I typed in java org.apache.axis.client.AdminClient
, I get the error:
Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/rpc/Service Exception Caused by: java.lang.ClassNotFoundException: javax.xml.rpc.ServiceException 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) Could not find the main class: org.apache.axis.client.AdminClient. Program will exit.
I did what the installation said to set classpath as :
D:\axis\lib\axis.jar;D:\axis\lib\commons-discovery-0.2.jar;D:\axis\lib\commons-logging-1.0.4.jar;D:\axis\lib\jaxrpc.jar:D:\axis\lib\saaj.jar;D:\axis\lib\log4j-1.2.8.jar;C:\Program Files\Java\external-libs\xml-apis.jar;C:\Program Files\Java\external-libs\xercesImpl.jar;D:\axis\lib\wsdl4j-1.5.1.jar;D:\axis\lib\axis-ant.jar
but still I get the error. I am freaking out! Can anyone tell me what I overlooked to cause this?