-
1. Re: Cannot start multiple web services (jaxws)
ffang Apr 18, 2011 8:46 PM (in response to grahamp)Hi,
Given the error like
java.net.MalformedURLException: no protocol: /NumbersOnline
Ensure your beans.xml for bunde A contain.
With address like
address="http://0.0.0:9090/NumbersOnline"
you're using cxf http transport, which use jetty directly underlying.
with address like
address="/NumbersOnline"
you're using cxf http-osgi transport, which use pax-web(pax-web is on top of jetty also) underlying, it's basically a servlet listening on default port 8181(you can change it through configuration, I guess you already change it to 9090), so you can bind multiple service on this port with different service name, but you need ensure you import correct cxf entension files to load the correct transport.
Freeman
-
2. Re: Cannot start multiple web services (jaxws)
grahamp Apr 19, 2011 8:06 AM (in response to ffang)Thanks for taking the time to reply, the advice was helpful and got me further. Now I have the cxf-extension-osgi resource imported instead of the jetty one, I can reliably start both bundles.
Some trouble accessing the web services until I found you have to put "cxf" into the middle of the url. It's a shame the log says
Setting the server's publish address to be /NumbersOnline
when actually the publish address is /cxf/NumbersOnline
Edited by: grahamp on Apr 19, 2011 12:04 PM