Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-6132

Mark Spring dependencies are provided

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Done
    • Icon: Major Major
    • 9.0.0.Final
    • None
    • Spring Integration
    • None

      After splitting Spring into 2 modules (embedded and remote) and introducing Uber jars, it is very easy to hit an error like this:

      java.lang.NoSuchMethodError: org.infinispan.commons.logging.BasicLogFactory.getLog(Ljava/lang/Class;)Linfinispan/org/jboss/logging/BasicLogger;
      

      It turns out that Wildfly ships its own JBoss Modules [1] and it conflicts the relocated one from Uber Jars.

      The easiest fix for it is to make all Spring module dependencies provided.

      [1] https://docs.jboss.org/author/display/AS7/Implicit+module+dependencies+for+deployments

            slaskawi@redhat.com Sebastian Łaskawiec (Inactive)
            slaskawi@redhat.com Sebastian Łaskawiec (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: