[jira] [Commented] (CAMEL-10537) Unable to remove/add restful path to an existing endpoint
[ https://issues.apache.org/jira/browse/CAMEL-10537?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15890060#comment-15890060 ] Sergey Zolotaryov commented on CAMEL-10537: --- This is great news, thank you, Claus > Unable to remove/add restful path to an existing endpoint > - > > Key: CAMEL-10537 > URL: https://issues.apache.org/jira/browse/CAMEL-10537 > Project: Camel > Issue Type: Bug > Components: camel-jetty >Affects Versions: 2.18.0 > Environment: any >Reporter: Sergey Zolotaryov >Assignee: Claus Ibsen > Fix For: 2.18.3, 2.19.0 > > Attachments: RoutesTest.java > > > I am trying to re-add a rest definition to an existing jetty > restConfiguration with the following exception: > org.apache.camel.FailedToStartRouteException: Failed to start route issues > because of Multiple consumers for the same endpoint is not allowed: > jetty:http://localhost:8080/issues/%7Bisin%7D/%7Bsedol%7D?httpMethodRestrict=GET > This is obviously a bug since the first time I can add multiple rest routes > to the same endpoint (jetty or any other). Later while trying to remove/add a > route I get this error. I attach a unit test to illustrate the problem. -- This message was sent by Atlassian JIRA (v6.3.15#6346)
[jira] [Commented] (CAMEL-10537) Unable to remove/add restful path to an existing endpoint
[ https://issues.apache.org/jira/browse/CAMEL-10537?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15889926#comment-15889926 ] Claus Ibsen commented on CAMEL-10537: - Okay found a solution to make this supported - it was a problem with rest configuration not being registered/used correctly when adding the new routes causing it to not use the existing jetty configuration and lead to duplicate issue. > Unable to remove/add restful path to an existing endpoint > - > > Key: CAMEL-10537 > URL: https://issues.apache.org/jira/browse/CAMEL-10537 > Project: Camel > Issue Type: Improvement > Components: camel-jetty >Affects Versions: 2.18.0 > Environment: any >Reporter: Sergey Zolotaryov >Assignee: Claus Ibsen > Fix For: 2.18.3, 2.19.0 > > Attachments: RoutesTest.java > > > I am trying to re-add a rest definition to an existing jetty > restConfiguration with the following exception: > org.apache.camel.FailedToStartRouteException: Failed to start route issues > because of Multiple consumers for the same endpoint is not allowed: > jetty:http://localhost:8080/issues/%7Bisin%7D/%7Bsedol%7D?httpMethodRestrict=GET > This is obviously a bug since the first time I can add multiple rest routes > to the same endpoint (jetty or any other). Later while trying to remove/add a > route I get this error. I attach a unit test to illustrate the problem. -- This message was sent by Atlassian JIRA (v6.3.15#6346)
[jira] [Commented] (CAMEL-10537) Unable to remove/add restful path to an existing endpoint
[ https://issues.apache.org/jira/browse/CAMEL-10537?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15889877#comment-15889877 ] Claus Ibsen commented on CAMEL-10537: - This is currently not supported to remove rest's at runtime > Unable to remove/add restful path to an existing endpoint > - > > Key: CAMEL-10537 > URL: https://issues.apache.org/jira/browse/CAMEL-10537 > Project: Camel > Issue Type: Improvement > Components: camel-jetty >Affects Versions: 2.18.0 > Environment: any >Reporter: Sergey Zolotaryov > Attachments: RoutesTest.java > > > I am trying to re-add a rest definition to an existing jetty > restConfiguration with the following exception: > org.apache.camel.FailedToStartRouteException: Failed to start route issues > because of Multiple consumers for the same endpoint is not allowed: > jetty:http://localhost:8080/issues/%7Bisin%7D/%7Bsedol%7D?httpMethodRestrict=GET > This is obviously a bug since the first time I can add multiple rest routes > to the same endpoint (jetty or any other). Later while trying to remove/add a > route I get this error. I attach a unit test to illustrate the problem. -- This message was sent by Atlassian JIRA (v6.3.15#6346)
[jira] [Commented] (CAMEL-10537) Unable to remove/add restful path to an existing endpoint
[ https://issues.apache.org/jira/browse/CAMEL-10537?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15698681#comment-15698681 ] Sergey Zolotaryov commented on CAMEL-10537: --- By the way, even having removed all route definitions from the context I still cannot add this one. The only solution so far is to stop/start the context itself, which I quite heavy operation to undertake assuming we have 1000s of routes in production and adding just one we have to restart the whole universe. > Unable to remove/add restful path to an existing endpoint > - > > Key: CAMEL-10537 > URL: https://issues.apache.org/jira/browse/CAMEL-10537 > Project: Camel > Issue Type: Bug > Components: camel-jetty >Affects Versions: 2.18.0 > Environment: any >Reporter: Sergey Zolotaryov > Attachments: RoutesTest.java > > > I am trying to re-add a rest definition to an existing jetty > restConfiguration with the following exception: > org.apache.camel.FailedToStartRouteException: Failed to start route issues > because of Multiple consumers for the same endpoint is not allowed: > jetty:http://localhost:8080/issues/%7Bisin%7D/%7Bsedol%7D?httpMethodRestrict=GET > This is obviously a bug since the first time I can add multiple rest routes > to the same endpoint (jetty or any other). Later while trying to remove/add a > route I get this error. I attach a unit test to illustrate the problem. -- This message was sent by Atlassian JIRA (v6.3.4#6332)