| Author |
Deployment of Web service war created using JAX-WS
|
Stanley Walker
Ranch Hand
Joined: Sep 23, 2009
Posts: 72
|
|
Hi,
I am beginning to learn jax-ws web services. I have got a hang of the annotations to use, how to create a webservice. however i am very confused regarding the artifacts required for successful web service deployment as a war file.
According to this http://jax-ws.java.net/nonav/2.2.1/docs/UsersGuide.html#3.1.1.2_Create_a_WAR_file_to_deploy that i have been following the following artifacts are required:
WEB-INF/sun-jaxws.xml
WEB-INF/web.xml
and I was able to deploy a webservice successfully using the above advice.
However there have been certain books, which mentions that sun-jaxws or web.xml file are redundant. We can simply run wsgen on java code, package the wsdl and deploy it as a war.
However my attempt to do the same has resulted in an error in web logic server. The error being:
javax.xml.ws.WebServiceException: Runtime descriptor "/WEB-INF/sun-jaxws.xml" is mising
My question is what are the exact files required for deployment on web service in a war.
And i would also appreciate if it can be elaborated what entries are required on these files.
|
 |
Ivan Krizsan
Bartender
Joined: Oct 04, 2006
Posts: 2193
|
|
Hi!
I have no experience with WebLogic, but in GlassFish, which contains the reference implementation (Metro) of JAX-WS, you do not need neither web.xml nor sun-jaxws.xml, you just need an annotated web service endpoint implementation class. Even the artifacts you mention are generated by the server, when the web service is deployed.
Take a look at the following tutorial: http://netbeans.org/kb/docs/websvc/jax-ws.html
Some old version of WebLogic also used Metro, I've heard, but I do not know about the newer versions.
Best wishes!
|
My free books and tutorials: http://www.slideshare.net/krizsan
|
 |
 |
|
|
subject: Deployment of Web service war created using JAX-WS
|
|
|