JBoss Community

Issue with Jboss Web Services: jbossws-cxf.xml

created by piotrs10 in JBoss Web Services - View the full discussion

I can't get the web service to work properly. My configuration in jbossws-cxf.xml looks like this:

 

<bean id="helloWs" class="com.piotrs10.cxftest.service.ws.HelloServiceEndpoint">
</bean>

<jaxws:endpoint implementor="#helloWs" address="/helloWs" />

 

Unfortunately, during deployment the server takes the address literaly - it produces the wsdl with "/helloWs" as soap address location. The only way to get my WS work is to set the full path in the address, sth like: "http://localhost:8080/myapp/endpointName", where "endpointName" is the same endpoint name that I use in the JAX-WS annotation in class com.piotrs10.cxftest.service.ws.HelloServiceEndpoint. Furthermore, if I leave the "address" attribute blank in jbossws-cxf.xml, the cxf produces the wsdl with "http://localhost:9090".

 

Any ideas what can be wrong with my project or server configuration?

 

My environment:

 

Jboss Application Server, version: 7.1.1.Final

JBoss Web Services - Stack CXF Distrubiton, version: jbossws-cxf-4.0.2.GA, installed with -Dspring=true

Reply to this message by going to Community

Start a new discussion in JBoss Web Services at Community