Return-Path: X-Original-To: apmail-axis-java-dev-archive@www.apache.org Delivered-To: apmail-axis-java-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id AD59145FE for ; Tue, 17 May 2011 16:57:30 +0000 (UTC) Received: (qmail 24919 invoked by uid 500); 17 May 2011 16:57:29 -0000 Delivered-To: apmail-axis-java-dev-archive@axis.apache.org Received: (qmail 24807 invoked by uid 500); 17 May 2011 16:57:29 -0000 Mailing-List: contact java-dev-help@axis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-dev@axis.apache.org Delivered-To: mailing list java-dev@axis.apache.org Received: (qmail 24799 invoked by uid 99); 17 May 2011 16:57:29 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 May 2011 16:57:29 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 May 2011 16:57:27 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 5B0DDCDF02 for ; Tue, 17 May 2011 16:56:47 +0000 (UTC) Date: Tue, 17 May 2011 16:56:47 +0000 (UTC) From: "Afkham Azeez (JIRA)" To: java-dev@axis.apache.org Message-ID: <1456848459.19716.1305651407369.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1909205245.26928.1304650203312.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (AXIS2-5020) ClassCastExceptions between two axis2 client jars with different package MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/AXIS2-5020?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Afkham Azeez updated AXIS2-5020: -------------------------------- Priority: Major (was: Blocker) This seems to be a configuration issue on the client. Anyway, if at all such an issue exists, the workaround is to have them in two different WAR files or EARs. This is certainly not a blocker. > ClassCastExceptions between two axis2 client jars with different package > ------------------------------------------------------------------------ > > Key: AXIS2-5020 > URL: https://issues.apache.org/jira/browse/AXIS2-5020 > Project: Axis2 > Issue Type: Bug > Components: client-api > Affects Versions: 1.5 > Environment: Windows XP, Java 1.6. > Reporter: Sunny Wu > > In one EAR file, we have two client jars generated against the same wsdl. Both are using the org.apache.axis2.wsdl.WSDL2Java -uri -p -d xmlbeans -ns2p . > ClientA proxy classes have package name as a. > ClientB proxy classes have package name as b. > in first.java, we use the clientA like: > import a.ResponseDocumet; > import a.Stub; > responseDocument responseDoc = ResponseDocument.Factory.newInstance(); > .... > responseDoc = stub.sameMethod(...); > ------------------------------------------------------------------------------------------------------------------------------------------------------------ > in second.java, we use the ClientB like: > import b.ResponseDocumet; > import b.Stub; > ResponseDocument responseDoc = ResponseDocument.Factory.newInstance(); > .... > responseDoc = stub.sameMethod(...); > ---------------------------------------------------------------------------------------------------------------------------------------------------------------- > It doesn't have any problem in compile. And first.java is also working correctly at runtime. But second.java got this exception at runtime: > org.apache.axis2.AxisFault: a.impl.ResponseDocumentImpl with cause as java.lang.ClassCastException: a.impl.ResponseDocumentImpl. > It should be using b package, but don't know why it referred to a in the stub implementation. > It will be highly appreciated if you can help. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org For additional commands, e-mail: java-dev-help@axis.apache.org