cxf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sergey Beryozkin <>
Subject Re: conflicts with the registered path
Date Wed, 08 Oct 2014 09:23:25 GMT

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(
>          at org.apache.cxf.transport.http_jetty.JettyHTTPServerEngine.addServant(
>          at org.apache.cxf.transport.http_jetty.JettyHTTPDestination.activate(
>          at org.apache.cxf.transport.AbstractObservable.setMessageObserver(
>          at org.apache.cxf.binding.AbstractBindingFactory.addListener(
>          at org.apache.cxf.jaxrs.JAXRSBindingFactory.addListener(
>          at org.apache.cxf.endpoint.ServerImpl.start(
>          at org.apache.cxf.jaxrs.JAXRSServerFactoryBean.create(
> how to avoid this exception?
> Regards
> Raman

View raw message