They are simply a way of bundling up a context. If you are developing a
context "mycontext" and it sits in $TOMCAT_HOME/webapps/mycontext, then to
make a war file all you need to do is:
cd $TOMCAT_HOME/webapps/mycontext
jar -cf ../mycontext.war *
and you would have a war file that you could theoretically deploy in any
servlet container. This assumes that you have all the classes you need in
mycontext/lib/*.jar or mycontext/classes - which IMHO is what you should
be doing anyway.
cheers
dim
On Tue, 14 Aug 2001 [EMAIL PROTECTED] wrote:
> i am developing jsp sites, but i never had to use war files. do i need them
> really - what is the function of that files?
>
> greets
>
> bastian
>
>
> --------------------------------------------------------------------------
> Externe Mail Dmitri Colebatch <[EMAIL PROTECTED]>
> 14.08.2001 08:58
> --------------------------------------------------------------------------
>
>
>
>
> An: [EMAIL PROTECTED]
> cc:
>
> Thema: Re: what are war files?
>
> a jar file containing the directory structure:
>
> /WEB-INF/
> /WEB-INF/web.xml
> /WEB-INF/classes/
> /WEB-INF/lib/
>
> and named .war instead of .jar
>
> compare examples.war (jar -tf examples.war) with the examples directory
> inside webapps in the install.
>
> hth
> dim
>
> On Tue, 14 Aug 2001 [EMAIL PROTECTED] wrote:
>
> > sorry for that question, but i dont know it....
> >
> > thx
> >
> > bastian
> >
> >
>
>
>
>
>
>
>