Hello, I've an application that I've been successfully running under Karaf 3.0.3 for quite some time. I recently tried to migrate to Karaf 4.0.4 but have run into a bit of an issue.
Specifically, I have a number of non-OSGi JARs that are placed in the deploy directory. In the past, these JARs would all get wrapped on the fly and the container would then fully start with all of the bundles in 'Active' state. However, with 4.0.4, when I run the container for the first time, I often get a bunch of BundleExceptions complaining about missing requirements and multiple bundles stay in the 'Installed' state. It seems like it maybe wraps one bundle and then tries to start it even though its dependencies may not have gone through the wrapping process yet. If I then shutdown and restart the container, everything appears to start correctly. So, it *seems* that the wrap deployer is ultimately doing its thing, but it doesn't try to restart all the wrapped bundles after the wrapping process is complete (or something to that effect). Again, this has worked perfectly in Karaf 3.0.3 with this same set of JARs. An example stacktrace is shown below. I actually get several of these for various JARs in the deploy directory. I've seen this behavior with both Karaf 4.0.2 and 4.0.4; I've not tried any of the other Karaf 4.0.x releases. Also, I'm currently using the equinox runtime that is available with Karaf 4.0.4, but I see similar behavior with felix as well. Thanks in advance for any assistance! Please let me know if I can provide any additional context. -- snip -- 2016-01-27 17:31:26,030 | WARN | i-runtime/deploy | fileinstall | 8 - org.apache.felix.fileinstall - 3.5.0 | Error while starting bundle: file:/C:/karaf/osgi-runtime/deploy/jackson-datatype-joda-2.6.2.jar org.osgi.framework.BundleException: Could not resolve module: com.fasterxml.jackson.datatype.jackson-datatype-joda [19] Unresolved requirement: Import-Package: com.fasterxml.jackson.annotation; version="[2.6.0,3.0.0)" at org.eclipse.osgi.container.Module.start(Module.java:434)[org.eclipse.osgi-3.10.2.v20150203-1939.jar:] at org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:393)[org.eclipse.osgi-3.10.2.v20150203-1939.jar:] at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundle(DirectoryWatcher.java:1245)[8:org.apache.felix.fileinstall:3.5.0] at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundles(DirectoryWatcher.java:1217)[8:org.apache.felix.fileinstall:3.5.0] at org.apache.felix.fileinstall.internal.DirectoryWatcher.doProcess(DirectoryWatcher.java:509)[8:org.apache.felix.fileinstall:3.5.0] at org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:358)[8:org.apache.felix.fileinstall:3.5.0] at org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:310)[8:org.apache.felix.fileinstall:3.5.0] -- View this message in context: http://karaf.922171.n3.nabble.com/Karaf-4-0-4-Bundle-exception-Unresolved-requirement-on-first-startup-tp4045034.html Sent from the Karaf - User mailing list archive at Nabble.com.