• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Al Hobbs
  • salvin francis

classpath problem

 
Ranch Hand
Posts: 87
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

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,
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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.

Bill
 
ujwwala tem
Ranch Hand
Posts: 87
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

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,



Thanks,
Ujwwala
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic