• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

war files  RSS feed

 
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
 
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.
 
author & internet detective
Sheriff
Posts: 38571
660
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
 
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
 
Ranch Hand
Posts: 8934
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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!