karaf-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From t..@quarendon.net
Subject Re: Creating a karaf feature containing a karaf shell command breaks karaf
Date Thu, 07 Sep 2017 13:08:42 GMT
So although moving 
<feature>eventadmin</feature>
out of startupFeatures makes the command work, it seems to break a bunch of other things,
so doesn't seem wise afterall. E.g, I get things like the following that only seem to happen
if I've moved that line:

Bundle org.ops4j.pax.web.pax-web-extender-whiteboard [115] Error starting mvn:org.ops4j.pax.web/pax-web-extender-whiteboard/6.0.6
(org.osgi.framework.BundleException: Activator start error in bundle org.ops4j.pax.web.pax-web-extender-whiteboard
[115].)
org.osgi.framework.BundleException: Activator start error in bundle org.ops4j.pax.web.pax-web-extender-whiteboard
[115].
	at org.apache.felix.framework.Felix.activateBundle(Felix.java:2289) [?:?]
	at org.apache.felix.framework.Felix.startBundle(Felix.java:2145) [?:?]
	at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1372) [?:?]
	at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:308)
[?:?]
	at java.lang.Thread.run(Thread.java:745) [?:?]
Caused by: java.lang.IllegalStateException: HttpService must be implementing Pax-Web WebContainer!
	at org.ops4j.pax.web.extender.whiteboard.internal.ExtendedHttpServiceRuntime.serviceChanged(ExtendedHttpServiceRuntime.java:110)
~[?:?]
	at org.ops4j.pax.web.extender.whiteboard.internal.ExtendedHttpServiceRuntime.serviceChanged(ExtendedHttpServiceRuntime.java:44)
~[?:?]
	at org.ops4j.pax.web.extender.whiteboard.internal.util.tracker.ReplaceableService.bind(ReplaceableService.java:86)
~[?:?]
	at org.ops4j.pax.web.extender.whiteboard.internal.util.tracker.ReplaceableService$Customizer.addingService(ReplaceableService.java:105)
~[?:?]
	at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:941)
~[?:?]
	at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:870)
~[?:?]
	at org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:256) ~[?:?]
	at org.osgi.util.tracker.AbstractTracked.trackInitial(AbstractTracked.java:183) ~[?:?]
	at org.osgi.util.tracker.ServiceTracker.open(ServiceTracker.java:318) ~[?:?]
	at org.osgi.util.tracker.ServiceTracker.open(ServiceTracker.java:261) ~[?:?]
	at org.ops4j.pax.web.extender.whiteboard.internal.util.tracker.ReplaceableService.start(ReplaceableService.java:72)
~[?:?]
	at org.ops4j.pax.web.extender.whiteboard.internal.ExtendedHttpServiceRuntime.start(ExtendedHttpServiceRuntime.java:153)
~[?:?]
	at org.ops4j.pax.web.extender.whiteboard.internal.Activator.start(Activator.java:65) ~[?:?]
	at org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:697) ~[?:?]
	at org.apache.felix.framework.Felix.activateBundle(Felix.java:2239) ~[?:?]
	... 4 more

Mime
View raw message