Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@www.apache.org Received: (qmail 71358 invoked from network); 22 Aug 2005 10:20:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 22 Aug 2005 10:20:35 -0000 Received: (qmail 7665 invoked by uid 500); 22 Aug 2005 10:20:16 -0000 Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 7507 invoked by uid 500); 22 Aug 2005 10:20:15 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 7488 invoked by uid 99); 22 Aug 2005 10:20:15 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Aug 2005 03:20:15 -0700 X-ASF-Spam-Status: No, hits=0.4 required=10.0 tests=DNS_FROM_RFC_ABUSE X-Spam-Check-By: apache.org Received-SPF: error (asf.osuosl.org: local policy) Received: from [195.172.82.235] (HELO mail1.qas.com) (195.172.82.235) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Aug 2005 03:20:32 -0700 Received: from orion.qas.com (orion.qas.com) by mail1.qas.com (Content Technologies SMTPRS 4.3.17) with ESMTP id for ; Mon, 22 Aug 2005 11:19:31 +0100 X-MimeOLE: Produced By Microsoft Exchange V6.0.6603.0 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: RE: Deploying ROOT.war indicates missing application web.xml Date: Mon, 22 Aug 2005 11:19:29 +0100 Message-ID: <5684A7E6FB10504393A2806C1F4C021003E0F0DE@orion.qas.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Deploying ROOT.war indicates missing application web.xml Thread-Index: AcWm/7b4D6zQ8N5BR7+nodtzdqN5AAAAYAnQ From: "Allistair Crossley" To: "Tomcat Users List" X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi, Just to reconfirm, and also to take into account what you did in your test 0. Check server.xml for unpackWARs=3D"true" autoDeploy=3D"true" 1. I use Ant's war task to correctly war the web application package. 2. I clear Tomcat's webapps folder and restart for good measure. 3. I copy the war into webapps 4. Tomcat reports INFO: Deploying web application archive ROOT.war 22-Aug-2005 11:14:02 org.apache.catalina.startup.ContextConfig applicationW= ebConfig INFO: Missing application web.xml, using defaults only StandardEngine[Catal= ina].StandardHost[localhost].StandardContext[] 5. I rename ROOT.war to ROOT.zip and open in WinZip to check file structure= , in particular web.xml and to ensure that ROOT is not part of packaged pat= hs. 6. I unzip ROOT.zip to webapps\ROOT 7. I make a request to the web application which succeeds including filters= defined in the web.xml 8. Stop Tomcat 9. With WinZip, rezip the tested working ROOT folder contents 10. Delete webapps\ROOT 11. Rename ROOT.zip to ROOT.war 12. Cut ROOT.war onto Desktop. 13. Start Tomcat 14. Cut ROOT.war into webapps 15. Get same error. INFO: Deploying web application archive ROOT.war 22-Aug-2005 11:14:02 org.apache.catalina.startup.ContextConfig applicationW= ebConfig INFO: Missing application web.xml, using defaults only StandardEngine[Catal= ina].StandardHost[localhost].StandardContext[] Could the fact that my ROOT.war is 18MB have anything to do with Tomcat's a= bility to examine for the web.xml??? (wild guess) Thanks, Allistair. > -----Original Message----- > From: Remy Maucherat [mailto:remy.maucherat@gmail.com] > Sent: 22 August 2005 10:56 > To: Tomcat Users List > Subject: Re: Deploying ROOT.war indicates missing application web.xml >=20 >=20 > On 8/22/05, Allistair Crossley wrote: > > Hi Everyone, > >=20 > > Just been deploying ROOT.war into webapps and it's failing=20 > to explode. The logs indicate; > >=20 > > INFO: Deploying web application archive ROOT.war > > 22-Aug-2005 09:46:44=20 > org.apache.catalina.startup.ContextConfig applicationWebConfig > > INFO: Missing application web.xml, using defaults only > > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ > >=20 > > Yet, if I rename ROOT.war to ROOT.zip and open it in=20 > WinZip, the web.xml has been correctly packed by the Ant WAR=20 > task. Indeed if I unzip the WAR into webapps manually, the=20 > web application works fine and is packaged correctly. > >=20 > > I use an Ant WAR task > >=20 > > > destFile=3D"${dist.dir}/${app.name}.war" > > webxml=3D"${webroot.dir}/WEB-INF/web.xml" > > duplicate=3D"preserve"> > >=20 > > > > > > > > > >=20 > > > > > > > > > > > >=20 > > > >=20 > > Any ideas why Tomcat is exhibiting this behaviour? >=20 > I just tried it by zipping and removing the ROOT folder, replacing it > with ROOT.war. It gets expanded and deployed correctly. >=20 > --=20 > xxxxxxxxxxxxxxxxxxxxxxxxx > R=E9my Maucherat > Developer & Consultant > JBoss Group (Europe) S=E0RL > xxxxxxxxxxxxxxxxxxxxxxxxx >=20 > --------------------------------------------------------------------- > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org >=20 >=20 =20 ------------------------------------------------------- QAS Ltd. Registered in England: No 2582055 Registered in Australia: No 082 851 474 ------------------------------------------------------- --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org