Hi All,
I am trying to run my client class as stand alone without using
ant build file. i have generated
java files from WSDL using Axis2. now i want to pass input parameters to the stub class automatically generated and hence trying to pass using client. i am able to do that and even run my application using ant build file. but i want to run my client class as standalone and when i am tryin to do that i am getting the following error.
Exception in
thread "main" java.lang.ExceptionInInitializerError
at com.myride.integrate.buy.leadengine.stub.PingDocument$Factory.newInstance(PingDocument.java:232)
at com.myride.integrate.buy.leadengine.LeadEngineInterfaceImpl.getDealers(LeadEngineInterfaceImpl.java:86)
at com.myride.integrate.buy.leadengine.LeadEngineInterfaceImpl.main(LeadEngineInterfaceImpl.java:458)
Caused by: java.lang.RuntimeException: Cannot load SchemaTypeSystem. Unable to load class with name schemaorg_apache_xmlbeans.system.s8C7290608CCAC7E87DA4C38A437F9B5C.TypeSystemHolder. Make sure the generated binary files are on the classpath.
at org.apache.xmlbeans.XmlBeans.typeSystemForClassLoader(XmlBeans.java:783)
at com.myride.integrate.buy.leadengine.stub.PingDocument.<clinit>(PingDocument.java:20)
... 3 more
Caused by: java.lang.ClassNotFoundException: schemaorg_apache_xmlbeans.system.s8C7290608CCAC7E87DA4C38A437F9B5C.TypeSystemHolder
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 org.apache.xmlbeans.XmlBeans.typeSystemForClassLoader(XmlBeans.java:769)
... 4 more
I tried to add generated .xsb files into my jar file and place it in class path but of no use. Kindly suggest some way out.