> Kevin: > > Thanks for the reply. > > My interest in a WAR file is for placing an application > in a production environment. It's very nice to simply > ship it over, and keep track of it, as a single file. > > Thanks for you description below. It helps. > > Would/should JSP files also be located in the > WEB-INF directory, or is it ok for them to > be in a sibling directory that is also jar-ed > up into the war file? > > Sincerely: > > STeve Punte > e-Business Software Architect > Technologent Inc > [EMAIL PROTECTED] > ----- Original Message ----- > From: Kevin Duffey <[EMAIL PROTECTED]> > To: Steven Punte <[EMAIL PROTECTED]>; Orion-Interest > <[EMAIL PROTECTED]> > Sent: Thursday, July 13, 2000 6:35 PM > Subject: RE: Creation Of WAR Files? > > > > I believe Orion has a GUI tool that creates a WAR for you, but that is > > beyond me. When I am developing, I don't WAR up the dir. I keep it > expanded. > > You point to the WAR directory structure in default-web-site.xml in the > > /config folder. Just read up on that and you should be set to have a WAR > > file for development. Then you can JAR up the dir: > > > > jar cvf myfile.war root-dir > > > > That should jar up your entire www structure, including the WEB-INF folder > > which has > > /classes - the compiled code of your app > > /lib - the .jar and .zip libraries loaded for you by Orion (as per the > > servlet 2.2 spec) > > web.xml - the descriptor that explain to Orion how to run. > > > > Anything in /classes automatically becomes part of the classpath, that is > > part of the servlet 2.2 spec and should work on any servlet 2.2 container. > > Anything in the /lib folder should be loaded by the application server > > automatically and become part of the classpath as well. We put jdbc.zip > (for > > Oracle 8i) there, along with activation.jar, mail.jar, jasp.jar, and other > > .jar files we need. At runtime they are automatically seen by your app (in > > the import statements of your classes). Nothing special to do. > > > > Orion has a very kewl feature that allows you, during development, to > point > > to a "source" directory that matches the package structure output of your > > compiled classes. It then checks the source dir for changes (time-date) > > compared to the .class file it was compiled in to. If there is a change, > it > > recompiles and reloads the web-app for you. This allows you not to have to > > shut down and restart orion every time you make a code change. Most app > > servers support this for classes in the /servlets dir, and generally that > is > > javabeans and servlets. Orion (and Resin does this too) will reload the > web > > app if any classes changed. The only downside is that it can take a few > > seconds for it to check the files. I believe its faster than restarting > > though. > > > > > Dear Orion-Interest Group: > > > > > > Can I simply create a war file by: > > > > > > 1) Properly creating an WEB-INF directory. > > > 2) Properly creating a WEB-INF/web.xml file. > > > 3) Properly supplying WEB-INF/classes/<*>.class files. > > > 4) Executing "jar cvf myNewWarFile.war WEB-INF" > > > > > > > > > And I figure out all the more powerful graphics tools a > > > bit later once I get the basic concepts down. > > > > > > STeve Punte > > > e-Business Software Architect > > > Technologent Inc > > > [EMAIL PROTECTED] > > > ----- Original Message ----- > > > From: Mike Cannon-Brookes <[EMAIL PROTECTED]> > > > To: Orion-Interest <[EMAIL PROTECTED]> > > > Sent: Thursday, July 13, 2000 4:50 PM > > > Subject: RE: WAR Files: ME TOO > > > > > > > > > > A WAR file is just a jar that has one special directory > > > /WEB-INF that has > > > to > > > > contain a web.xml file. As long as your web.xml file validates > according > > > to > > > > the DTD, it's a valid WAR. Basically you can has as much or as little > in > > > the > > > > web.xml file as you want. (see > > > http://www.orionserver.com/docs/web.xml.html > > > > for more details on what can go in the web.xml file) > > > > > > > > That's really all there is too it. > > > > > > > > Mike > > > > > > > > -----Original Message----- > > > > From: [EMAIL PROTECTED] > > > > [mailto:[EMAIL PROTECTED]]On Behalf Of Steven Punte > > > > Sent: Friday, July 14, 2000 8:12 AM > > > > To: Orion-Interest > > > > Subject: Re: WAR Files: ME TOO > > > > > > > > > > > > ME TOO: > > > > > > > > I'm looking for the "idiot guide to building war files" > > > > > > > > STeve Punte > > > > e-Business Software Architect > > > > Technologent Inc > > > > [EMAIL PROTECTED] > > > > > > > > > > > > ----- Original Message ----- > > > > From: Robert Keith (UK) <[EMAIL PROTECTED]> > > > > To: Orion-Interest <[EMAIL PROTECTED]> > > > > Sent: Thursday, July 13, 2000 2:13 AM > > > > Subject: WAR Files > > > > > > > > > > > > > Hi guys, > > > > > > > > > > Does anyone know of a decent site that details what should be > > > described > > > in > > > > > the web.xml file, I can't find anything on Sun's site that is of any > > > use, > > > > > and how to go about creating a WAR file. > > > > > > > > > > cheers > > > > > > > > > > Bob > > > > > > > > > > > > > > > > > > >