Return-Path: Delivered-To: apmail-cxf-issues-archive@www.apache.org Received: (qmail 83976 invoked from network); 15 Oct 2008 19:31:15 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 15 Oct 2008 19:31:15 -0000 Received: (qmail 55770 invoked by uid 500); 15 Oct 2008 19:31:16 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 55753 invoked by uid 500); 15 Oct 2008 19:31:16 -0000 Mailing-List: contact issues-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list issues@cxf.apache.org Received: (qmail 55742 invoked by uid 99); 15 Oct 2008 19:31:16 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Oct 2008 12:31:16 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Oct 2008 19:30:07 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 465A8234C229 for ; Wed, 15 Oct 2008 12:30:44 -0700 (PDT) Message-ID: <491009943.1224099044287.JavaMail.jira@brutus> Date: Wed, 15 Oct 2008 12:30:44 -0700 (PDT) From: "Daniel Kulp (JIRA)" To: issues@cxf.apache.org Subject: [jira] Resolved: (CXF-932) dynamic client needs to handle more complex wsdl MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/CXF-932?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Daniel Kulp resolved CXF-932. ----------------------------- Resolution: Fixed Fix Version/s: (was: Invalid) 2.1.3 I've added some methods to the dynamic client that now allow specifying binding files that can be used to overcome JAXB issues just like can be done with wsdl2java > 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.(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.(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.