Hi IIRC originally it was indeed a private dependency of the Http Service. Over time people wanted to use extended features of Jetty besides just the Http Service implementation. Thus the Jetty pieces have been exported. Call it evolutionary ;-)
It might indeed be worth a discussion to just build the Jetty based Http Service in such a way as to just import the Jetty exports to expose the Http Service … This would be something for the dev list, though, I suspect. Regards Felix > Am 17.11.2016 um 07:08 schrieb Benson Margulies <bimargul...@gmail.com>: > > It seems to me that Felix HTTP should either depend on the usual Jetty > osgi bundles, or leave Jetty private (or do the usual 'import your > exports to allow overriding?). Instead, it exports jetty packages. I'm > failing to combine plain jetty and felix http in the same deployment, > due to an exception I'll paste below. > > This results from using the 'combined' bundle. If I use the > individuals, I don't get this error, but I don't get a working > environment. > > [ERROR] 2016-11-17 07:01:14.689 [FelixDispatchQueue] > com.basistech.ws.osgilauncher.RosapiOsgiLauncher - Framework ERROR > event org.osgi.framework.FrameworkEvent[source=org.apache.felix.http.bundle > [62]] > org.osgi.framework.BundleException: Activator start error in bundle > org.apache.felix.http.bundle [62]. > at org.apache.felix.framework.Felix.activateBundle(Felix.java:2276) > ~[org.apache.felix.framework-5.6.1.jar:?] > at org.apache.felix.framework.Felix.startBundle(Felix.java:2144) > ~[org.apache.felix.framework-5.6.1.jar:?] > at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1371) > ~[org.apache.felix.framework-5.6.1.jar:?] > at > org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:308) > ~[org.apache.felix.framework-5.6.1.jar:?] > at java.lang.Thread.run(Thread.java:745) [?:1.8.0_60] > Caused by: java.lang.LinkageError: loader constraint violation: when > resolving method > "org.eclipse.jetty.server.Server.addLifeCycleListener(Lorg/eclipse/jetty/util/component/LifeCycle$Listener;)V" > the class loader (instance of > org/apache/felix/framework/BundleWiringImpl$BundleClassLoaderJava5) of > the current class, org/apache/felix/http/jetty/internal/JettyService, > and the class loader (instance of > org/apache/felix/framework/BundleWiringImpl$BundleClassLoaderJava5) > for the method's defining class, > org/eclipse/jetty/util/component/AbstractLifeCycle, have different > Class objects for the type > org/eclipse/jetty/util/component/LifeCycle$Listener used in the > signature > at > org.apache.felix.http.jetty.internal.JettyService.initializeJetty(JettyService.java:240) > ~[?:?] > at > org.apache.felix.http.jetty.internal.JettyService.startJetty(JettyService.java:199) > ~[?:?] > at > org.apache.felix.http.jetty.internal.JettyService.start(JettyService.java:132) > ~[?:?] > at > org.apache.felix.http.jetty.internal.JettyActivator.doStart(JettyActivator.java:29) > ~[?:?] > at > org.apache.felix.http.base.internal.AbstractActivator.start(AbstractActivator.java:41) > ~[?:?] > at > org.apache.felix.http.bundle.internal.CombinedActivator.start(CombinedActivator.java:56) > ~[?:?] > at > org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:697) > ~[org.apache.felix.framework-5.6.1.jar:?] > at org.apache.felix.framework.Felix.activateBundle(Felix.java:2226) > ~[org.apache.felix.framework-5.6.1.jar:?] > ... 4 more > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@felix.apache.org > For additional commands, e-mail: users-h...@felix.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@felix.apache.org For additional commands, e-mail: users-h...@felix.apache.org