0 Replies Latest reply on Nov 25, 2013 9:46 PM by Stephan Schuster

    How to configure a module that uses its own jacorb version

    Stephan Schuster Newbie



      I would like to install my own JPA provider implementation as module. Unfortunately it uses some older jacorb version, which seems to conflict with the version provided by the org.jacorb module in jboss (7.1.1Final). I have no explicit dependency and wanted just my jacorb.jar to be loaded as resource. But apparently, jboss loads the org.jacorb module. Is there a way to prevent this?


      My module.xml:


      <module xmlns="urn:jboss:module:1.1" name="de.ems.persistence">


              <resource-root path="EMSPersistenceManager.jar"/>

              <resource-root path="infobus.jar"/>

              <resource-root path="HQFramework.jar"/>

              <resource-root path="derby-"/>

              <resource-root path="logkit-1.2.jar"/>

              <resource-root path="jacorb.jar"/>

              <resource-root path="avalon-framework-4.1.5.jar"/>




             <module name="javax.api"/>

              <module name="javax.persistence.api"/>

              <module name="javax.transaction.api"/>




      When the module is requested, I get:

      Caused by: java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory

          at org.jacorb.config.JacORBConfiguration.getLogger(JacORBConfiguration.java:762) [jacorb.jar:3.1  (Build August 19 2012 14:54:20)]

          at org.jacorb.config.JacORBConfiguration.<init>(JacORBConfiguration.java:208) [jacorb.jar:3.1  (Build August 19 2012 14:54:20)]

          at org.jacorb.config.JacORBConfiguration.getConfiguration(JacORBConfiguration.java:185) [jacorb.jar:3.1  (Build August 19 2012 14:54:20)]

          at org.jacorb.orb.ORB.set_parameters(ORB.java:1589) [jacorb.jar:3.1  (Build August 19 2012 14:54:20)]

          at org.omg.CORBA.ORB.init(ORB.java:251) [jacorb-2.3.1.jbossorg-1.jar:]


      When I add org.jacorb, the logger Problem resolves, but then other exceptions occur. The issue is simply that [jacorb-2.3.1.jbossorg-1.jar] is getting loaded although I have it in no depedency.


      Thanks for any suggestions.