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 30A0DD793 for ; Mon, 17 Sep 2012 13:00:16 +0000 (UTC) Received: (qmail 98287 invoked by uid 500); 17 Sep 2012 13:00:14 -0000 Delivered-To: apmail-axis-java-dev-archive@axis.apache.org Received: (qmail 96815 invoked by uid 500); 17 Sep 2012 13:00:10 -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 96707 invoked by uid 99); 17 Sep 2012 13:00:08 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 Sep 2012 13:00:08 +0000 Date: Tue, 18 Sep 2012 00:00:08 +1100 (NCT) From: "Paul Thevenot (JIRA)" To: java-dev@axis.apache.org Message-ID: <1070279935.87365.1347886808641.JavaMail.jiratomcat@arcas> Subject: [jira] [Commented] (AXIS2-4451) Incorrect resolution of imported schema URLs MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/AXIS2-4451?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13456979#comment-13456979 ] Paul Thevenot commented on AXIS2-4451: -------------------------------------- Got the same problem today with the 1.3 version. After upgrade to the 1.6.2 version, it's working well! > Incorrect resolution of imported schema URLs > -------------------------------------------- > > Key: AXIS2-4451 > URL: https://issues.apache.org/jira/browse/AXIS2-4451 > Project: Axis2 > Issue Type: Bug > Components: wsdl > Affects Versions: 1.4.1 > Reporter: dmitry beransky > Assignee: Senaka Fernando > Priority: Critical > Fix For: 1.6.0 > > > [see the original email thread here: http://www.nabble.com/schema-location-resolution-td24648927.html] > I have several services deployed under Axis2: S1, S1, S3. Each service packages it's own but identical to others copy of enterprise-common.xsd that gets imported from each service's specific schema file: [S1.wsdl <-- S1.xsd <-- enterprise-common.xsd; S3.wsdl <-- S3.xsd <-- enterprise.common.xsd]. > Let's say I next deploy a new service S4 which also has a copy of enterprise-common.xsd, but this copy is different from those included with other services (it has new element and type definitions). > The location of S4's wsdl is . > When Axis2 serves the WSDL document, it rewrites schemaLocation to be 'schemaLocation="S4?xsd=S4.xsd"'. So, S4.xsd's absolute URL becomes > . > enterprise-common.xsd location inside of S4.xsd is defined as 'schemaLocation="enterprise-common.xsd"'. When Axis2 returns S4.xsd > it doesn't rewrite schema's location like it does with the wsdl document, so enterprise-common.xsd's absolute URL becomes > . > When Axis2 recieves a request for , which now doesn't have a service binding in the URL, as far as I can tell, it simply goes through all installed .aars looking for one that has the file. It finds it in the first service installed, say for example, S1. Unfortunately, S1 has the old version of enterprise-common.xsd that will against service S4. > Also, consider these three URLs: > 1. http://localhost/axis2/services/enterprise-common.xsd > 2. http://localhost/axis2/services/S4/enterprise-common.xsd > 3. http://localhost/axis2/services/S4?xsd=enterprise-common.xsd > Only #3 returns the schema that is defined inside of S4.aar (the newest version). #1 & #2 return an older version of enterprise-common.xsd that sits in other .aars. If I undeploy S1, S2, and S3 .aars, then #1 & #2 return the latest version from S4. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators 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