You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by James <so...@dodo.com.au> on 2002/08/30 17:28:16 UTC
Simple WAR files
Hi,
I have read the documentation for writing web applications and distributing
them in WAR files, but now I am just more confused than ever. I'm looking
for a simple step by step tutorial on making WAR archives and making them
redistributable.
I know this so far:
- Directory structure; WEB-INF, WEB-INF/classes, etc and what they are used
for
- How to write servlets and JSPs, no worries there...
So now I need to know, what are the basic steps to make a very simple,
almost HelloWord.war type of application? How do I write an application
descriptor, and what do I do with it to make an application WAR file? What
are all the references to asking an administrator to assign a context path?
(I have no administrator, only my home computer and myself!)
Thanks,
James
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Simple WAR files
Posted by "Peter T. Abplanalp" <pt...@psaconsultants.com>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Sat, Aug 31, 2002 at 02:06:07AM +1000, James wrote:
> Thanks Peter. Now that I know how to make WAR files, is there a tutorial on
> writing the bits and pieces of web.xml?
well, there are many. you can go through the tutorials at
java.sun.com or you can get some book or other. i believe there are
also some details in the tomcat documentation. if i'm wrong, the
tomcat docs will probably point you in the right direction.
> Also... I see this is a popular question, (I was also going to ask) where is
> mod_jk in binary for Win32? Do you have one in a package with docs that you
> can send me? :-) Sorry! I can't see how to get it.
very popular. almost to the point of being annoying, but that is
another thread. :-) if you look through the messages for today, i
believe john turner posted a link to win32 binaries. he also has a
howto that he posts about once a day. i think he's already posted it
today.
- --
Peter Abplanalp
Email: pta@psaconsultants.com
PGP: pgp.mit.edu
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
iD8DBQE9b5ztggA8sH0iRXQRAvACAJ9oxtA03q7tOjOi3KOfw9T6n1NNDACdEPWz
RcsEWqvEJ792xpnqfF69L3Y=
=4p7A
-----END PGP SIGNATURE-----
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Simple WAR files
Posted by James <so...@dodo.com.au>.
Thanks Peter. Now that I know how to make WAR files, is there a tutorial on
writing the bits and pieces of web.xml?
Also... I see this is a popular question, (I was also going to ask) where is
mod_jk in binary for Win32? Do you have one in a package with docs that you
can send me? :-) Sorry! I can't see how to get it.
James
----- Original Message -----
From: "Peter T. Abplanalp" <pt...@psaconsultants.com>
To: "Tomcat List" <to...@jakarta.apache.org>
Sent: Saturday, August 31, 2002 1:46 AM
Subject: Re: Simple WAR files
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On Sat, Aug 31, 2002 at 01:28:16AM +1000, James wrote:
> > Hi,
> >
> > I have read the documentation for writing web applications and
distributing
> > them in WAR files, but now I am just more confused than ever. I'm
looking
> > for a simple step by step tutorial on making WAR archives and making
them
> > redistributable.
> >
> > I know this so far:
> > - Directory structure; WEB-INF, WEB-INF/classes, etc and what they are
used
> > for
>
> do you also know about the web.xml that is supposed to go into
> web-inf?
>
> > So now I need to know, what are the basic steps to make a very simple,
> > almost HelloWord.war type of application? How do I write an application
> > descriptor, and what do I do with it to make an application WAR file?
What
> > are all the references to asking an administrator to assign a context
path?
> > (I have no administrator, only my home computer and myself!)
>
> let's say you are working in ~/src/myapp which contains the dir
> structure you describe above. all you need to do is execute the
> following command in ~/src/myapp:
>
> jar cvf myapp.war *
>
> then proceed to copy the war file to however many tomcats you want.
> that's it in its simplest form.
>
> if you then want to do some neater stuff, you need to look into how
> the web.xml file is structured. it basically defines your web app and
> what happens where. it is really beyond the scope of a single email.
> creating the war file is always the same.
>
> > Thanks,
>
> welcome.
>
> - --
> Peter Abplanalp
>
> Email: pta@psaconsultants.com
> PGP: pgp.mit.edu
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.0.7 (GNU/Linux)
>
> iD8DBQE9b5NTggA8sH0iRXQRArVaAKCRlTJBYAidxf3fmHS4z95KQQBAIwCcDCGk
> n0vaUtmoJNZYWPPJjI76jbY=
> =oJfH
> -----END PGP SIGNATURE-----
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>
>
>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Simple WAR files
Posted by "Peter T. Abplanalp" <pt...@psaconsultants.com>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Sat, Aug 31, 2002 at 01:28:16AM +1000, James wrote:
> Hi,
>
> I have read the documentation for writing web applications and distributing
> them in WAR files, but now I am just more confused than ever. I'm looking
> for a simple step by step tutorial on making WAR archives and making them
> redistributable.
>
> I know this so far:
> - Directory structure; WEB-INF, WEB-INF/classes, etc and what they are used
> for
do you also know about the web.xml that is supposed to go into
web-inf?
> So now I need to know, what are the basic steps to make a very simple,
> almost HelloWord.war type of application? How do I write an application
> descriptor, and what do I do with it to make an application WAR file? What
> are all the references to asking an administrator to assign a context path?
> (I have no administrator, only my home computer and myself!)
let's say you are working in ~/src/myapp which contains the dir
structure you describe above. all you need to do is execute the
following command in ~/src/myapp:
jar cvf myapp.war *
then proceed to copy the war file to however many tomcats you want.
that's it in its simplest form.
if you then want to do some neater stuff, you need to look into how
the web.xml file is structured. it basically defines your web app and
what happens where. it is really beyond the scope of a single email.
creating the war file is always the same.
> Thanks,
welcome.
- --
Peter Abplanalp
Email: pta@psaconsultants.com
PGP: pgp.mit.edu
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
iD8DBQE9b5NTggA8sH0iRXQRArVaAKCRlTJBYAidxf3fmHS4z95KQQBAIwCcDCGk
n0vaUtmoJNZYWPPJjI76jbY=
=oJfH
-----END PGP SIGNATURE-----
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
RE: Simple WAR files
Posted by admin <ad...@riskdecisions.com>.
I know just what you mean!!! I got round the problem by starting to use ant.
Its war task is pretty straight forward
Best Wishes
John Burgess
john@riskdecisions.com
Tel: 01865 718666
Fax: 01865 718600
-----Original Message-----
From: James [mailto:softwaredev@dodo.com.au]
Sent: Friday, August 30, 2002 4:28 PM
To: Tomcat List
Subject: Simple WAR files
Hi,
I have read the documentation for writing web applications and distributing
them in WAR files, but now I am just more confused than ever. I'm looking
for a simple step by step tutorial on making WAR archives and making them
redistributable.
I know this so far:
- Directory structure; WEB-INF, WEB-INF/classes, etc and what they are used
for
- How to write servlets and JSPs, no worries there...
So now I need to know, what are the basic steps to make a very simple,
almost HelloWord.war type of application? How do I write an application
descriptor, and what do I do with it to make an application WAR file? What
are all the references to asking an administrator to assign a context path?
(I have no administrator, only my home computer and myself!)
Thanks,
James
--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>
---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.381 / Virus Database: 214 - Release Date: 02/08/02
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.381 / Virus Database: 214 - Release Date: 02/08/02
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>