Note that there are some explanatory texts on larger screens.

plurals
  1. POProblem in copy task
    primarykey
    data
    text
    <p>When I war a spring mvc project, the war file cannot be deployed to tomcat with ZipException oversubscribed literal/length tree. I find that when I open All files in WEB-INF/LIB/*.jar when I try to open them using winrar I got "unexpected archive file"</p> <p>I've 2 ant targets that's like this</p> <pre><code>&lt;target name="build" description="Compile main source tree java files"&gt; &lt;mkdir dir="${build.dir}" /&gt; &lt;copy todir="${web.dir}/WEB-INF/"&gt; &lt;fileset dir="src/main/webapp/WEB-INF/"&gt; &lt;include name="**/*.*" /&gt; &lt;/fileset&gt; &lt;filterchain&gt; &lt;striplinecomments&gt; &lt;comment value="!" /&gt; &lt;/striplinecomments&gt; &lt;replacetokens&gt; &lt;token key="hibernate.connection.url" value="${hibernate.connection.url}" /&gt; &lt;token key="hibernate.connection.username" value="${hibernate.connection.username}" /&gt; &lt;token key="hibernate.connection.password" value="${hibernate.connection.password}" /&gt; &lt;token key="fontFamily" value="arial, helvetica, sans-serif" /&gt; &lt;/replacetokens&gt; &lt;/filterchain&gt; &lt;/copy&gt; &lt;copy todir="${build.dir}"&gt; &lt;fileset dir="src/main/resources"&gt; &lt;include name="**/*.*" /&gt; &lt;/fileset&gt; &lt;filterchain&gt; &lt;striplinecomments&gt; &lt;comment value="!" /&gt; &lt;/striplinecomments&gt; &lt;replacetokens&gt; &lt;token key="hibernate.connection.url" value="${hibernate.connection.url}" /&gt; &lt;token key="hibernate.connection.username" value="${hibernate.connection.username}" /&gt; &lt;token key="hibernate.connection.password" value="${hibernate.connection.password}" /&gt; &lt;token key="fontFamily" value="arial, helvetica, sans-serif" /&gt; &lt;/replacetokens&gt; &lt;/filterchain&gt; &lt;/copy&gt; &lt;javac destdir="${build.dir}" source="1.6" target="1.6" debug="true" deprecation="false" optimize="false" failonerror="true"&gt; &lt;src path="${src.dir}" /&gt; &lt;classpath refid="master-classpath" /&gt; &lt;/javac&gt; &lt;/target&gt; &lt;target name="deploywar" depends="build" description="Deploy application as a WAR file"&gt; &lt;war destfile="${name}.war" webxml="${web.dir}/WEB-INF/web.xml"&gt; &lt;fileset dir="${web.dir}"&gt; &lt;include name="**/*.*" /&gt; &lt;/fileset&gt; &lt;/war&gt; &lt;copy todir="${deploy.path}" preservelastmodified="true"&gt; &lt;fileset dir="."&gt; &lt;include name="*.war" /&gt; &lt;/fileset&gt; &lt;/copy&gt; </code></pre> <p>I found now the problem in the copy target, when it copies the *.jar files to an external folder they become corrupted.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload