wood burning stoves 2.0*
The moose likes Web Services and the fly likes classpath  problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "classpath  problem" Watch "classpath  problem" New topic

classpath problem

ujwwala tem
Ranch Hand

Joined: Feb 10, 2010
Posts: 83

I am trying to create stubs and skeletons using xmlbeans+axis2 ,I have deployed the service now craeting the client
I am getting the classpath problem as:

module: metadataExchange - file:/C:/axis2_SDK/lib/mex-1.4.1.jar
Exception in thread "main" java.lang.ExceptionInInitializerError
at org.example.www.xsd.AddNumbersDocument$Factory.newInstance(AddNumbersDocument.java:45)
at org.example.www.client.addNumbers(client.java:33)
at org.example.www.client.main(client.java:21)
Caused by: java.lang.RuntimeException: Cannot load SchemaTypeSystem. Unable to load class with name schemaorg_apache_xmlbeans.system.s7CDCA0E99B6F193510B1D0DA962B6B5E.TypeSystemHolder. Make sure the generated binary files are on the classpath.
at org.apache.xmlbeans.XmlBeans.typeSystemForClassLoader(XmlBeans.java:783)
at org.example.www.xsd.AddNumbersDocument.<clinit>(AddNumbersDocument.java:20)
... 3 more
Caused by: java.lang.ClassNotFoundException: schemaorg_apache_xmlbeans.system.s7CDCA0E99B6F193510B1D0DA962B6B5E.TypeSystemHolder
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at org.apache.xmlbeans.XmlBeans.typeSystemForClassLoader(XmlBeans.java:769)
... 4 more

I have put the typesystemhandler.class as a jar in classpath,
Please Reply,
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 12823
I have put the typesystemhandler.class as a jar in classpath,

Is that jar file name specified in the classpath? Just pointing to the directory is not enough.

ujwwala tem
Ranch Hand

Joined: Feb 10, 2010
Posts: 83

Yes I put the typesystemhandler.jar in c: and gave the path in classpath but still its asking me for classnotfoundexception, I want to know as I have created client class using wsdl2java -s -d xmlbeans -o client,

It has craeted clientstub so I have written a client.java class and runnning it as java appication in eclipse so heare in the classpath I have given the c:\systemhandler.jar,

I agree. Here's the link: http://aspose.com/file-tools
subject: classpath problem