5 Replies Latest reply on Jun 21, 2007 8:07 AM by christy

    Problem deploying web service

    christy

      Hi!
      I have a problem:
      I'm using JBoss 4.2.0 with jbossws-1.2. I wrote simple web service (JAX-WS based) and successfully deployed it in automatic manner ( jbossws did it using only my source class and web.xml). After I restarted JBoss the web service had dissappeared!! Why did it happens? Do I need every time to redeploy it?
      Thank you for your help!

        • 1. Re: Problem deploying web service
          christy

          Realy nobody knows about this priblem? It's very important for me!

          • 2. Re: Problem deploying web service
            griff7023

            If you were to be a little more specific someone might be able to help.

            How are you deploying it as a .war, an exploded war, a .ear, etc.?

            • 3. Re: Problem deploying web service
              christy

              What do you mean by saying "more specific"?
              I'm deploying it as a .war.
              Here is the code of web-service:

              import javax.jws.WebService;
              import javax.jws.WebMethod;
              import javax.jws.soap.SOAPBinding;
              @WebService
              @SOAPBinding(style = SOAPBinding.Style.RPC)
              public class WSJaxws {
              @WebMethod
              public String hello(String param){
              String res = "";
              res = "Hello "+param;
              return res;
              }
              }
              So I have only java code and web.xml file. When I start jboss it deploys this web-service and I here: http://localhost:8080/jbossws/services I have WSDL file. So everything seems to be fine. But when I restart jboss the web service dessapeares! So I need to rewrite web.xml file (before deploying I had one web.xml, but after deploying jboss changed it, but I know that i is normal). And if I rewrite web.xml as it was before first deploying my web service appeares!

              • 4. Re: Problem deploying web service
                griff7023

                The re-writing of the web.xml file is normal but it usually only causes an issue if you deploy the web service as an exploded war (a directory). I haven't ever seen any issues when deploying the web service as a war file (a zip file).

                • 5. Re: Problem deploying web service
                  christy

                  Thank you very much!!!!! You helped me so! This was my mistake! I was deploying web service as an exploded war. Now I deplpyed it as a .war and everything works fine! Thank you a lot!!!!