-
1. Re: Problem installing bundles using streams
thomas.diesler Sep 4, 2012 6:13 AM (in response to gnodet)Hi Guillaume, good to see you here.
What are you actually passing in to BundleContext.installBundle(String, InputStream)? Perhaps you can explain the sequence of actions that get you there. I assume you have some provisioning bundle that is trying to install other bundles. I'm also happy to look at some karaf branch if you have one.
-
2. Re: Problem installing bundles using streams
gnodet Sep 4, 2012 7:44 AM (in response to thomas.diesler)Sure, replicating the problem is quite easy.
Download a karaf distribution such as:
http://repo1.maven.org/maven2/org/apache/karaf/apache-karaf/2.2.9/apache-karaf-2.2.9.tar.gz
I've been using the 2.3.x branch myself, but the above distribution will exhibit the same problems.
Though testing with 2.2.9 for this very message, I found i needed a better fix for JBOSGI-599, see
https://github.com/gnodet/jbosgi-framework/commit/d2705cbee12ae3816bf423119c33e45ab3e28539
You can find the maintenance branch at
https://github.com/apache/karaf/tree/karaf-2.2.x
The first exception occurs in the following code:
The actual call looks like:
context.installBundle("mvn:org.ops4j.pax.url/pax-url-mvn/1.3.5", inputStream)
The location is a maven url handler but should not really be used by the framework.
I'm not really sure what the problem is, because I don't really understand if the use of the vfs style urls is expected or not.
Anyway, let me know if you need anything.