aspose file tools*
The moose likes Servlets and the fly likes war files Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "war files" Watch "war files" New topic
Author

war files

ramdas pradeep kumar
Ranch Hand

Joined: Aug 27, 2003
Posts: 36
hi friends
i've found some ".war" files in a servlet project. what are they? used for what?
thanks
pradeep
Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
.war is a web archive. it is similar to jar files. Just a zip of
your web application. This you can directly deploy into your deploy
folder of your app server.
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30548
    
152

A .war has a very specific directory structure. Sun describes it well.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
ramdas pradeep kumar
Ranch Hand

Joined: Aug 27, 2003
Posts: 36
thanks for the info.
can we extract .war file using jar command?
suggest me the web server I can use to run this .war file?
also from where can I download the web server ?

thanks
pradeep
Andres Gonzalez
Ranch Hand

Joined: Nov 27, 2001
Posts: 1561
can we extract .war file using jar command?
sure you can. You can also place your war file in Tomcat webapps directory, and the container will automatically extract it to a directory under webapps.
suggest me the web server I can use to run this .war file?
also from where can I download the web server ?

Tomcat
[ September 15, 2003: Message edited by: Andres Gonzalez ]

I'm not going to be a Rock Star. I'm going to be a LEGEND! --Freddie Mercury
ramdas pradeep kumar
Ranch Hand

Joined: Aug 27, 2003
Posts: 36
hello all,
i've installed tomcat server and placed .war files in the webapps directory.
any installation is needed to run this. also how can i run it from the browser

thanks
Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8919

just do
http://localhost:8080/warfilename/
Things will work fine if the war file contins some welcome page.


Groovy
 
 
subject: war files