Here's another series of errors that occurs inconsistently at startup with
Karaf 4.0.5

karaf@root>ERROR: Bundle org.eclipse.jetty.plus [157] Error starting
mvn:org.eclipse.jetty/jetty-plus/9.2.15.v20160210
(org.osgi.framework.BundleException: Unable to resolve
org.eclipse.jetty.plus [157](R 157.0): missing requirement
[org.eclipse.jetty.plus [157](R 157.0)] osgi.wiring.package;
(&(osgi.wiring.package=javax.transaction)(version>=1.1.0)(!(version>=1.3.0)))
Unresolved requirements: [[org.eclipse.jetty.plus [157](R 157.0)]
osgi.wiring.package;
(&(osgi.wiring.package=javax.transaction)(version>=1.1.0)(!(version>=1.3.0)))])
org.osgi.framework.BundleException: Unable to resolve org.eclipse.jetty.plus
[157](R 157.0): missing requirement [org.eclipse.jetty.plus [157](R 157.0)]
osgi.wiring.package;
(&(osgi.wiring.package=javax.transaction)(version>=1.1.0)(!(version>=1.3.0)))
Unresolved requirements: [[org.eclipse.jetty.plus [157](R 157.0)]
osgi.wiring.package;
(&(osgi.wiring.package=javax.transaction)(version>=1.1.0)(!(version>=1.3.0)))]
        at 
org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4111)
        at org.apache.felix.framework.Felix.startBundle(Felix.java:2117)
        at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1371)
        at
org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:308)
        at java.lang.Thread.run(Thread.java:745)
ERROR: Bundle org.apache.geronimo.specs.geronimo-jta_1.1_spec [114] Unable
to remove bundle from installed map!

ERROR: Bundle org.apache.geronimo.specs.geronimo-jta_1.1_spec [114] Unable
to remove mvn:org.apache.geronimo.specs/geronimo-jta_1.1_spec/1.1.1
(java.lang.NullPointerException)
java.lang.NullPointerException
        at
org.apache.felix.framework.BundleRevisionImpl.close(BundleRevisionImpl.java:668)
        at
org.apache.felix.framework.BundleImpl.closeRevisions(BundleImpl.java:175)
        at
org.apache.felix.framework.BundleImpl.closeAndDelete(BundleImpl.java:158)
        at
org.apache.felix.framework.Felix$SystemBundleActivator.stop(Felix.java:4909)
        at
org.apache.felix.framework.util.SecureAction.stopActivator(SecureAction.java:719)
        at org.apache.felix.framework.Felix.stopBundle(Felix.java:2610)
        at org.apache.felix.framework.Felix$2.run(Felix.java:1032)
        at java.lang.Thread.run(Thread.java:745)
The specified feature: 'example-prerequisites' version '2.0.1.SNAPSHOT' is
already installed


One interesting side effect of this error is that the features core bundle
is left in a resolved state:

karaf@root>la | grep -i feature
 11 | Resolved |  15 | 4.0.5              | Apache Karaf :: Features :: Core
121 | Active   |  26 | 4.0.5              | Apache Karaf :: Deployer ::
Features
125 | Active   |  30 | 4.0.5              | Apache Karaf :: Features ::
Command

If I manually start the the bundle, things seem to proceed OK and finish
loading just fine.
1. Is there a way to effectively troubleshoot this kind of nondeterministic
behavior?
2. Is there a way for me to explicitly state exactly in what order I want
the container to load prerequisite features that produces consistent
behavior?

Thanks



--
View this message in context: 
http://karaf.922171.n3.nabble.com/Inconsisent-behavior-during-Karaf-4-0-5-startup-tp4047933.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Reply via email to