Details
-
Wish
-
Status: Resolved
-
Major
-
Resolution: Won't Fix
-
3.3.0
-
None
-
None
-
- 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"
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" - Java
-
Unknown
Description
While migrating an application from camel 2.24.3 to 3.3.0 it was noticed that fetching a web application was failing with:
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;
With camel 2.24.3 the camel-http dependency tree in the application contains:
[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
With camel 3.3.0 the camel-http dependency tree in the application contains:
[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
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!