felix-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Benson Margulies <bimargul...@gmail.com>
Subject Why does Felix HTTP export jetty?
Date Thu, 17 Nov 2016 15:08:31 GMT
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-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org


Mime
View raw message