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

camel-http 3.3.0 component in maven central hard-codes javax.servlet-api version to 3.1.0

    XMLWordPrintableJSON

    Details

    • Type: Wish
    • Status: Resolved
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 3.3.0
    • Fix Version/s: None
    • Component/s: camel-http
    • Labels:
      None
    • Environment:
    • Estimated Complexity:
      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!

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              jhartotr Jh. To.
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: