[infinispan-dev] Spring module - change dependencies to Uber Jars

Sebastian Laskawiec slaskawi at redhat.com
Mon Feb 1 06:31:33 EST 2016


Hey!

I'm currently trying to solve a tricky class loading issue connected to
Spring, CDI and Uber Jars. Here's the scenario:

   - Remote Uber Jar contains CDI module
   - Our Hot Rod client use newer version of JBoss Logging which is present
   in Wildfly/EAP modules
   - However EAP and Wildfly will load (and make available for deployment)
   their own version of JBoss Logging [1]
      - The easiest fix for this is to relocate JBoss Logging package in
      Uber Jar
   - Spring module requires some classes from Infinispan Common and they in
   turn need BasicLogger from JBoss Logging
      - If we relocate JBoss Logging and will try to use Uber Jar with
      Spring - we will end up with classloading issue [2]

So it seems the best approach is to make Spring depend on Uber Jars instead
of "small ones". Of course, users who use small jars will probably be
affected by this change (they would have to either accept using Uber Jars
or exclude them in their poms and add dependencies manually).

Is anyone against this solution? JIRA tracking ticket: [3].

Thanks
Sebastian

[1] Scenario with Weld enabled WAR
https://docs.jboss.org/author/display/AS7/Implicit+module+dependencies+for+deployments
[2] https://bugzilla.redhat.com/show_bug.cgi?id=1266831#c7
[3] https://issues.jboss.org/browse/ISPN-6132
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/infinispan-dev/attachments/20160201/63d48f73/attachment.html 


More information about the infinispan-dev mailing list