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

camel-servlet is no-longer working in 2.16.1 (works in 2.15.3 and 2.16.0)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Not A Problem
    • 2.16.1
    • None
    • camel-servlet
    • None
    • Unknown
    • Regression
    • Important

    Description

      As reported by Mel in http://camel.465427.n5.nabble.com/camel-servlet-is-no-longer-working-in-2-16-1-works-in-2-15-3-and-2-16-0-td5774558.html on Nov 30, 2015 (reporting here since it affects me too):

      I am using the camel-servlet component, in an app hosted in tomcat, to trigger a route via a URL such as this

      http://localhost:9090/appcontext/triggerimport/

      When upgrading to 2.16.1 the URL fails to trigger the route; the URL works if I downgrade to 2.15.3 or 2.16.0 (looks like CAMEL-9263 may have introduced the issue)

      web.xml:

      <servlet>
        <servlet-name>MyTriggerImportServlet</servlet-name>
        <display-name>Trigger import of JArchive content</display-name>
      	
        <servlet-class&gt;org.apache.camel.component.servlet.CamelHttpTransportServlet</servlet-class&gt;
        <load-on-startup>2</load-on-startup>
        <init-param>
          <param-name>ignoreDuplicateServletName</param-name>
          <param-value>true</param-value>
        </init-param>
      </servlet>
      		
      <servlet-mapping>
        <servlet-name>MyTriggerImportServlet</servlet-name>
        <url-pattern>/triggerimport/*</url-pattern>
      </servlet-mapping>
      

      camel-config.xml:

      <route id="jarchive-import-rest-service">
        <from uri="servlet://jarchive?servletName=MyTriggerImportServlet&amp;matchOnUriPrefix=true" />
        <to uri="direct:handlenotifications" pattern="OutIn" />
      </route>
      

      The endpoint is actually starting up:

      [INFO ] [2016-01-06T15:30:37,050] [RMI TCP Connection(3)-127.0.0.1] Initialized CamelHttpTransportServlet[name= MyTriggerImportServlet, contextPath=/my-integration]  [CamelHttpTransportServlet] 

      2.16.2-SNAPSHOT does not fix the problem.

      Attachments

        Issue Links

          Activity

            People

              davsclaus Claus Ibsen
              monti Henrik
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: