org.osgi.framework.BundleException: Unresolved constraint in bundle 2: package; (&(package=org.apache.log4j)(version>=1.2.15)(!(version>=2.0.0)))

Atlassian JIRA | Jeroen Benckhuijsen | 8 years ago
  1. 0

    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.

    Atlassian JIRA | 8 years ago | Jeroen Benckhuijsen
    org.osgi.framework.BundleException: Unresolved constraint in bundle 2: package; (&(package=org.apache.log4j)(version>=1.2.15)(!(version>=2.0.0)))
  2. 0

    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.

    Atlassian JIRA | 8 years ago | Jeroen Benckhuijsen
    org.osgi.framework.BundleException: Unresolved constraint in bundle 2: package; (&(package=org.apache.log4j)(version>=1.2.15)(!(version>=2.0.0)))
  3. 0

    Resolve dependencies error in Sling OSGi container

    Stack Overflow | 2 years ago | Barcelona
    org.osgi.framework.BundleException: Unresolved constraint in bundle net.jasonday.examples.sling.spring.mvc [79]: Unable to resolve 79.0: missing requirement [79 .0] package; (&(package=javax.annotation)(version>=1.0.0)(!(version>=2.0.0)))
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    camel-example-cxf Not Deployed in ServiceMix 4.4.2

    Stack Overflow | 4 years ago | abhi
    org.osgi.framework.BundleException: Unresolved constraint in bundle org.apache.camel.camel-example-cxf [43]: Unable to resolve 43.0: missing requirement [43.0] package; (&(package=org.apache.activemq.broker)(version>=5.7.0)(!(version>=6.0.0)))
  6. 0

    Custom Spring roo addon fail

    Stack Overflow | 2 years ago | user2378554
    org.osgi.framework.BundleException: Unresolved constraint in bundle com.xxx.xxx.addons.extjs [7]: Unable to resolve 7.0: missing requirement [7.0] pack age; (&(package=org.apache.commons.io)(version>=1.4.0)(!(version>=2.0.0)))

    3 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. 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()
    2. Apache Felix Framework
      StartLevelImpl.run
      1. org.apache.felix.framework.Felix._resolveBundle(Felix.java:1725)
      2. org.apache.felix.framework.Felix._startBundle(Felix.java:1588)
      3. org.apache.felix.framework.Felix.startBundle(Felix.java:1541)
      4. org.apache.felix.framework.Felix.setFrameworkStartLevel(Felix.java:1135)
      5. org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:267)
      5 frames
    3. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:619)
      1 frame