We're updating the issue view to help you get more done. 

Jetty bundle must import package org.ops4j.pax.web.service.whiteboard

Description

It seems that pax-web-jetty-bundle uses the package org.ops4j.pax.web.service.whiteboard but does not import it (see imports at https://github.com/ops4j/org.ops4j.pax.web/blob/master/pax-web-jetty-bundle/pom.xml). I got a stacktrace of the form below:

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 ERROR: Bundle org.ops4j.pax.web.pax-web-jetty-bundle [22] EventDispatcher: Error during dispatch. (java.lang.NoClassDefFoundError: org/ops4j/pax/web/service/whiteboard/WhiteboardElement) java.lang.NoClassDefFoundError: org/ops4j/pax/web/service/whiteboard/WhiteboardElement at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Class.privateGetDeclaredMethods(Class.java:2701) at java.lang.Class.getDeclaredMethods(Class.java:1975) at org.apache.felix.scr.impl.inject.methods.BindMethod.getServiceObjectAssignableMethod(BindMethod.java:469) at org.apache.felix.scr.impl.inject.methods.BindMethod.doFindMethod(BindMethod.java:180) at org.apache.felix.scr.impl.inject.methods.BaseMethod.findMethod(BaseMethod.java:173) at org.apache.felix.scr.impl.inject.methods.BaseMethod.access$400(BaseMethod.java:41) at org.apache.felix.scr.impl.inject.methods.BaseMethod$NotResolved.resolve(BaseMethod.java:602) at org.apache.felix.scr.impl.inject.methods.BaseMethod$NotResolved.methodExists(BaseMethod.java:626) at org.apache.felix.scr.impl.inject.methods.BaseMethod.methodExists(BaseMethod.java:528) at org.apache.felix.scr.impl.inject.methods.BindMethod.getServiceObject(BindMethod.java:659) at org.apache.felix.scr.impl.manager.DependencyManager.getServiceObject(DependencyManager.java:2304) at org.apache.felix.scr.impl.manager.DependencyManager.doInvokeBindMethod(DependencyManager.java:1801) at org.apache.felix.scr.impl.manager.DependencyManager.invokeBindMethod(DependencyManager.java:1784) at org.apache.felix.scr.impl.manager.SingleComponentManager.invokeBindMethod(SingleComponentManager.java:409) at org.apache.felix.scr.impl.manager.DependencyManager$MultipleDynamicCustomizer.addedService(DependencyManager.java:333) at org.apache.felix.scr.impl.manager.DependencyManager$MultipleDynamicCustomizer.addedService(DependencyManager.java:302) at org.apache.felix.scr.impl.manager.ServiceTracker$Tracked.customizerAdded(ServiceTracker.java:1216) at org.apache.felix.scr.impl.manager.ServiceTracker$Tracked.customizerAdded(ServiceTracker.java:1137) at org.apache.felix.scr.impl.manager.ServiceTracker$AbstractTracked.trackAdding(ServiceTracker.java:944) at org.apache.felix.scr.impl.manager.ServiceTracker$AbstractTracked.track(ServiceTracker.java:880) at org.apache.felix.scr.impl.manager.ServiceTracker$Tracked.serviceChanged(ServiceTracker.java:1168) at org.apache.felix.scr.impl.BundleComponentActivator$ListenerInfo.serviceChanged(BundleComponentActivator.java:125) at org.apache.felix.framework.EventDispatcher.invokeServiceListenerCallback(EventDispatcher.java:990) at org.apache.felix.framework.EventDispatcher.fireEventImmediately(EventDispatcher.java:838) at org.apache.felix.framework.EventDispatcher.fireServiceEvent(EventDispatcher.java:545) at org.apache.felix.framework.Felix.fireServiceEvent(Felix.java:4827) at org.apache.felix.framework.Felix.registerService(Felix.java:3800) at org.apache.felix.framework.BundleContextImpl.registerService(BundleContextImpl.java:328) at org.apache.felix.framework.BundleContextImpl.registerService(BundleContextImpl.java:335) at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.registerService(HttpServiceContext.java:141) at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.startContext(HttpServiceContext.java:439) at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:785) at org.eclipse.jetty.servlet.ServletContextHandler.doStart(ServletContextHandler.java:287) at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.doStart(HttpServiceContext.java:267) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68) at org.ops4j.pax.web.service.jetty.internal.JettyServerImpl$1.start(JettyServerImpl.java:329) at org.ops4j.pax.web.service.internal.HttpServiceStarted.registerServlet(HttpServiceStarted.java:252) at org.ops4j.pax.web.service.internal.HttpServiceStarted.registerServlet(HttpServiceStarted.java:223) at org.ops4j.pax.web.service.internal.HttpServiceStarted.registerServlet(HttpServiceStarted.java:207) at org.ops4j.pax.web.service.internal.HttpServiceProxy.registerServlet(HttpServiceProxy.java:69) at [truncated external components] Caused by: java.lang.ClassNotFoundException: org.ops4j.pax.web.service.whiteboard.WhiteboardElement not found by org.ops4j.pax.web.pax-web-jetty-bundle [22] at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1597) at org.apache.felix.framework.BundleWiringImpl.access$300(BundleWiringImpl.java:79) at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:1982) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ... 59 more

Environment

OSGi

Status

Assignee

Grzegorz Grzybek

Reporter

Christoph Nölle

Labels

None

Components

Fix versions

Affects versions

7.2.1

Priority

Major