Hi Henrik, On 4 Dec 2005 at 4:38, hv @ Fashion Content wrote:
> > context.xml: > > <Context docBase="ROOT" reloadable="true"></Context> > > Where is this context.xml file located? The docBase attribute must > not be used unless the <Context> tag is inside server.xml or > conf/Catalina/<host_name>/<app_name>.xml; the only time a file named > context.xml is valid is inside the META-INF directory of a webapp. > > it is in META-INF. Ok, so I tried to remove the docBase. Made no > difference whatsoever. Please excuse the brief digression into the Ant world, but it is about building WAR files for Tomcat... Another gotcha I found when putting together my Ant war-build scripts is that initially I just created a (working) web app on my development machine file system and then "zipped" that all up into a WAR file using the Ant WAR task. However, I discovered after much fiddling and googling that you can't just zip in the "special" folders (WEB-INF, META-INF, WEB-INF/lib etc.) you have to exclude them from the files being zipped into the WAR file and then specify the files to go into them via the <lib ..> <metainf ..> and <webinf ..> enclosed tags. Never worked out what structural difference this made to the WAR file, since it looked the same as my previous ones when I unzipped it, but functionally it made the difference between it working and not working with Tomcat (WRT auto-deploy anyway). Check your Ant documentation of the WAR task for details. HTH, Rob Hills MBBS, Grad Dip Com Stud, MACS Senior Consultant Netpaver Web Solutions Tel: (08) 9485 2555 Mob: (0412) 904 357 Fax: (08) 9485 2555 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]