When using the Servlet transport, you cannot use the full URL when publishing
the service. Since the port and context and other things are defined by the
servlet container, you just would use the part that you can control . In
your case, change the address line in ServicesFactoryBean to just:
factoryBean.setAddress("/" + getServiceName());
and then in UiJobServiceImpl, adjust the address in there to match whereever
it's really running. In my case, using a dfeault tomcat setup, it would be:
"http://localhost:8080/CXFProtobufServer/JobService"
That worked for me.
Dan
On Friday 10 December 2010 4:48:34 am vkrejcirik wrote:
> I try to make an example. It contains server and client project. It works,
> when you comment imports lines in services-prd.xml in server project and
> some lines in web.xml. Otherwise you get connection refused exception.
>
>
> I make this example according to my project. So, it contains the same
> libraries and codes.
>
> Examples: http://hotfile.com/dl/88455800/ee7dba7/CXFExample.zip.html here
>
>
>
> Thanks a lot.
--
Daniel Kulp
[email protected]
http://dankulp.com/blog