my dog learned polymorphism
The moose likes Web Services and the fly likes Deployment of Web service war created using JAX-WS Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Deployment of Web service war created using JAX-WS" Watch "Deployment of Web service war created using JAX-WS" New topic

Deployment of Web service war created using JAX-WS

Stanley Walker
Ranch Hand

Joined: Sep 23, 2009
Posts: 87

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 that i have been following the following artifacts are required:

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: 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
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
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:
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:
I agree. Here's the link:
subject: Deployment of Web service war created using JAX-WS
It's not a secret anymore!