[
https://issues.apache.org/jira/browse/CAMEL-11591?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16099843#comment-16099843
]
Claus Ibsen commented on CAMEL-11591:
-------------------------------------
Its all of these that should have the servlet-api added
{code}
camel-ahc/pom.xml: <artifactId>camel-http-common</artifactId>
camel-cxf/pom.xml: <artifactId>camel-http-common</artifactId>
camel-http-common/pom.xml: <artifactId>camel-http-common</artifactId>
camel-http-common/src/test/resources/log4j2.properties:appender.file.fileName =
target/camel-http-common-test.log
camel-http/pom.xml: <artifactId>camel-http-common</artifactId>
camel-http4/pom.xml: <artifactId>camel-http-common</artifactId>
camel-http4/src/main/java/org/apache/camel/component/http4/HttpMethodsConverter.java:
* To convert between camel-http4 and camel-http-common for the http methods
enums
camel-netty4-http/pom.xml: <artifactId>camel-http-common</artifactId>
camel-restlet/pom.xml: <artifactId>camel-http-common</artifactId>
camel-swagger/pom.xml: <artifactId>camel-http-common</artifactId>
camel-undertow/pom.xml: <artifactId>camel-http-common</artifactId>
camel-urlrewrite/pom.xml: <artifactId>camel-http-common</artifactId>
{code}
And then keep it as provided for camel-servlet, and camel-jetty may likely come
with servlet-api as well
{code}
camel-jetty-common/pom.xml:
<artifactId>camel-http-common</artifactId>
camel-jetty9/pom.xml: <artifactId>camel-http-common</artifactId>
camel-servlet/pom.xml: <artifactId>camel-http-common</artifactId>
{code}
> ClassNotFound: javax.servlet.ServletOutputStream in opentracing example client
> ------------------------------------------------------------------------------
>
> Key: CAMEL-11591
> URL: https://issues.apache.org/jira/browse/CAMEL-11591
> Project: Camel
> Issue Type: Bug
> Components: camel-opentracing
> Affects Versions: 2.19.2
> Reporter: Gary Brown
> Fix For: 2.20.0, 2.19.3
>
>
> 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:
> {noformat}
> 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.
> {noformat}
> On inspection of the dependencies from 2.19.1:
> {noformat}
> [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
> {noformat}
> but for 2.19.2:
> {noformat}
> [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
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)