java - How can I use Apache CXF 3.X and WSS4J 2.X as of my ear project and not CXF and WSS4J (older) that is installed in the modules of JBoss 6.3.0 EAP? -


in our java application have use apache cxf 3.0.0 , wss4j 2.1.1 libraries. avoid classloader problems: how can use apache cxf 3.x , wss4j 2.x of ear project , not cxf , wss4j (older) installed in modules of jboss 6.3.0 eap?

since jboss class loading modular, can create jboss-deployment-structure.xml , exclude cxf , wss4j related modules in ear file. please see wiki page reference. can find individual module names under modules folder module.xml file.

for example exclude cxf-server module:

<jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.2">       <deployment>         <exclusions>           <module name="org.jboss.ws.cxf.jbossws-cxf-server"/>         </exclusions>       </deployment> </jboss-deployment-structure> 

you need make sure pom.xml pulling in desired artifacts cxf , wss4j versions , not set provided scope. alternatively can create own custom jboss module folder , add libraries there if shared more 1 application (helps keep ear , war files smaller , manage dependencies across organization centrally in container). in case can set provided scope.

please keep in mind packaging own libraries break support since not part of container provided implementation bits.


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -

How to provide Authorization & Authentication using Asp.net, C#? -