Hi
We have a requirement where we want the bundles to be provisioned through
obr repository. so i want the provision of bundle to happen through the OBR's
index file repository.xml. so is there way to specify it in Pax Exam 2.0 ?
I tried the following and there was an exception that it was expecting a jar
and not a file. please let me know if there
is any other to do this provisioning.
provision("file:\\D:\\eBay\\OSGI\\RIDE\\28May\\repository.xml")
java.lang.RuntimeException: org.ops4j.pax.runner.platform.PlatformException:
[file:/D:/eBay/OSGI/RIDE/28May/repository.xml] is not a valid bundle
at org.ops4j.pax.runner.Run.startPlatform(Run.java:668)
at org.ops4j.pax.runner.Run.start(Run.java:207)
at org.ops4j.pax.runner.Run.start(Run.java:163)
at
org.ops4j.pax.exam.container.def.internal.PaxRunnerTestContainer.start(PaxRunnerTestContainer.java:120)
at
org.ops4j.pax.exam.spi.reactors.EagerSingleStagedReactor.<init>(EagerSingleStagedReactor.java:55)
at
org.ops4j.pax.exam.spi.reactors.EagerSingleStagedReactorFactory.create(EagerSingleStagedReactorFactory.java:32)
at
org.ops4j.pax.exam.spi.driversupport.DefaultExamReactor.stage(DefaultExamReactor.java:81)
at
org.ops4j.pax.exam.junit.JUnit4TestRunner.prepareReactor(JUnit4TestRunner.java:152)
at org.ops4j.pax.exam.junit.JUnit4TestRunner.<init>(JUnit4TestRunner.java:77)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at
org.junit.internal.builders.AnnotatedBuilder.buildRunner(AnnotatedBuilder.java:31)
at
org.junit.internal.builders.AnnotatedBuilder.runnerForClass(AnnotatedBuilder.java:24)
at
org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:57)
at
org.junit.internal.builders.AllDefaultPossibilitiesBuilder.runnerForClass(AllDefaultPossibilitiesBuilder.java:29)
at
org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:57)
at org.junit.internal.requests.ClassRequest.getRunner(ClassRequest.java:24)
at
org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.<init>(JUnit4TestReference.java:32)
at
org.eclipse.jdt.internal.junit4.runner.JUnit4TestClassReference.<init>(JUnit4TestClassReference.java:25)
at
org.eclipse.jdt.internal.junit4.runner.JUnit4TestLoader.createTest(JUnit4TestLoader.java:41)
at
org.eclipse.jdt.internal.junit4.runner.JUnit4TestLoader.loadTests(JUnit4TestLoader.java:31)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:452)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
Caused by: org.ops4j.pax.runner.platform.PlatformException:
[file:/D:/eBay/OSGI/RIDE/28May/repository.xml] is not a valid bundle
at
org.ops4j.pax.runner.platform.internal.PlatformImpl.validateBundle(PlatformImpl.java:723)
at
org.ops4j.pax.runner.platform.internal.PlatformImpl.download(PlatformImpl.java:599)
at
org.ops4j.pax.runner.platform.internal.PlatformImpl.downloadBundles(PlatformImpl.java:353)
at
org.ops4j.pax.runner.platform.internal.PlatformImpl.start(PlatformImpl.java:161)
at org.ops4j.pax.runner.Run.startPlatform(Run.java:664)
... 26 more
Caused by: java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(ZipFile.java:127)
at java.util.jar.JarFile.<init>(JarFile.java:135)
at java.util.jar.JarFile.<init>(JarFile.java:114)
at
org.ops4j.pax.runner.platform.internal.PlatformImpl.validateBundle(PlatformImpl.java:712)
... 30 more
Regards
Kamal
_______________________________________________
general mailing list
general@lists.ops4j.org
http://lists.ops4j.org/mailman/listinfo/general