Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Can you deploy servlets and web services from a .war?

Reply
Thread Tools

Can you deploy servlets and web services from a .war?

 
 
ses
Guest
Posts: n/a
 
      10-20-2010
OK might be a stupid question but hopefully someone can help out:

Can you deploy both servlets and web services from a single .war or do
you have to package them up in an ear?

I ask because Glassfish is giving me a very unhelpful deployment
exception and this is the only thing I can think of that might be the
cause. Originally I was just deploying the web services from this war,
but I wanted a servlet in there as well.
 
Reply With Quote
 
 
 
 
Jan Thomä
Guest
Posts: n/a
 
      10-25-2010
On 20.10.10 23:00, ses wrote:

> Can you deploy both servlets and web services from a single .war or do
> you have to package them up in an ear?


You can. Just declare them both in the web.xml and you should be good to
go. After all, web services are just fancy servlets.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Tomcat 5.5.6 : How to deploy and run JSP and Servlets Martin Java 6 12-11-2010 03:05 PM
Can you deploy servlets and web services from a .war? ses Java 4 10-21-2010 04:13 PM
Deploy won't deploy Masterpage.master GaryDean ASP .Net 1 04-14-2009 01:50 AM
Java servlets: Hi All! I want to display xml file in browser using servlets datta.saru Software 0 05-15-2006 03:30 PM
Including Web Services in Java Classes and Servlets Davo C S Java 0 08-09-2004 05:38 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57