Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-15639

pluginVersion 2 plugins (OSGi) fail to load due to unresolved dependencies in integration test

    XMLWordPrintable

Details

    • Bug
    • Resolution: Answered
    • Medium
    • None
    • 2.10, 2.10.1, 2.10.2
    • None
    • Ubuntu Linux 8.04/8.10, x32/x64, Java 5/6

    Description

      When starting the integration test for my plugin (Newcode macro) using the atlassian PDK , the plugin fails to load due to unresolved dependencies in the OSGi environment. However, when using pluginVersion="1" (or no plugin version, so no OSGi), the exact same error messages show up in the log file, so the problems does not seem to be in my plugin, but in the confluence environment.

      Stacktrace in output.log during integration testing:

      2009-05-04 22:40:28,348 ERROR [FelixDispatchQueue] [osgi.container.felix.FelixOsgiContainerManager] frameworkEvent Framework error in bundle org.springframework.bundle.osgi.extender
      org.osgi.framework.BundleException: Unresolved constraint in bundle 2: package; (&(package=org.apache.log4j)(version>=1.2.15)(!(version>=2.0.0)))
      at org.apache.felix.framework.Felix._resolveBundle(Felix.java:1725)
      at org.apache.felix.framework.Felix._startBundle(Felix.java:1588)
      at org.apache.felix.framework.Felix.startBundle(Felix.java:1541)
      at org.apache.felix.framework.Felix.setFrameworkStartLevel(Felix.java:1135)
      at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:267)
      at java.lang.Thread.run(Thread.java:619)

      Originally reported @ http://confluence.atlassian.com/display/DOC/Converting+a+Plugin+to+Plugin+Framework+2?focusedCommentId=188514384#comment-188514384

      This bug can easily be reproduced using the Newcode macro. Version 1.9.0 is probably the best to test it with, as this is the smallest version, without a lot of extra features.

      Attachments

        1. func-test-2.1.4-20090520.080140-57.pom
          10 kB
        2. output.log
          629 kB
        3. output-test-lib-2.1.4.log
          21 kB
        4. output-test-lib-2.1.5-SNAPSHOT.log
          11 kB

        Activity

          People

            akazatchkov Anatoli
            0f3f03f5c1d9 Jeroen Benckhuijsen
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: