Return-Path: X-Original-To: apmail-cxf-users-archive@www.apache.org Delivered-To: apmail-cxf-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 77A7419479 for ; Thu, 14 Apr 2016 03:14:26 +0000 (UTC) Received: (qmail 53057 invoked by uid 500); 14 Apr 2016 03:14:25 -0000 Delivered-To: apmail-cxf-users-archive@cxf.apache.org Received: (qmail 53007 invoked by uid 500); 14 Apr 2016 03:14:25 -0000 Mailing-List: contact users-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@cxf.apache.org Delivered-To: mailing list users@cxf.apache.org Received: (qmail 52996 invoked by uid 99); 14 Apr 2016 03:14:24 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Apr 2016 03:14:24 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 5090FC07DF for ; Thu, 14 Apr 2016 03:14:24 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.486 X-Spam-Level: *** X-Spam-Status: No, score=3.486 tagged_above=-999 required=6.31 tests=[DKIM_ADSP_CUSTOM_MED=0.001, NML_ADSP_CUSTOM_MED=1.2, RCVD_IN_DNSWL_NONE=-0.0001, SPF_SOFTFAIL=0.972, URI_HEX=1.313] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id fNWLxYufQRzH for ; Thu, 14 Apr 2016 03:14:22 +0000 (UTC) Received: from mbob.nabble.com (mbob.nabble.com [162.253.133.15]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id C94615F24D for ; Thu, 14 Apr 2016 03:14:21 +0000 (UTC) Received: from msam.nabble.com (unknown [162.253.133.85]) by mbob.nabble.com (Postfix) with ESMTP id 22E1F252D40F for ; Wed, 13 Apr 2016 20:01:32 -0700 (PDT) Date: Wed, 13 Apr 2016 20:14:21 -0700 (MST) From: Emulator To: users@cxf.apache.org Message-ID: <1460603661308-5767839.post@n5.nabble.com> Subject: Behavior of wsdl2java between 3.0.1, 3.0.9 and 3.1.6 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi guys, I had a little experience on 3.0.1 and built a program by using wsdl2java to generate java class. And I back again, use CXF on another project, wish to keep them updated to 3.1.6. I use 3.1.6 to generate java class as following: ~/bin/apache-cxf-3.1.6/bin/wsdl2java -p tool.ws -client -impl -d output.3.1.6 AGivenDef.wsdl but failed as "A class/interface with the same name "com.aitc.test.DataSimple" is already in use. Use a class customization or the -autoNameResolution option to resolve this conflict." I tried to use: ~/bin/apache-cxf-3.1.6/bin/wsdl2java -autoNameResolution -p tool.ws -client -impl -d output.3.1.6 AGivenDef.wsdl but "Two declarations cause a collision in the ObjectFactory class." error still happened. After some testing, I dropped the package parameter, it works: ~/bin/apache-cxf-3.1.6/bin/wsdl2java -client -impl -d output.3.1.6 AGivenDef.wsdl Generate codes just without package name. Then I tried to use 3.0.9, get exactly the same result as 3.1.6. I go back to use 3.0.1, use the first line: ~/bin/apache-cxf-3.0.1/bin/wsdl2java -p tool.ws -client -impl -d output.3.0.1 AGivenDef.wsdl It successfully generated codes with package tool.ws I google some about "Two declarations cause a collision in the ObjectFactory class." but they are not related to package parameter. I want know the reason, or how to adjust my parameter in 3.0.9/3.1.6. Or Can I use the code generated by 3.0.1 in later version? Regards. -- View this message in context: http://cxf.547215.n5.nabble.com/Behavior-of-wsdl2java-between-3-0-1-3-0-9-and-3-1-6-tp5767839.html Sent from the cxf-user mailing list archive at Nabble.com.