> What happens if you don't use zipfileset?

I can't specify a 'prefix' for the files, so they don't go into the correct
location in the archive.  Or else I have to rearrange my development
environment.  AFAIK, zipfileset is just a way to specify a collection of
files to be put in the archive.  The switch to compress or not is with the
outer tag, and interestingly enough, the 'war' task seems to default to
compress="true"!

I changed to this:
<target name="war" depends="compile">
    <war destfile="${dist}/${context}.war" webxml="config/web.xml"
compress="false">
      <lib dir="lib"/>
      <classes dir="classes"/>
      <fileset dir="web"/>
      <zipfileset dir="config"  prefix="WEB-INF" />
      <zipfileset dir="jsp"     prefix="WEB-INF/jsp" />
      <zipfileset dir="tld"     prefix="WEB-INF/tld" />
    </war>
  </target>

The file got bigger, but unfortunately it still didn't unpack. :(  I stopped
Tomcat, made sure the webapps/bendev directory did not exist, copied the
bendev.war file into webapps and started Tomcat.

Again, if I manually create the directory and extract the files in the war
file to it, then it all works fine.  Tomcat just won't extract this one.

server.xml contains this:
<Host name="localhost" debug="0" appBase="webapps" unpackWARs="true"
autoDeploy="true">
and as I mentioned, struts-example.war does get expanded and deployed.

Any other ideas on why Tomcat doesn't like *this* particular .war file?

-- 
Wendy Smoak
Applications Systems Analyst, Sr.
Arizona State University PA Information Resources Management

Reply via email to