• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

war files

 
ramdas pradeep kumar
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi friends
i've found some ".war" files in a servlet project. what are they? used for what?
thanks
pradeep
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
.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
author & internet detective
Marshal
Posts: 34863
369
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A .war has a very specific directory structure. Sun describes it well.
 
ramdas pradeep kumar
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1561
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
ramdas pradeep kumar
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 8933
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
just do
http://localhost:8080/warfilename/
Things will work fine if the war file contins some welcome page.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic