Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 76509 invoked from network); 16 Jun 2009 11:45:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 16 Jun 2009 11:45:19 -0000 Received: (qmail 70320 invoked by uid 500); 16 Jun 2009 11:45:30 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 70254 invoked by uid 500); 16 Jun 2009 11:45:29 -0000 Mailing-List: contact axis-dev-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-dev@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-dev@ws.apache.org Received: (qmail 70245 invoked by uid 99); 16 Jun 2009 11:45:29 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Jun 2009 11:45:29 +0000 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; Tue, 16 Jun 2009 11:45:28 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id D10F4234C053 for ; Tue, 16 Jun 2009 04:45:07 -0700 (PDT) Message-ID: <1203251561.1245152707855.JavaMail.jira@brutus> Date: Tue, 16 Jun 2009 04:45:07 -0700 (PDT) From: "Henrik Larne (JIRA)" To: axis-dev@ws.apache.org Subject: [jira] Created: (AXIS2-4381) Service names in generated Service stubs (from wsdl) are not application unique 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 Service names in generated Service stubs (from wsdl) are not application unique ------------------------------------------------------------------------------- Key: AXIS2-4381 URL: https://issues.apache.org/jira/browse/AXIS2-4381 Project: Axis 2.0 (Axis2) Issue Type: Bug Components: wsdl Affects Versions: 1.4.1, 1.5 Environment: Windows XP, JDK 1.6.0_10, Maven 2.0.10 Reporter: Henrik Larne The service name used in the generated Service stubs are not unique when using wsdl2java Maven plugin. The names are built from the unqualified service name concatenated with a suffix from the following method: private static synchronized String getUniqueSuffix() { // reset the counter if it is greater than 99999 if (counter > 99999){ counter = 0; } counter = counter + 1; return Long.toString(System.currentTimeMillis()) + "_" + counter; } The problem is that each service stub has its own version of this unique suffix method and thus two (or more) methods could be called concurrently and thus generate the same suffix. If the classes they belong to have the same unqualified name the service names will be identical and thus the last one to be created will fail when it is beeing registered in the AxisConfiguration. Solutions: 1. Make sure that there is only one getUniqueSuffix method (for instance in AxisConfiguration). 2. Use the fully qualified class name plus the suffix to name a new service -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.