You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Amila Chinthaka Suriarachchi (JIRA)" <ji...@apache.org> on 2006/12/18 09:46:24 UTC

[jira] Assigned: (AXIS2-1809) WSDL2Java tool fails to gather all the schemas if they are imported or included using a path with '.' or '..'

     [ http://issues.apache.org/jira/browse/AXIS2-1809?page=all ]

Amila Chinthaka Suriarachchi reassigned AXIS2-1809:
---------------------------------------------------

    Assignee: Davanum Srinivas

> WSDL2Java tool fails to gather all the schemas if they are imported or included using a path with '.' or '..'
> -------------------------------------------------------------------------------------------------------------
>
>                 Key: AXIS2-1809
>                 URL: http://issues.apache.org/jira/browse/AXIS2-1809
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: codegen
>    Affects Versions: 1.1
>         Environment: Fedora core 3 with kernel version 2.6.12-1.1376_FC3smp
>            Reporter: Srinath
>         Assigned To: Davanum Srinivas
>         Attachments: axis2bug.zip, proposedFix.diff, xmlbeans.patch
>
>
> I was using the WSDL2Java tool to generate stubs for my WSDL.
> The wsdl imports schemas that in-turn include/import other schemas.
> These schemas specify the schemaLocation using a relative path.
> WSDL2Java fails to process these schemas. Code generation fails with error messages saying "Element XYZ@url.com does not exist", etc.
> Sometimes the error messages say "Duplicate global type:", etc.
> Looking into the org/apache/axis2/xmlbeans/CodeGenerationUtility.java, I can see an issue with the way the systemId are being used to locate the schemas.
> If I import a schema with a relative path, for ex: 
> <import
>             namespace="http://www.abcdefghij.com/schemas/myschemas/"
>             schemaLocation="../schemas/myschema.xsd"/>
> The Axis2EntityResolver tries to find a schema whose sourceURI ends with the systemId. This is incorrect since the sourceURI of a schema is always an absolute path.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org