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

ClassNotFound: javax.servlet.ServletOutputStream in opentracing example client

    XMLWordPrintableJSON

    Details

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

      Description

      When testing 2.19.2 release candidate, I tried the examples/camel-example-opentracing - started up the service1 and service2, but when running the client I had a number of exceptions:

      Caused by: java.lang.ClassNotFoundException: javax.servlet.ServletOutputStream
      	at java.net.URLClassLoader.findClass(URLClassLoader.java:381) ~[?:1.8.0_131]
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[?:1.8.0_131]
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[?:1.8.0_131]
      	at org.apache.camel.component.http.HttpProducer.createMethod(HttpProducer.java:397) ~[camel-http-2.19.2.jar:2.19.2]
      	at org.apache.camel.component.http.HttpProducer.process(HttpProducer.java:98) ~[camel-http-2.19.2.jar:2.19.2]
      	at org.apache.camel.util.AsyncProcessorConverterHelper$ProcessorToAsyncProcessorBridge.process(AsyncProcessorConverterHelper.java:61) ~[camel-core-2.19.
      

      On inspection of the dependencies from 2.19.1:

      [INFO] +- org.apache.camel:camel-http:jar:2.19.1:compile
      [INFO] |  +- org.apache.camel:camel-http-common:jar:2.19.1:compile
      [INFO] |  |  \- javax.servlet:javax.servlet-api:jar:3.1.0:compile
      [INFO] |  +- commons-httpclient:commons-httpclient:jar:3.1:compile
      [INFO] |  |  \- commons-logging:commons-logging:jar:1.2:compile
      [INFO] |  \- commons-codec:commons-codec:jar:1.10:compile
      

      but for 2.19.2:

      [INFO] +- org.apache.camel:camel-http:jar:2.19.2:compile
      [INFO] |  +- org.apache.camel:camel-http-common:jar:2.19.2:compile
      [INFO] |  +- commons-httpclient:commons-httpclient:jar:3.1:compile
      [INFO] |  |  \- commons-logging:commons-logging:jar:1.2:compile
      [INFO] |  \- commons-codec:commons-codec:jar:1.10:compile
      

        Attachments

          Activity

            People

            • Assignee:
              davsclaus Claus Ibsen
              Reporter:
              objectiser Gary Brown
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: