2 Replies Latest reply on Apr 5, 2013 8:44 AM by Viral Gohel

    Issue with Jboss Web Services: jbossws-cxf.xml

    piotrs10 Newbie

      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">
      <jaxws:endpoint implementor="#helloWs" address="/helloWs" />


      Unfortunately, during deployment the server takes the address literally - 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

        • 1. Re: Issue with Jboss Web Services: jbossws-cxf.xml
          Alessio Soldano Master

          Can you please provide more info on your packaging / web.xml (if present) ?

          Basically, what happens when spring support is used is that the address you provide there in jaxws:endpoint is supposed to match the path for the actually deployed endpoint. So, you could probably use "/helloWs" there, but that would be your app context root is "helloWs" and the url pattern is "*".

          • 2. Re: Issue with Jboss Web Services: jbossws-cxf.xml
            Viral Gohel Newbie

            Do you really need the jbossws-cxf.xml ?

            I am not sure which JBoss AS you are using. If it is JBoss AS 5, then including this file is not a mandate unless you need some more fuctionality apart from knowing the details regarding the deployment endpoint.


            When you do not include this, in your /tmp folder, the jbossws-cxf.xml file gets automatically generated with the required configuration.