You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by GerryChenStarNet <ge...@gmail.com> on 2011/08/19 08:44:51 UTC

java.lang.RuntimeException: Soap 1.1 endpoint already registered on address

Hi Everyone!

I write tow Endpoints in Server side. I want to bind this tow Endpoints to a
service URL.
But it prompt me " java.lang.RuntimeException: Soap 1.1 endpoint already
registered on address".

So I have found some post in this mail list. I find only post in 2008. 
The post is
"http://cxf.547215.n5.nabble.com/How-to-publish-multiport-service-td561214.html"

If I do that like that post , I think it is too difficult and  inconvenient.
Do CXF Framework have some Spring configurations to set this function now?
Thanks!



--
View this message in context: http://cxf.547215.n5.nabble.com/java-lang-RuntimeException-Soap-1-1-endpoint-already-registered-on-address-tp4714684p4714684.html
Sent from the cxf-user mailing list archive at Nabble.com.

Re: java.lang.RuntimeException: Soap 1.1 endpoint already registered on address

Posted by Daniel Kulp <dk...@apache.org>.
On Thursday, August 18, 2011 11:44:51 PM GerryChenStarNet wrote:
> Hi Everyone!
> 
> I write tow Endpoints in Server side. I want to bind this tow Endpoints to a
> service URL.
> But it prompt me " java.lang.RuntimeException: Soap 1.1 endpoint already
> registered on address".
> 
> So I have found some post in this mail list. I find only post in 2008.
> The post is
> "http://cxf.547215.n5.nabble.com/How-to-publish-multiport-service-td561214.h
> tml"
> 
> If I do that like that post , I think it is too difficult and  inconvenient.
> Do CXF Framework have some Spring configurations to set this function now?
> Thanks!

Not really, no.   For the most part its a 1:1 URL:endpoint matching.   You can 
try adding an endpoint property of:

"allow-multiplex-endpoint" "true"

but I think you then need to implement a AbstractEndpointSelectionInterceptor 
to select the appropriate endpoint at runtime.   I'm not really 100% sure 
though as it's not one of "normal" usecases so I'm not sure if anyone has 
really tried it.


-- 
Daniel Kulp
dkulp@apache.org
http://dankulp.com/blog
Talend - http://www.talend.com