1 Reply Latest reply on Oct 3, 2013 4:27 PM by n3k0

    Differences between Jboss EAP6 and Weblogic 11 XML implementation responses

    n3k0 Newbie

      I have a problem with a Webservice deployed in JBoss EAP 6.
      I have a war file, that war contains a WS, but, that war originally was developed and tested in a Weblogic 11 AS; and everything works fine BUT
      my boss said that my war can deploys in other server (JBoss) that he has mounted in other computer.


      Everything is normal, but in the response, the date is different, i mean, in Weblogic, it appears like this:


      <birthday class="com.sun.org.apache.xerces.internal.jaxp.datatype.XMLGregorianCalendarImpl"> 

      So, in JBoss EAP 6, the date appears like this:


      <birthday class="org.apache.xerces.jaxp.datatype.XMLGregorianCalendarImpl"> 

      My question is, how can i switch the implementation of the de/serializer for this data type?
      It seems, Weblogic uses the JDK interal classes to make the job, but JBoss uses it's own implementation.


      I read about to add a xml file (jboss-deployment-structure.xml) to the war archive, i integrate one xml, like this:


      <?xml version="1.0" encoding="UTF-8"?>
      <jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.2">
            <module name="org.apache.xerces" />
              <module name="sun.jdk" >
                <path name="com/sun/org/apache/xerces/internal/jaxp/datatype"/>


      But the result is the same, any ideas?

        • 1. Re: Differences between Jboss EAP6 and Weblogic 11 XML implementation responses
          n3k0 Newbie

          I resolve my issue in this form:

          I change the default xerces implementation, in this path:




          I add two files: jaxp-api-1.4.5.jar and jaxp-ri-1.4.5.

          And in the module.xml i made a change for the jar declared as a resource root, like this:


          <module xmlns="urn:jboss:module:1.1" name="org.apache.xerces">
                  <!--<resource-root path="xercesImpl-2.9.1-redhat-4.jar"/> -->
                  <resource-root path="jaxp-ri-1.4.5.jar"/>
                  <module name="javax.api"/>


          Now, my xml comes with the desired XMLGregorianCalendar implementation. Cheers.