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.