user1384603
user1384603

Reputation: 565

Deploy web service as jar or war?

I'm making a soap web service using JAX-WS.

Should this be deployed as war or jar.

Can it be deployed as a war?

Thank you

Upvotes: 4

Views: 9913

Answers (4)

user1379574
user1379574

Reputation: 709

If you are using Glassfish then just build your application as .war (here there is no possibility to choose between two types) and deploy it either using Admin console or copy in autodeploy or use 'Deploy' button in your IDE.

How did you do this using Jar??

Upvotes: 1

David
David

Reputation: 20073

You would deploy it as a .war and could deploy it on a number of different servers (Tomcat would be one of the simplest HTTP servlet containers).

I suggest you read the following tutorial on deploying a web-service using JAX-WS on Tomcat.

http://www.mkyong.com/webservices/jax-ws/deploy-jax-ws-web-services-on-tomcat/

Upvotes: 2

JayDM
JayDM

Reputation: 1186

I believe you would have to deploy it as a war in order to get your server to properly process it.

What server are you using?

Upvotes: 0

user1379574
user1379574

Reputation: 709

Soap web service is deployed as .war because it is a web application. What application server do you use? For example, in Glassfish simply you can put it in domain1/autodeploy directory.

Upvotes: 1

Related Questions