tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Allistair Crossley" <Allistair.Cross...@QAS.com>
Subject Deploying ROOT.war indicates missing application web.xml
Date Mon, 22 Aug 2005 09:20:02 GMT
Hi Everyone,
 
Just been deploying ROOT.war into webapps and it's failing to explode. The logs indicate;
 
INFO: Deploying web application archive ROOT.war
22-Aug-2005 09:46:44 org.apache.catalina.startup.ContextConfig applicationWebConfig
INFO: Missing application web.xml, using defaults only
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^
 
Yet, if I rename ROOT.war to ROOT.zip and open it in WinZip, the web.xml has been correctly
packed by the Ant WAR task. Indeed if I unzip the WAR into webapps manually, the web application
works fine and is packaged correctly.
 
I use an Ant WAR task
 
    <war 
        destFile="${dist.dir}/${app.name}.war" 
        webxml="${webroot.dir}/WEB-INF/web.xml"
        duplicate="preserve">
      
      <classes dir="${classes.dir}" />
      <lib dir="${webroot.dir}/WEB-INF/lib" />
      <webinf dir="${webroot.dir}/WEB-INF" />
      <metainf dir="${webroot.dir}/META-INF" />
      
      <fileset dir="${webroot.dir}">
        <include name="includes/**" />
        <include name="resources/**" />
        <include name="views/**" />        
      </fileset>
            
    </war>
 
Any ideas why Tomcat is exhibiting this behaviour?
 
Cheers, Allistair.
 
 


<FONT SIZE=1 FACE="VERDANA,ARIAL" COLOR=BLUE> 
-------------------------------------------------------
QAS Ltd.
Registered in England: No 2582055
Registered in Australia: No 082 851 474
-------------------------------------------------------
</FONT>


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message