1 Reply Latest reply on Dec 26, 2011 9:17 AM by guinotphil

    Platform Default Factory Class for Jaxb Context Factory

    guinotphil Apprentice

      Hi,

       

      I'm currently having some issues with the creation of the Jaxb Context Factory...

       

      I notice that in jboss-jaxb-api_2.2_spec-1.0.2.Final.jar, in ContextFinder, we have

      PLATFORM_DEFAULT_FACTORY_CLASS = "com.sun.xml.internal.bind.v2.ContextFactory"

       

      However, in the module definition file, modules/javax/xml/bin/api/main/module.xml, we have:

       

      <module name="javax.activation.api" export="true"/>

      <module name="javax.xml.stream.api"/>

      <module name="com.sun.xml.bind" services="import"/>

      <module name="javax.api"/>

       

       

      So, I wonder, if the PLATFORM_DEFAULT_FACTORY_CLASS should be com.sun.xml.bind.v2.ContextFactory instead as it was in JBoss AS 4's jaxb-api.jar ?

       

      The other solution would be for me to define the system properties to override the factory class, but the module would need this additional dependency anyway for those who didn't overrided the property:

       

      <module name="system" export="true">

          <exports>

              <include-set>

                  <path name="com/sun/xml/internal"/>

              </include-set>

          </exports>

      </module>

       

       

       

      What do you think ?

       

      Thank you...