You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Sergey Beryozkin <sb...@gmail.com> on 2014/10/08 11:23:25 UTC

Re: conflicts with the registered path

Hi

Redirecting to the users list

Apparently supporting overlapping addresses was causing issues in other 
cases where the Jetty transport was used and it was restricted in 3.0.1.

CXF 3.0.2 (the release process is about to start) has a
"org.apache.cxf.transports.http_jetty.DontCheckUrl" system property 
supported that can be set to continue supporting such cases if preferred

Cheers, Sergey


On 08/10/14 09:49, Malisetti, Ramanjaneyulu wrote:
> Hi,
>                We are starting multiple RESTful endpoints with same base name using code below. For instance, http://localhost:9001/org/dep and http://localhost:9001/org/dep/manage . It used to work till 2.7.1. After we upgraded CXF to 3.0.1 and it is failing with below exception .
>
> Caused by: org.apache.cxf.interceptor.Fault: Could not add cxf jetty handler for url http://localhost:9001/org/dep/manage to Jetty server, as it conflicts with the registered path /dep/manage.
>          at org.apache.cxf.transport.http_jetty.JettyHTTPServerEngine.checkRegistedContext(JettyHTTPServerEngine.java:305)
>          at org.apache.cxf.transport.http_jetty.JettyHTTPServerEngine.addServant(JettyHTTPServerEngine.java:320)
>          at org.apache.cxf.transport.http_jetty.JettyHTTPDestination.activate(JettyHTTPDestination.java:179)
>          at org.apache.cxf.transport.AbstractObservable.setMessageObserver(AbstractObservable.java:49)
>          at org.apache.cxf.binding.AbstractBindingFactory.addListener(AbstractBindingFactory.java:95)
>          at org.apache.cxf.jaxrs.JAXRSBindingFactory.addListener(JAXRSBindingFactory.java:88)
>          at org.apache.cxf.endpoint.ServerImpl.start(ServerImpl.java:123)
>          at org.apache.cxf.jaxrs.JAXRSServerFactoryBean.create(JAXRSServerFactoryBean.java:201)
>
> how to avoid this exception?
>
> Regards
> Raman
>


RE: conflicts with the registered path

Posted by Jason Pell <ja...@pellcorp.com>.
You can also set a property on the bus if you don't want to use a system
property. Makes it simpler to define in spring.
 On 08/10/2014 8:27 PM, "Malisetti, Ramanjaneyulu" <
Ramanjaneyulu.Malisetti@ca.com> wrote:

> That helps. We will wait for 3.0.2.
>
> Thank you.
>
> Regards
> Raman
>
> -----Original Message-----
> From: Sergey Beryozkin [mailto:sberyozkin@gmail.com]
> Sent: Wednesday, October 08, 2014 2:53 PM
> To: users@cxf.apache.org; dev@cxf.apache.org
> Subject: Re: conflicts with the registered path
>
> Hi
>
> Redirecting to the users list
>
> Apparently supporting overlapping addresses was causing issues in other
> cases where the Jetty transport was used and it was restricted in 3.0.1.
>
> CXF 3.0.2 (the release process is about to start) has a
> "org.apache.cxf.transports.http_jetty.DontCheckUrl" system property
> supported that can be set to continue supporting such cases if preferred
>
> Cheers, Sergey
>
>
> On 08/10/14 09:49, Malisetti, Ramanjaneyulu wrote:
> > Hi,
> >                We are starting multiple RESTful endpoints with same base
> name using code below. For instance, http://localhost:9001/org/dep and
> http://localhost:9001/org/dep/manage . It used to work till 2.7.1. After
> we upgraded CXF to 3.0.1 and it is failing with below exception .
> >
> > Caused by: org.apache.cxf.interceptor.Fault: Could not add cxf jetty
> handler for url http://localhost:9001/org/dep/manage to Jetty server, as
> it conflicts with the registered path /dep/manage.
> >          at
> org.apache.cxf.transport.http_jetty.JettyHTTPServerEngine.checkRegistedContext(JettyHTTPServerEngine.java:305)
> >          at
> org.apache.cxf.transport.http_jetty.JettyHTTPServerEngine.addServant(JettyHTTPServerEngine.java:320)
> >          at
> org.apache.cxf.transport.http_jetty.JettyHTTPDestination.activate(JettyHTTPDestination.java:179)
> >          at
> org.apache.cxf.transport.AbstractObservable.setMessageObserver(AbstractObservable.java:49)
> >          at
> org.apache.cxf.binding.AbstractBindingFactory.addListener(AbstractBindingFactory.java:95)
> >          at
> org.apache.cxf.jaxrs.JAXRSBindingFactory.addListener(JAXRSBindingFactory.java:88)
> >          at org.apache.cxf.endpoint.ServerImpl.start(ServerImpl.java:123)
> >          at
> > org.apache.cxf.jaxrs.JAXRSServerFactoryBean.create(JAXRSServerFactoryB
> > ean.java:201)
> >
> > how to avoid this exception?
> >
> > Regards
> > Raman
> >
>
>

RE: conflicts with the registered path

Posted by "Malisetti, Ramanjaneyulu" <Ra...@ca.com>.
That helps. We will wait for 3.0.2. 

Thank you.

Regards
Raman

-----Original Message-----
From: Sergey Beryozkin [mailto:sberyozkin@gmail.com] 
Sent: Wednesday, October 08, 2014 2:53 PM
To: users@cxf.apache.org; dev@cxf.apache.org
Subject: Re: conflicts with the registered path

Hi

Redirecting to the users list

Apparently supporting overlapping addresses was causing issues in other cases where the Jetty transport was used and it was restricted in 3.0.1.

CXF 3.0.2 (the release process is about to start) has a "org.apache.cxf.transports.http_jetty.DontCheckUrl" system property supported that can be set to continue supporting such cases if preferred

Cheers, Sergey


On 08/10/14 09:49, Malisetti, Ramanjaneyulu wrote:
> Hi,
>                We are starting multiple RESTful endpoints with same base name using code below. For instance, http://localhost:9001/org/dep and http://localhost:9001/org/dep/manage . It used to work till 2.7.1. After we upgraded CXF to 3.0.1 and it is failing with below exception .
>
> Caused by: org.apache.cxf.interceptor.Fault: Could not add cxf jetty handler for url http://localhost:9001/org/dep/manage to Jetty server, as it conflicts with the registered path /dep/manage.
>          at org.apache.cxf.transport.http_jetty.JettyHTTPServerEngine.checkRegistedContext(JettyHTTPServerEngine.java:305)
>          at org.apache.cxf.transport.http_jetty.JettyHTTPServerEngine.addServant(JettyHTTPServerEngine.java:320)
>          at org.apache.cxf.transport.http_jetty.JettyHTTPDestination.activate(JettyHTTPDestination.java:179)
>          at org.apache.cxf.transport.AbstractObservable.setMessageObserver(AbstractObservable.java:49)
>          at org.apache.cxf.binding.AbstractBindingFactory.addListener(AbstractBindingFactory.java:95)
>          at org.apache.cxf.jaxrs.JAXRSBindingFactory.addListener(JAXRSBindingFactory.java:88)
>          at org.apache.cxf.endpoint.ServerImpl.start(ServerImpl.java:123)
>          at 
> org.apache.cxf.jaxrs.JAXRSServerFactoryBean.create(JAXRSServerFactoryB
> ean.java:201)
>
> how to avoid this exception?
>
> Regards
> Raman
>