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 "Michael Krumpus (JIRA)" <ji...@apache.org> on 2007/05/16 21:27:16 UTC

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

     [ https://issues.apache.org/jira/browse/AXIS2-1809?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Krumpus updated AXIS2-1809:
-----------------------------------

    Attachment: fileseparatordiff

Attaching a unified diff to patch Axis2 1.2.

> WSDL2Java tool fails to gather all the schemas if they are imported or included using a path with '.' or '..'
> -------------------------------------------------------------------------------------------------------------
>
>                 Key: AXIS2-1809
>                 URL: https://issues.apache.org/jira/browse/AXIS2-1809
>             Project: 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, fileseparatordiff, 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.
-
You can reply to this email to add a comment to the issue online.


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