[ 
https://issues.apache.org/jira/browse/AXIS2-3036?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12516966
 ] 

Stefan Lischke commented on AXIS2-3036:
---------------------------------------

I found and fixed this issue....

The problem was, that The Axis2EntityResolver returned an InputSource with a 
Reader in it and not an InputStream. XMLBeans uses a digest value to find 
already scanned files. And those digest is only generated when using an 
InputStream in an InputSource, so just add replace Method

getSchemaAsReader(XmlSchema schema)

with


        private InputStream getSchemaAsInputStream(XmlSchema schema){
                ByteArrayOutputStream baos      =       new 
ByteArrayOutputStream();
                schema.write(baos);
                return new ByteArrayInputStream(baos.toByteArray());
        }

and modify the both calls to them.....

;-)

> "Duplicate global type" when importing the same xsd from two other xsd's
> ------------------------------------------------------------------------
>
>                 Key: AXIS2-3036
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3036
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: codegen
>            Reporter: Stefan Lischke
>            Assignee: Amila Chinthaka Suriarachchi
>             Fix For: 1.3
>
>         Attachments: AXIS2-JIRA-3036.wsdl, AXIS2-JIRA-3036.zip, wsdl.zip
>
>
> When running wsdl2java on the attached wsdl & xsd files i got:
>  [java] Caused by: org.apache.xmlbeans.XmlException: 
> project://local/xmldsig-core-schema.xsd:6:1: error: sch-props-correct.2: 
> Duplicate global type: [EMAIL PROTECTED]://www.w3.org/2000/09/xmldsig# 
> (Original global type found in file: xmldsig-core-schema.xsd)
> xmldsig-core-schema.xsd is imported from xkms.xsd and from xenc-schema.xsd
> seems to be very similar to AXIS2-1885 and AXIS2-1781

-- 
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to