You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Freeman Yue Fang (Jira)" <ji...@apache.org> on 2020/10/22 19:35:00 UTC

[jira] [Comment Edited] (CAMEL-15734) Karaf 4.2.10 jetty incompability with Camel 3.4.4 (or 3.6.0)

    [ https://issues.apache.org/jira/browse/CAMEL-15734?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17219299#comment-17219299 ] 

Freeman Yue Fang edited comment on CAMEL-15734 at 10/22/20, 7:34 PM:
---------------------------------------------------------------------

Hi [~tapiiron];

The problem comes from that bundle org.eclipse.jetty.aggregate.jetty-all-server is used, and this is from jetty feature version 8.x, not the expected jetty 9.4.x which contains class org.eclipse.jetty.server.HttpConfiguration$Customizer(Karaf still ships jetty 8.x for backward compatibility)

Also I tested, Camel 3.6.0 and 3.4.4 can work with karaf 4.2.10 both with JDK 8 and 11 when installing camel-servlet.

I believe you installed other features which introduced jetty 8.x before you install camel-servlet, you should avoid it, only one jetty version can be used in one karaf container.

Freeman


was (Author: ffang):
Hi [~tapiiron];

The problem comes from that bundle org.eclipse.jetty.aggregate.jetty-all-server is used, and this is from jetty feature version 8.x, not the expected jetty 9.4.x which contains class org.eclipse.jetty.server.HttpConfiguration$Customizer(Karaf still ships jetty 8.x for backward compatibility)

Also I tested, Camel 3.6.0 can work with karaf 4.2.10 both with JDK 8 and 11 when installing camel-servlet.

I believe you installed other features which introduced jetty 8.x before you install camel-servlet, you should avoid it, only one jetty version can be used in one karaf container.

Freeman

> Karaf 4.2.10 jetty incompability with Camel 3.4.4 (or 3.6.0)
> ------------------------------------------------------------
>
>                 Key: CAMEL-15734
>                 URL: https://issues.apache.org/jira/browse/CAMEL-15734
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-servlet
>    Affects Versions: 3.4.4, 3.6.0
>         Environment: Camel 3.4.4 or 3.6.0 with Karaf 4.2.10 , OpenJDK 11, Linux
>            Reporter: Tapio Piironen
>            Priority: Minor
>
> Karaf just released 4.2.10 version and seems like Jetty is again upgraded and causes incompability issues. Not sure if this is Camel or Karaf project issue, but reporting here. Stack trace below when installing camel-servlet component:
> 2020-10-22T12:29:23,689 | ERROR | Karaf ssh console user karaf | ShellUtil | 36 - org.apache.karaf.shell.core - 4.2.10 | Exception caught while executing command org.apache.karaf.features.internal.util.MultiException: Error restarting bundles: Activator start error in bundle org.ops4j.pax.web.pax-web-jetty [255]. at org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:1045) ~[?:?] at org.apache.karaf.features.internal.service.FeaturesServiceImpl.doProvision(FeaturesServiceImpl.java:1062) ~[?:?] at org.apache.karaf.features.internal.service.FeaturesServiceImpl.lambda$doProvisionInThread$13(FeaturesServiceImpl.java:998) ~[?:?] at java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[?:?] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) ~[?:?] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) ~[?:?] at java.lang.Thread.run(Thread.java:834) [?:?] Suppressed: org.osgi.framework.BundleException: Activator start error in bundle org.ops4j.pax.web.pax-web-jetty [255]. at org.apache.felix.framework.Felix.activateBundle(Felix.java:2290) ~[?:?] at org.apache.felix.framework.Felix.startBundle(Felix.java:2146) ~[?:?] at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:998) ~[?:?] at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:984) ~[?:?] at org.apache.karaf.features.internal.service.BundleInstallSupportImpl.startBundle(BundleInstallSupportImpl.java:165) ~[?:?]
>  at org.apache.karaf.features.internal.service.FeaturesServiceImpl.startBundle(FeaturesServiceImpl.java:1153) ~[?:?] at org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:1037) ~[?:?] at org.apache.karaf.features.internal.service.FeaturesServiceImpl.doProvision(FeaturesServiceImpl.java:1062) ~[?:?] at org.apache.karaf.features.internal.service.FeaturesServiceImpl.lambda$doProvisionInThread$13(FeaturesServiceImpl.java:998) ~[?:?] at java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[?:?] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) ~[?:?] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) ~[?:?] at java.lang.Thread.run(Thread.java:834) [?:?] Caused by: java.lang.NoClassDefFoundError: org/eclipse/jetty/server/HttpConfiguration$Customizer at org.ops4j.pax.web.service.jetty.internal.Activator.start(Activator.java:109) ~[?:?] at org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:697) ~[?:?] at org.apache.felix.framework.Felix.activateBundle(Felix.java:2240) ~[?:?] ... 12 more Caused by: java.lang.ClassNotFoundException: org.eclipse.jetty.server.HttpConfiguration$Customizer not found by org.eclipse.jetty.aggregate.jetty-all-server [253]
>  at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1639) ~[?:?] at org.apache.felix.framework.BundleWiringImpl.access$200(BundleWiringImpl.java:80) ~[?:?] at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:2053) ~[?:?] at java.lang.ClassLoader.loadClass(ClassLoader.java:522) ~[?:?] at org.apache.felix.framework.BundleWiringImpl.getClassByDelegation(BundleWiringImpl.java:1414) ~[?:?] at org.apache.felix.framework.BundleWiringImpl.searchImports(BundleWiringImpl.java:1660) ~[?:?] at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1590) ~[?:?]
>  at org.apache.felix.framework.BundleWiringImpl.access$200(BundleWiringImpl.java:80) ~[?:?] at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:2053) ~[?:?]
>  at java.lang.ClassLoader.loadClass(ClassLoader.java:522) ~[?:?]
>  at org.ops4j.pax.web.service.jetty.internal.Activator.start(Activator.java:109) ~[?:?]
>  at org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:697) ~[?:?]
>  at org.apache.felix.framework.Felix.activateBundle(Felix.java:2240) ~[?:?]



--
This message was sent by Atlassian Jira
(v8.3.4#803005)