Pax-Runner & Karaf

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view

Pax-Runner & Karaf


I'm trying to start karaf via maven-pax-plugin (I've one bundle that import apache-servicemix).

But when I run mvn pax:provision, mu bundles are not started and I've this error in equinox console:

!ENTRY org.eclipse.osgi 4 0 2012-04-11 15:15:30.189
!MESSAGE Startup error
java.lang.IllegalArgumentException: The System Bundle's start level can not be modified.
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.setBundleStartLevel(
        at org.eclipse.core.runtime.adaptor.EclipseStarter.installBundles(
        at org.eclipse.core.runtime.adaptor.EclipseStarter.loadBasicBundles(
        at org.eclipse.core.runtime.adaptor.EclipseStarter.startup(
        at org.eclipse.core.runtime.adaptor.EclipseStarter.main(

Any idea? I think that if I knew the default karaf system startlevel, the issue could be resolved, or if any karaf bundle exists...

Thanks in advance for your tips

Reply | Threaded
Open this post in threaded view

Re: Pax-Runner & Karaf

Check your provisioning.
I had a similar problem, because I was provisioning the equinox bundle (in the same directory has my own bundles).
I just remove the "duplicate" equinox bundel and it's works (I'm Using pax-runner thru command Line)