Hi Ken,
I'm a little new at this too so I'll try not to confuse things. It
seems like the web.xml file is used to store things like paths and
configuration settings. This file (I think) is built into a servlet
when the servlet is built/put together for running. (I'm a little
green on this stuff).
The web.xml file sits in the WEB-INF directory (eg. <projectName>/WEB-
INF/web.xml).
You can see kind of thing explained in:
http://en.wikibooks.org/wiki/Programming:WebObjects/Web_Applications/
Deployment/Tomcat_Deployment#Servlet_Build_Products
You can see the LICENSE file there too, although I ended up putting
it into my web.xml using the instructions in the same link provided
above (see just above the diagram "SERVLET_DEPLOY_LICENSE").
eg.
<context-param>
<param-name>SERVLET_DEPLOY_LICENSE</param-name>
<param-value>insertLicenseCodeHere</param-value>
</context-param>
If you have lots of config parameters you can use the following to
insert them:
nz.co.lindesay.tools.LEConfigServletEnvEntryMergeTool
(this is found in lestuff - http://homepage.mac.com/andrewlindesay/le/
page_lestuff.html)
eg.
java -cp lejstuff.jar
nz.co.lindesay.tools.LEConfigServletEnvEntryMergeTool /<PathTo>/
web.xml <configFile> -stripdefaultdatasource
And then you can edit the web.xml file manually to see it all looks
about right.
I wrote this little script (for Linux) to help me set up a project
before actually copying the folder to where I'm planning on
deploying. As it's my first go, the folders are probably not ideal
locations and PROJECT could be passed to the script etc. etc. : )
#!/bin/bash
PROJECT=insertProjectNameFolderHere
java -cp ~/Projects/$PROJECT/BUILDS/dist/$PROJECT/WEB-INF/lib/
lejstuff.jar nz.co.lindesay.tools.LEConfigServletEnvEntryMergeTool ~/
Projects/$PROJECT/BUILDS/dist/$PROJECT/WEB-INF/web.xml ~/Projects/
$PROJECT/BUILDS/config.properties -stripdefaultdatasource
Hopefully with this script and the eg. above you can compare the two
to see what's sorta going on.
Once you have the web.xml sorted you can deploy it as a folder or a
war I believe (or so I think I read in the jetty notes). The link
provided above has Tomcat info though if you're going with that.
Hope that helps.
Julius Spencer.
This archive was generated by hypermail 2.0.0 : Thu Jun 14 2007 - 18:14:16 EDT