[JIRA] Created: (JAXB-1024) we are having multiple schema which is having same element name and same namespace

  • From: "androidgalaxyman (JIRA)" <jira-no-reply@...>
  • To: issues@...
  • Subject: [JIRA] Created: (JAXB-1024) we are having multiple schema which is having same element name and same namespace
  • Date: Tue, 3 Jun 2014 04:54:49 +0000 (UTC)
  • Auto-submitted: auto-generated

we are having multiple schema which is having same element name and same 
namespace 
-----------------------------------------------------------------------------------

                 Key: JAXB-1024
                 URL: https://java.net/jira/browse/JAXB-1024
             Project: jaxb
          Issue Type: Bug
          Components: xjc
    Affects Versions: 2.2.5
         Environment: Windows 7 , jboss EAP 6.1 Final , jdk java version 
"1.6.0_22"
Java(TM) SE Runtime Environment (build 1.6.0_22-b04)
            Reporter: androidgalaxyman
            Assignee: Iaroslav Savytskyi
            Priority: Critical


our application generates the web service classes using JAXB / XJC compiler. 
we are giving multiple schema as the input to get the java classes for web 
services . The schema files will be compiled each one and put into the 
separate packages. assume we are having X and Y schema , just like below 
mentioned schema. Each schema having same element name , but having the type 
of complexType .but different complex type. When compilation it will generate 
the multiple ObjectFactory. This web service , we are trying to deploy in 
jboss EAP 6.1 ,results the problem of illegalAnnotationException. Can you 
please anyone advise?

Caused by: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 1 counts 
of IllegalAnnotationExceptions
The element name {}row has more than one mapping.
                this problem is related to the following location:
                                at public javax.xml.bind.JAXBElement 
com.xxx.tws.pojo.XType.ObjectFactory.createRow(com.xxx.tws.pojo.XType.XType)
                                at com.xxx.tws.pojo.XType.ObjectFactory
                this problem is related to the following location:
                                at public javax.xml.bind.JAXBElement 
com.xxx.tws.pojo.XTESTType.ObjectFactory.createRow(com.xxx.tws.pojo.XTESTType.XTESTType)
                                at com.xxx.tws.pojo.XTESTType.ObjectFactory
 

X:
**
<?xml version="1.0"?><xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" ;
xmlns:hfp="http://www.w3.org/2001/XMLSchema-hasFacetAndProperty";>
<xsd:element name="row" type="XType"></xsd:element>
<xsd:complexType name="XType">
</xsd:complexType
</xsd:schema

Y:
**
<?xml version="1.0"?><xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" ;
xmlns:hfp="http://www.w3.org/2001/XMLSchema-hasFacetAndProperty";>
<xsd:element name="row" type="XTESTType"></xsd:element>
<xsd:complexType name="XTESTType">
</xsd:complexType
</xsd:schema

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

        


[JIRA] Created: (JAXB-1024) we are having multiple schema which is having same element name and same namespace

androidgalaxyman (JIRA) 06/03/2014
Terms of Use; Privacy Policy; Copyright ©2013-2015 (revision 20150626.29986a4)
 
 
Close
loading
Please Confirm
Close