File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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: 87

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(
at org.example.www.client.addNumbers(
at org.example.www.client.main(
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(
at org.example.www.xsd.AddNumbersDocument.<clinit>(
... 3 more
Caused by: java.lang.ClassNotFoundException: schemaorg_apache_xmlbeans.system.s7CDCA0E99B6F193510B1D0DA962B6B5E.TypeSystemHolder
at Method)
at java.lang.ClassLoader.loadClass(
at sun.misc.Launcher$AppClassLoader.loadClass(
at java.lang.ClassLoader.loadClass(
at org.apache.xmlbeans.XmlBeans.typeSystemForClassLoader(
... 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: 13036
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: 87

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 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:
subject: classpath problem
It's not a secret anymore!