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

Camel-Undertow doesn't work in OSGi

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.20.0
    • Component/s: camel-undertow
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      Actually camel-undertow doesn't work in OSGi.

      java.lang.IllegalArgumentException: UT001031: Unknown scheme in URI http://localhost:8010/test
      	at io.undertow.client.UndertowClient.getClientProvider(UndertowClient.java:163) [26:io.undertow.core:1.4.18.Final]
      

      Because it is using

      UndertowClient.getInstance(getCamelContext().getApplicationContextClassLoader())
      

      and it cannot find its providers. We should use

      UndertowClient.getInstance()
      

        Attachments

          Activity

            People

            • Assignee:
              ancosen Andrea Cosentino
              Reporter:
              ancosen Andrea Cosentino
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: