Hello guys,
for a couple of days i try to configure my jboss-deployment-structure.xml
to use another version of jaxb-imple/jaxb-api in my webservice packaged in an ear/lib.
My main aim is not to change base installation of jboss eap 6.4.0.
I want to solve the problem:
https://github.com/javaee/jaxb-v2/issues/890 .
For example for cxf it works but do not work for jaxb.
<jboss-deployment-structure>
<deployment>
<dependencies>
</dependencies>
<exclusions>
<module name="org.apache.cxf"/>
<module name="org.apache.cxf.impl"/>
<module name="javax.xml.bind.api"/>
<module name="com.sun.xml.bind"/>
</exclusions>
</deployment>
<sub-deployment name="my-jboss-webservice.war">
<dependencies>
</dependencies>
</sub-deployment>
</jboss-deployment-structure>
I tried also to install jaxb-impl as another module version and added to JBOSS_MODULEPATH
Another configuration of jboss-deployment-structure.xml do not work also:
<jboss-deployment-structure>
<deployment>
<dependencies>
</dependencies>
<exclusions>
<module name="org.apache.cxf"/>
<module name="org.apache.cxf.impl"/>
<module name="javax.xml.bind.api"/>
<module name="com.sun.xml.bind"/>
</exclusions>
</deployment>
<sub-deployment name="my-jboss-webservice.war">
<dependencies>
<module name="javax.xml.bind.api" slot="jaxb-2.2.6"/>
<module name="com.sun.xml.bind" slot="jaxb-2.2.6"/>
</dependencies>
</sub-deployment>
</jboss-deployment-structure>
Excluding whole webservice subsystem and adding another version was also not succesfull:
<jboss-deployment-structure>
<deployment>
<dependencies>
</dependencies>
<exclude-subsystems>
<subsystem name="webservices"/>
</exclude-subsystems>
<exclusions>
<module name="org.apache.cxf"/>
<module name="org.apache.cxf.impl"/>
<module name="javax.xml.bind.api"/>
<module name="com.sun.xml.bind"/>
</exclusions>
</deployment>
<sub-deployment name="my-jboss-webservice.war">
<dependencies>
<module name="org.jboss.as.webservices" slot="jaxb-2.2.6"/>
</dependencies>
</sub-deployment>
</jboss-deployment-structure>
I tried more configurations but it works only if i directly change the jars(jboss-eap-6.4\modules\system\layers\base\com\sun\xml\bind\main) in the jboss installation.
Can somebody help me with this problem?
Regards
Gary