Return-Path: X-Original-To: apmail-camel-issues-archive@minotaur.apache.org Delivered-To: apmail-camel-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B3B919F3A for ; Mon, 4 Jun 2012 19:10:23 +0000 (UTC) Received: (qmail 31028 invoked by uid 500); 4 Jun 2012 19:10:23 -0000 Delivered-To: apmail-camel-issues-archive@camel.apache.org Received: (qmail 30996 invoked by uid 500); 4 Jun 2012 19:10:23 -0000 Mailing-List: contact issues-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list issues@camel.apache.org Received: (qmail 30987 invoked by uid 99); 4 Jun 2012 19:10:23 -0000 Received: from issues-vm.apache.org (HELO issues-vm) (140.211.11.160) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Jun 2012 19:10:23 +0000 Received: from isssues-vm.apache.org (localhost [127.0.0.1]) by issues-vm (Postfix) with ESMTP id 52FCD140B94 for ; Mon, 4 Jun 2012 19:10:23 +0000 (UTC) Date: Mon, 4 Jun 2012 19:10:23 +0000 (UTC) From: "Amit Patel (JIRA)" To: issues@camel.apache.org Message-ID: <529410772.35766.1338837023341.JavaMail.jiratomcat@issues-vm> In-Reply-To: <1790714772.8762.1338221003456.JavaMail.jiratomcat@issues-vm> Subject: [jira] [Updated] (CAMEL-5312) Adding Restlet routes with relative paths to Apache Camel context does NOT work after I send first request to restlet route MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CAMEL-5312?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Amit Patel updated CAMEL-5312: ------------------------------ Attachment: RestletSpringServlet.java RestletSpringServlet.java > Adding Restlet routes with relative paths to Apache Camel context does NOT work after I send first request to restlet route > ---------------------------------------------------------------------------------------------------------------------------- > > Key: CAMEL-5312 > URL: https://issues.apache.org/jira/browse/CAMEL-5312 > Project: Camel > Issue Type: Bug > Components: camel-restlet > Affects Versions: 2.9.1 > Environment: Grails, Apache Camel > Reporter: Amit Patel > Attachments: RestletSpringServlet.java, RestletSpringServlet.java > > > Adding Restlet routes with relative paths to Apache Camel context does NOT > work after I send first request to restlet route. > 1) Add Restlet route restletRoute1 with relative path to Apache Camel context > 2) Send a request to restletRoute1 (works) > 3) Add a route restletRoute2 with relative path to Apache Camel context > 4) Send a request to restletRoute2 (does not works). RestletServlet > does not find the restlet endpoint and return Not Found message. > when I checked jconsole It saw the restletRoute1 and restletRoute2 started > successfully. If I add restletRoute1 and restletRoute2 then send a > request to restletRoute1 and restletRoute2 both works. Our > application supports add route on-the-fly feature, so we don't have > to start the application every time when we add a new route. Because of > the above issue we can't integrate restlet to our application. > Routes > ------- > > > > > text/plain > > > restletRoute1 > > > > > > > > text/plain > > > restletRoute2 > > > > libs > ----- > 'org.apache.camel:camel-restlet:2.9.1' > 'org.restlet.jee:org.restlet.ext.spring:2.0.13' > Web.xml > ----------- > > RestletServlet > org.restlet.ext.spring.SpringServerServlet > > org.restlet.component > restletComponent > > > > RestletServlet > /rs/* > > Resources.groovy > ----------------- > restletComponent(org.restlet.Component) > restletComponentService(org.apache.camel.component.restlet.RestletComponent, ref("restletComponent")) -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira