"Varadharajan.K.V,AMB Chennai" wrote:

> Hi all,
>
> I would like to know about Web Archiving of the Java (web) application.
> I have few doubts on WAR.
>
> How to create and where to deploy it?
> What is the difference between war and jar file?
> Is it supported by all Web application servers?
>

The place to start is the Servlet Specification version 2.2, which you can download
from <http://java.sun.com/products/servlet/download.html>.  Chapter 9 discusses the
directory layout of a WAR file.  It should also be described in any reasonable
article or book that covers the 2.2 spec.

A WAR file is in fact a JAR file with a different extension and with the described
internal data structure.  Therefore, you can create it with the standard JAR
command line utilities.  Tomcat (<http://jakarta.apache.org>) includes an
Applciation Developer's Guide that discusses the recommended organization for web
application projects, and uses the Ant build tool to automatically organize web
application structures for you.

All servlet containers that support the 2.2 version of the servlet spec are
required to provide a way to deploy a WAR file into their environment.  For
example, in Tomcat you simply place your WAR file in the "webapps" directory and
restart, and the WAR file will automatically get expanded.  Each server may also
provide different ways to accomplish this as well (again for Tomcat, you can simply
put a directory under "webapps" with the right files and directories inside, and it
will be recognized as a web application as well.

>
> Any links on this topic will be helpful.
>
> Thanks in advance
> Varad
>

Craig McClanahan

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to