[ http://jira.codehaus.org/browse/XFIRE-568?page=all ]

Dan Diephouse updated XFIRE-568:
--------------------------------

    Fix Version/s: 1.2.3

I will see if I can fix this soon for 1.2.3 release (which I'm hoping to do 
this weekend)

> JAXB 2.0 with Annotations generates invalid schema imports
> ----------------------------------------------------------
>
>                 Key: XFIRE-568
>                 URL: http://jira.codehaus.org/browse/XFIRE-568
>             Project: XFire
>          Issue Type: Bug
>          Components: JAXB 2.0
>    Affects Versions: 1.2-RC, 1.1.2
>         Environment: Windows XP/Linux, Java 5
>            Reporter: Muhammad Alsebaey
>         Assigned To: Dan Diephouse
>             Fix For: 1.2.3
>
>
> When Using code first development with JAXB annotations, xfire generated 
> erroneous 
> {code:xml}
> <xs:import schemaLocation="schema2.xsd"/> 
> {code}
> with schemas that don't exist like schema1, schema2, etc. 
> This probably occurs because in JaxbWSDLBuilder.generateJaxbSchemas() , in 
> the override of createOutput()
> The code always sets the system Id:
> {code}
> DOMResult result = new DOMResult();
> result.setSystemId(file);
> results.add(result);
> {code}
> According to the Jaxb API, If the Result object has a system ID, it must be 
> an absolute system ID. Those system IDs are relativized by the caller and 
> used for <xs:import> statements. If the Result object does not have a system 
> ID, a schema for the namespace URI is generated but it won't be explicitly 
> <xs:import>ed from other schemas.
> [http://java.sun.com/javaee/5/docs/api/javax/xml/bind/SchemaOutputResolver.html#createOutput(java.lang.String,%20java.lang.String)]
> Therefore, I would need to generate a schema every time to avoid this, even 
> though all the info I need gets in the wsdl correctly without the need for 
> schema import...

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

        

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to