Hi

I've been trying to get pax-runner to install some of my bundles over OBR in 
felix. I pass it a file with a list of bundles, some of them defined in maven 
(external ones) and some in obr. The file looks like: 

# run-level 2
mvn:org.apache.felix/org.apache.felix.webconsole/3....@2
...

# run-level 4
obr:edu.gemini.jms-api/1....@4

And I start it with pax-runner including as args 
--obrRepository=file://.../repository.xml

Note that I can do this manually in felix setting the repository and installing 
manually but I want pax-runner to do it so I can deliver a ready-made 
application

However I get the following exception if doing it with pax-runner. It seems the 
hardcoded obr repository is alway used instead of the supplied one

Any ideas?

Regards
Carlos

-> Discover resources for filter 
[(&(symbolicname=edu.gemini.jms-api)(version=1.2.0))]
WARNING: RepositoryAdminImpl: Exception creating repository 
http://bundles.osgi.org/obr/browse?_xml=1&cmd=repository. Repository is skipped.
java.io.FileNotFoundException: 
http://www.osgi.org/obr/browse?_xml=1&cmd=repository
        at 
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1439)
        at 
org.apache.felix.bundlerepository.RepositoryImpl.parseRepositoryFile(RepositoryImpl.java:220)
        at 
org.apache.felix.bundlerepository.RepositoryImpl.access$000(RepositoryImpl.java:44)
        at 
org.apache.felix.bundlerepository.RepositoryImpl$1.run(RepositoryImpl.java:75)
        at java.security.AccessController.doPrivileged(Native Method)
        at 
org.apache.felix.bundlerepository.RepositoryImpl.<init>(RepositoryImpl.java:71)
        at 
org.apache.felix.bundlerepository.RepositoryImpl.<init>(RepositoryImpl.java:60)
        at 
org.apache.felix.bundlerepository.RepositoryAdminImpl.initialize(RepositoryAdminImpl.java:194)
        at 
org.apache.felix.bundlerepository.RepositoryAdminImpl.discoverResources(RepositoryAdminImpl.java:114)
        at 
org.ops4j.pax.url.obr.internal.Connection.getInputStream(Connection.java:100)
        at java.net.URL.openStream(URL.java:1010)
        at 
org.ops4j.pax.runner.platform.internal.StreamUtils.streamCopy(StreamUtils.java:112)
        at 
org.ops4j.pax.runner.platform.internal.PlatformImpl.download(PlatformImpl.java:640)
        at 
org.ops4j.pax.runner.platform.internal.PlatformImpl.downloadBundles(PlatformImpl.java:416)
        at 
org.ops4j.pax.runner.platform.internal.PlatformImpl.start(PlatformImpl.java:186)
        at org.ops4j.pax.runner.Run.startPlatform(Run.java:678)
        at org.ops4j.pax.runner.Run.start(Run.java:221)
        at org.ops4j.pax.runner.Run.main(Run.java:148)
        at org.ops4j.pax.runner.Run.main(Run.java:121)


_______________________________________________
general mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/general

Reply via email to