You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Willem Jiang (JIRA)" <ji...@apache.org> on 2008/10/23 06:00:44 UTC

[jira] Closed: (CXF-932) dynamic client needs to handle more complex wsdl

     [ https://issues.apache.org/jira/browse/CXF-932?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Willem Jiang closed CXF-932.
----------------------------


> dynamic client needs to handle more complex wsdl 
> -------------------------------------------------
>
>                 Key: CXF-932
>                 URL: https://issues.apache.org/jira/browse/CXF-932
>             Project: CXF
>          Issue Type: Improvement
>          Components: Dynamic Languages
>    Affects Versions: 2.0.1
>         Environment: windows xp, jdk1.5
>            Reporter: Marty Henderson
>            Assignee: Daniel Kulp
>            Priority: Minor
>             Fix For: 2.1.3
>
>         Attachments: BusinessProcessManager.wsdl, DynamicClientGenerationTest.java
>
>
> when pointing the dynamic client at a more complex wsdl, the error below is seen when trying to generate the jaxb classes.
> 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)
> this seems to be a known issue in the jaxb component: https://jaxb.dev.java.net/guide/Dealing_with_errors.html
> whereby some form of configuration is needed to manage the collision.
> need to have a think about the best way to handle this.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.