+dev_at_jaxb.java.net
-------- Forwarded Message --------
Subject: Incorrect namespace generated by JAXB
Date: Wed, 11 Nov 2015 12:42:47 +0530
From: kiran kumar devarasetty <kiran.kumar.devarasetty_at_oracle.com>
Organization: Oracle Corporation
To: issues_at_jaxb.java.net
CC: GAJANAN.X.KULKARNI <gajanan.x.kulkarni_at_Oracle.COM>
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.