-
1. Re: Problem deploying web service
christy Jun 21, 2007 3:45 AM (in response to christy)Realy nobody knows about this priblem? It's very important for me!
-
2. Re: Problem deploying web service
griff7023 Jun 21, 2007 3:54 AM (in response to christy)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 Jun 21, 2007 5:43 AM (in response to 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 Jun 21, 2007 6:41 AM (in response to christy)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 Jun 21, 2007 8:07 AM (in response to 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!!!!