You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Henrik (JIRA)" <ji...@apache.org> on 2016/01/06 16:08:40 UTC

[jira] [Updated] (CAMEL-9485) camel-servlet is no-longer working in 2.16.1 (works in 2.15.3 and 2.16.0)

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

Henrik updated CAMEL-9485:
--------------------------
    Description: 
As reported by "MEL" in http://mail-archives.apache.org/mod_mbox/camel-users/201511.mbox/%3C1448892863338-5774558.post@n5.nabble.com%3E 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:
{code}
<servlet>
  <servlet-name>MyTriggerImportServlet</servlet-name>
  <display-name>Trigger import of JArchive content</display-name>
	
  <servlet-class>org.apache.camel.component.servlet.CamelHttpTransportServlet</servlet-class>
  <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>
{code}
	
camel-config.xml:
{code}
<route id="jarchive-import-rest-service">
  <from uri="servlet://jarchive?servletName=MyTriggerImportServlet&amp;matchOnUriPrefix=true" />
  <to uri="direct:handlenotifications" pattern="OutIn" />
</route>
{code}




  was:
As reported my "MEL" in http://mail-archives.apache.org/mod_mbox/camel-users/201511.mbox/%3C1448892863338-5774558.post@n5.nabble.com%3E 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:
{code}
<servlet>
  <servlet-name>MyTriggerImportServlet</servlet-name>
  <display-name>Trigger import of JArchive content</display-name>
	
  <servlet-class>org.apache.camel.component.servlet.CamelHttpTransportServlet</servlet-class>
  <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>
{code}
	
camel-config.xml
{code}
<route id="jarchive-import-rest-service">
  <from uri="servlet://jarchive?servletName=MyTriggerImportServlet&amp;matchOnUriPrefix=true" />
  <to uri="direct:handlenotifications" pattern="OutIn" />
</route>
{code}





> camel-servlet is no-longer working in 2.16.1 (works in 2.15.3 and 2.16.0)
> -------------------------------------------------------------------------
>
>                 Key: CAMEL-9485
>                 URL: https://issues.apache.org/jira/browse/CAMEL-9485
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-servlet
>    Affects Versions: 2.16.1
>            Reporter: Henrik
>
> As reported by "MEL" in http://mail-archives.apache.org/mod_mbox/camel-users/201511.mbox/%3C1448892863338-5774558.post@n5.nabble.com%3E 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:
> {code}
> <servlet>
>   <servlet-name>MyTriggerImportServlet</servlet-name>
>   <display-name>Trigger import of JArchive content</display-name>
> 	
>   <servlet-class>org.apache.camel.component.servlet.CamelHttpTransportServlet</servlet-class>
>   <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>
> {code}
> 	
> camel-config.xml:
> {code}
> <route id="jarchive-import-rest-service">
>   <from uri="servlet://jarchive?servletName=MyTriggerImportServlet&amp;matchOnUriPrefix=true" />
>   <to uri="direct:handlenotifications" pattern="OutIn" />
> </route>
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)