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/06/10 05:12:00 UTC

[jira] [Resolved] (CAMEL-15171) camel-http 3.3.0 component in maven central hard-codes javax.servlet-api version to 3.1.0

     [ https://issues.apache.org/jira/browse/CAMEL-15171?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen resolved CAMEL-15171.
---------------------------------
    Resolution: Won't Fix

> camel-http 3.3.0 component in maven central hard-codes javax.servlet-api version to 3.1.0
> -----------------------------------------------------------------------------------------
>
>                 Key: CAMEL-15171
>                 URL: https://issues.apache.org/jira/browse/CAMEL-15171
>             Project: Camel
>          Issue Type: Wish
>          Components: camel-http
>    Affects Versions: 3.3.0
>         Environment: * Java
> $ java --version
> openjdk 11.0.3 2019-04-16
> OpenJDK Runtime Environment AdoptOpenJDK (build 11.0.3+7)
> OpenJDK 64-Bit Server VM AdoptOpenJDK (build 11.0.3+7, mixed mode)
> * Maven
> $ mvn --version
> Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f)
> Maven home: /home/jtocancipa/local/src/apache-maven
> Java version: 11.0.3, vendor: AdoptOpenJDK, runtime: /home/user/jdk-11.0.3+7
> Default locale: en_US, platform encoding: UTF-8
> OS name: "linux", version: "5.6.16-050616-generic", arch: "amd64", family: "unix"
>            Reporter: Jh. To.
>            Priority: Major
>
> While migrating an application from camel 2.24.3 to 3.3.0 it was noticed that fetching a web application was failing with:
> {code:bash}
> 2020-06-09 19:13:21,142 DEBUG http-nio-127.0.0.1-9080-exec-4 [] [] org.apache.catalina.core.ContainerBase.[Tomcat].[localhost] - Processing ErrorPage[errorCode=0, location=/error]
> 2020-06-09 19:13:21,142 ERROR http-nio-127.0.0.1-9080-exec-4 [] [] org.apache.catalina.core.ContainerBase.[Tomcat].[localhost] - Exception Processing ErrorPage[errorCode=0, location=/error]
> java.lang.NoSuchMethodError: javax.servlet.http.HttpServletRequest.getHttpServletMapping()Ljavax/servlet/http/HttpServletMapping; {code}
> With camel 2.24.3 the camel-http dependency tree in the application contains:
> {code:bash}
> [INFO] +- org.apache.camel:camel-http:jar:2.24.3:compile
> [INFO] |  +- org.apache.camel:camel-http-common:jar:2.24.3:compile
> [INFO] |  +- javax.servlet:javax.servlet-api:jar:4.0.1:compile
> [INFO] |  \- commons-httpclient:commons-httpclient:jar:3.1:compile
> {code}
> With camel 3.3.0 the camel-http dependency tree in the application contains:
> {code:bash}
> [INFO] |  +- org.apache.camel:camel-http:jar:3.3.0:compile
> [INFO] |  |  +- org.apache.camel:camel-cloud:jar:3.3.0:compile
> [INFO] |  |  +- org.apache.camel:camel-http-common:jar:3.3.0:compile
> [INFO] |  |  |  +- org.apache.camel:camel-http-base:jar:3.3.0:compile
> [INFO] |  |  |  \- org.apache.camel:camel-attachments:jar:3.3.0:compile
> [INFO] |  |  |     \- com.sun.activation:javax.activation:jar:1.2.0:compile
> [INFO] |  |  \- javax.servlet:javax.servlet-api:jar:3.1.0:compile
> {code}
> For camel-http 3.3.0 it was noticed that in maven central the javax.servlet:javax.servlet-api dependency version is hard-coded to 3.1.0, see: [https://repo1.maven.org/maven2/org/apache/camel/camel-http/3.3.0/camel-http-3.3.0.pom].
> For camel-http 2.24.3 the javax.servlet:javax.servlet-api dependency version is not hard-coded, and can be overriden by setting defining the javax.servlet-api-version property, see:
>  [https://repo1.maven.org/maven2/org/apache/camel/camel-http/2.24.3/camel-http-2.24.3.pom]
> Can you please verify whether this is an issue with the Camel release 3.3.0 deployment?
> Thanks for your time!



--
This message was sent by Atlassian Jira
(v8.3.4#803005)