You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (Jira)" <ji...@apache.org> on 2020/03/25 18:29:00 UTC
[jira] [Commented] (CAMEL-14788) Unable to Start Jetty server in
OSGi environment
[ https://issues.apache.org/jira/browse/CAMEL-14788?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17066957#comment-17066957 ]
Claus Ibsen commented on CAMEL-14788:
-------------------------------------
When you run with Karaf then the Jetty server/version is provided by Karaf. So you should upgrade it there.
> Unable to Start Jetty server in OSGi environment
> ------------------------------------------------
>
> Key: CAMEL-14788
> URL: https://issues.apache.org/jira/browse/CAMEL-14788
> Project: Camel
> Issue Type: Bug
> Components: camel-jetty
> Affects Versions: 2.24.3
> Reporter: Pedro Catalão
> Priority: Major
>
> When deploying a spring XML via Karaf containing the Jetty component such as:
> {code:java}
> <route id="9de65790-5809-11ea-aafe-874a8d3d85de">
> <from uri="jetty:http://0.0.0.0:9000/test"/>
> <to uri="activemq:ID_5e5520ab59931d2df0000203_test_9de65790-5809-11ea-aafe-874a8d3d85de"/>
> </route>
> <route id="88ecf240-57d2-11ea-be9a-2d059f74df24">
> <from uri="activemq:ID_5e5520ab59931d2df0000203_test_9de65790-5809-11ea-aafe-874a8d3d85de"/>
> <to uri="foobar"/>
> </route>{code}
>
> Got this exception:
> {code:java}
> java.util.concurrent.ExecutionException: java.lang.NoClassDefFoundError: org/eclipse/jetty/server/MultiPartFormDataCompliancejava.util.concurrent.ExecutionException: java.lang.NoClassDefFoundError: org/eclipse/jetty/server/MultiPartFormDataCompliance at java.util.concurrent.FutureTask.report(FutureTask.java:122) ~[?:?]Caused by: java.lang.ClassNotFoundException: org.eclipse.jetty.server.MultiPartFormDataCompliance not found by org.eclipse.jetty.server [251] {code}
>
> While investigating found that Camel *{color:#172b4d}2.24.3{color}* uses Jetty *{color:#172b4d}9.4.12.v20180830{color}* which is affected by this issue: [https://github.com/eclipse/jetty.project/issues/4350]
>
> This has been fixed in Jetty >= *{color:#172b4d}9.4.25{color}* by rolling back the explicit exclusion of {color:#ff0000}MultiPartInputStreamParser{color}
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)