Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-14788

Unable to Start Jetty server in OSGi environment

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.24.3
    • Fix Version/s: 3.2.0, 2.25.1
    • Component/s: camel-jetty
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      When deploying a spring XML via Karaf containing the Jetty component such as:

      <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>

       

      Got this exception:

      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] 

        

      While investigating found that Camel 2.24.3 uses Jetty 9.4.12.v20180830 which is affected by this issue: https://github.com/eclipse/jetty.project/issues/4350

       

      This has been fixed in Jetty >= 9.4.25 by rolling back the explicit exclusion of MultiPartInputStreamParser

       

        Attachments

          Activity

            People

            • Assignee:
              davsclaus Claus Ibsen
              Reporter:
              pedrocatalao Pedro Catalão
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: