Uploaded image for project: 'Jackrabbit Content Repository'
  1. Jackrabbit Content Repository
  2. JCR-2893

Conflicts between commons-collections-3.2 from JBOSS AS 6 and commons-collections-3.1 from Jackrabbit-JCA

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 2.2.2, 2.2.4
    • None
    • config, jackrabbit-jca
    • Linux Ubuntu, JBOSS AS 6 Final

    Description

      When I try to deploy Jackrabbit-JCA on JBOSS AS 6 it fails with a strange error:
      18:30:10,029 WARN [ClassLoaderManager] Unexpected error during load of:org.apache.commons.collections.DoubleOrderedMap$2$1: java.lang.IllegalAccessError: class org.apache.commons.collections.DoubleOrderedMap$2$1 cannot access its superclass org.apache.commons.collections.DoubleOrderedMap$DoubleOrderedMapIterator

      This problem is probably related do class loading on JBOSS AS 6. JBOSS AS 6 has a commons-collections version 3.2 on app libs.
      So, it is prefered instead of commons-collections version 3.1 existing inside the jackrabbit-jca.rar.

      The solution is related to include in the rar the file
      jboss-classloading.xml instructing JBoss to not load commons-collections 3.2 for the adapter.
      Another solution would be update commons-collections to version 3.2

      Attachments

        Activity

          People

            Unassigned Unassigned
            orair Gustavo Orair
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:

              Time Tracking

                Estimated:
                Original Estimate - 2h
                2h
                Remaining:
                Remaining Estimate - 2h
                2h
                Logged:
                Time Spent - Not Specified
                Not Specified