Hello,

I'm struggling with what I suspect is jar file hell whilst trying to make a 
simple WSDL call with CXF 2.3.1.  Here's the code:

         JaxWsDynamicClientFactory dcf = 
JaxWsDynamicClientFactory.newInstance();
         Client client = dcf.createClient(wsdl);      

And here's the exception:

java.lang.reflect.UndeclaredThrowableException
        at $Proxy15.bind(Unknown Source)
        at 
org.apache.cxf.endpoint.dynamic.DynamicClientFactory.createClient(DynamicClientFactory.java:273)
        at 
org.apache.cxf.endpoint.dynamic.DynamicClientFactory.createClient(DynamicClientFactory.java:198)
        at 
org.apache.cxf.endpoint.dynamic.DynamicClientFactory.createClient(DynamicClientFactory.java:191)
        at 
org.apache.cxf.endpoint.dynamic.DynamicClientFactory.createClient(DynamicClientFactory.java:146)
        ...
Caused by: 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:597)
        at 
org.apache.cxf.common.util.ReflectionInvokationHandler.invoke(ReflectionInvokationHandler.java:52)
        ... 7 more
Caused by: java.lang.AssertionError
        at 
com.sun.tools.internal.xjc.reader.internalizer.DOMForest.getOneDocument(DOMForest.java:213)
        at 
com.sun.tools.internal.xjc.reader.internalizer.Internalizer.move(Internalizer.java:300)
        at 
com.sun.tools.internal.xjc.reader.internalizer.Internalizer.transform(Internalizer.java:130)
        at 
com.sun.tools.internal.xjc.reader.internalizer.Internalizer.transform(Internalizer.java:85)
        at 
com.sun.tools.internal.xjc.reader.internalizer.DOMForest.transform(DOMForest.java:437)
        at 
com.sun.tools.internal.xjc.api.impl.s2j.SchemaCompilerImpl.bind(SchemaCompilerImpl.java:210)
        ... 12 more

I expect this is a jar file issue as I've got some old Axis 1.4 in the project, 
but I've tried removing it and the problem didn't go away.  I'm using Java 1.6. 
 Any thoughts on where I should start looking?  The source suggested JAXB but I 
can't see another JAXB jar in my Eclipse project.


John

Reply via email to