Fwd: Incorrect namespace generated by JAXB

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Fwd: Incorrect namespace generated by JAXB

kiran kumar devarasetty
+[hidden email]


-------- Forwarded Message --------
Subject: Incorrect namespace generated by JAXB
Date: Wed, 11 Nov 2015 12:42:47 +0530
From: kiran kumar devarasetty [hidden email]
Organization: Oracle Corporation
To: [hidden email]
CC: GAJANAN.X.KULKARNI [hidden email]


Hi,

We are using JAXB 2.1.14 with WebLogic Server and are currently facing this issue.

The issue is also seen with JAXB 2.2.x.

The issue is in generated schema, The java file has the correct annotation:
    @XmlElement(name = "FamilyRelationshipsInputList", namespace =
"a.b.c/data")
    private a.b.c.inputvo.FamilyRelationshipsInputVO
familyRelationshipsInputList;

where the wrong namespace is computed and then written,
resulting in:
  <xs:complexType name="updateGender">
    <xs:sequence>
      <xs:element ref="tns:FamilyRelationshipsInputList" minOccurs="0"/>
    </xs:sequence>
  </xs:complexType>


Instead of tns, the prefix should have been ns1.

Attached are the corresponding screenshots for reference.

Could you please let me know what needs to be done and how it can be fixed?
Would you be releasing a new version for this fix?

The following commit transaction seems to have introduced this regression in JAXB 2.1.14: ccaef7f6b3c47149a70edc1cf5dde956b8efdd5c

Let me know if you need any more details.

Thanks and Regards,
Kiran.



schema1.gif (142K) Download Attachment
schema2.gif (107K) Download Attachment