Hi folks,
Having a problem with the Dynamic client on some wsdl.  Basically I'm
getting this on attempting to generate the client:

java.lang.RuntimeException: Error compiling schema from WSDL at {
http://localhost:8080/donkey/services/service?wsdl}: Two declarations cause
a collision in the ObjectFactory class.
    at
org.apache.cxf.endpoint.dynamic.DynamicClientFactory$InnerErrorListener.error(DynamicClientFactory.java:409)
    at
com.sun.tools.xjc.api.impl.s2j.SchemaCompilerImpl.error(SchemaCompilerImpl.java:245)
    at
com.sun.tools.xjc.util.ErrorReceiverFilter.error(ErrorReceiverFilter.java:61)
    at com.sun.tools.xjc.ErrorReceiver.error(ErrorReceiver.java:66)
    at
com.sun.tools.xjc.generator.bean.ObjectFactoryGeneratorImpl.populate(ObjectFactoryGeneratorImpl.java:150)
    at
com.sun.tools.xjc.generator.bean.PublicObjectFactoryGenerator.populate(PublicObjectFactoryGenerator.java:19)
    at
com.sun.tools.xjc.generator.bean.BeanGenerator.<init>(BeanGenerator.java:210)
    at
com.sun.tools.xjc.generator.bean.BeanGenerator.generate(BeanGenerator.java:151)
    at com.sun.tools.xjc.model.Model.generateCode(Model.java:226)
    at
com.sun.tools.xjc.api.impl.s2j.SchemaCompilerImpl.bind(SchemaCompilerImpl.java:211)
    at
com.sun.tools.xjc.api.impl.s2j.SchemaCompilerImpl.bind(SchemaCompilerImpl.java:66)
    at
org.apache.cxf.endpoint.dynamic.DynamicClientFactory.createClient(DynamicClientFactory.java:166)
    at
org.apache.cxf.endpoint.dynamic.DynamicClientFactory.createClient(DynamicClientFactory.java:137)
    at
com.donkey.donkey.scaffold.service.DynamicService.constructClient(Dynamicervice.java:92)
    at
com.donkey.donkey.scaffold.service.DynamicService.<init>(DynamicService.java:36)
    at
com.donkey.donkey.scaffold.service.DynamicServiceTest.testInvoke(DynamicServiceTest.java:20)
    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:154)
    at junit.framework.TestCase.runBare(TestCase.java:127)
    at junit.framework.TestResult$1.protect(TestResult.java:106)
    at junit.framework.TestResult.runProtected(TestResult.java:124)
    at junit.framework.TestResult.run(TestResult.java:109)
    at junit.framework.TestCase.run(TestCase.java:118)
    at junit.framework.TestSuite.runTest(TestSuite.java:208)
    at junit.framework.TestSuite.run(TestSuite.java:203)
    at
org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:128)
    at
org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
    at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
    at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
    at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
    at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
Caused by: com.sun.istack.SAXParseException2: Two declarations cause a
collision in the ObjectFactory class.
    ... 31 more

on looking at the unoffical jaxb guide:
https://jaxb.dev.java.net/guide/Dealing_with_errors.html

its telling me to use a factoryMethod on the conflicting methods/whatever...
however I'm not sure how to do this within cxf.
Anyone else come across anything like this?

Marty


-- 
View this message in context: 
http://www.nabble.com/Dynamic-Client-issue-ObjectFactory-tf4261045.html#a12125687
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to