axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cleve OpenSource <cleve....@googlemail.com>
Subject WSDL2Java - I must be stupid
Date Mon, 24 Apr 2006 23:55:30 GMT

I'm having a really weird problem that i'm sure there is a simple fix for.

Using Axis 1, everything is easy. 

1) I have a WSDL file with the not too complex types section
2) I generate my classes from the WSDL file
3) deploy to a server and have a client stub connect through and test 
the web service.

Using Axis2, everything is supposed to be easy, but is not.  i must be 
stupid.

I keep having the same problem that Ken Campbell reports on 3/4/2006 @ 
14:45.  No answers were posted to the group.

http://mail-archives.apache.org/mod_mbox/ws-axis-user/200604.mbox/%3c000001c6572d$49dbe350$760110ac@KenC%3e

ClassPath problems for XMLBeans.  What is strange, is that a simple 
google search finds people asking the question but with no discernible 
answers coming back.

Has anyone run into this problem? 

Cheers,
Cleve





_____________________________________________

java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at 
org.apache.axis2.XjmiBookingTest.getTestObject(XjmiBookingTest.java:261)
    at org.apache.axis2.XjmiBookingTest.testping(XjmiBookingTest.java:200)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at junit.framework.TestCase.runTest(TestCase.java:164)
    at junit.framework.TestCase.runBare(TestCase.java:130)
    at junit.framework.TestResult$1.protect(TestResult.java:110)
    at junit.framework.TestResult.runProtected(TestResult.java:128)
    at junit.framework.TestResult.run(TestResult.java:113)
    at junit.framework.TestCase.run(TestCase.java:120)
    at 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:478)
    at 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:344)
    at 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
Caused by: java.lang.ExceptionInInitializerError
    at 
uk.co.groundtransport.xjmi.xjmi.wsdl.booking.PingDocument$Factory.newInstance(PingDocument.java:45)
    ... 19 more
Caused by: java.lang.RuntimeException: Cannot load SchemaTypeSystem. 
Unable to load class with name 
schemaorg_apache_xmlbeans.system.s6BC58055D4FA32B2157A35DE55719CF0.TypeSystemHolder. 
Make sure the generated binary files are on the classpath.
    at 
org.apache.xmlbeans.XmlBeans.typeSystemForClassLoader(XmlBeans.java:781)
    at 
uk.co.groundtransport.xjmi.xjmi.wsdl.booking.PingDocument.<clinit>(PingDocument.java:20)
    ... 20 more
Caused by: java.lang.ClassNotFoundException: 
schemaorg_apache_xmlbeans.system.s6BC58055D4FA32B2157A35DE55719CF0.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:767)
    ... 21 more



Mime
View raw message