If you search for "web app tutorial" you should find something, but:

make this structure/files:

*.jsp
*.html
images/
WEB-INF/
WEB-INF/classes
WEB-INF/lib
WEB-INF/web.xml

put your class files in WEB-INF/classes, and put your third-party jar files (dependencies) in WEB-INF/lib.

from the root (you are in the directory that contains the JSPs, and the
WEB-INF directory, and the images directory if you have one), execute:

jar cf MyWebApp.war *.jsp *.html WEB-INF/ images/

A war file is just a zip file with some special contents in a particular
arrangement! You can also create it with winzip if you prefer.

execute this to verify what you have:

jar tf MyWebApp.war (or unzip -l MyWebApp.war)

You should see the JSPs in the top level of the archive, and that the jar tool has created the MANIFEST.MF file for
you in addition to what you built.


For most servers (such as JBoss and the newer WebLogics), you simply
drop this war into a /deploy or similar directory and the server does
the rest.

If you are trying to build a Struts web app, look here:

http://www.reumann.net/do/struts/main

It'll get you going.

And yes, the deploy tool (as well as most of the J2EE tutorial) is lame.
Do they expect actual humans to keep rereading this stuff?

Erik




Mike Duffy wrote:

Speaking of "gratuitously difficult".....

Has anyone ever messed with the "deploytool" in J2EE?

AHHGGG!!!!

I just want to deploy a simple war file.  I googled around and I could not even find 
good
documentation (Sun or elsewhere).

Does anyone know of a good plugin for Eclipse that creates war files?  I guess 
JBuilder has a good
war file creation utility.

Basically, shouldn't I be able to jar up everything in a webapp directory as long as I 
add the
correct "deployment descripter"?  I could not find an example of doing this.

Also, is it possible to create a war file that has a "context.xml" file?

I hate wasting time on stuff that should be simple.

Mike



--- Craig McClanahan <[EMAIL PROTECTED]> wrote:


Bryan Hunt wrote:



I think someone in sun just wanted to create something fancy regardless of
what the customers wanted just so he/she could put it on their cv.


Anyone who thinks this is the real reason hasn't read the technology export restriction regulations that apply to US companies. The restrictions apply to the geographic location of the downloader, and don't have anything to do with sessions or trying to make it more gratuitously difficult to use command line tools.

Craig McClanahan


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]






                
__________________________________
Do you Yahoo!?
Yahoo! Mail is new and improved - Check it out!
http://promotions.yahoo.com/new_mail

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to