You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by bu...@apache.org on 2001/11/02 06:46:21 UTC

DO NOT REPLY [Bug 4584] New: - jlink is broken

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4584>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4584

jlink is broken

           Summary: jlink is broken
           Product: Ant
           Version: 1.4.1
          Platform: PC
        OS/Version: Other
            Status: NEW
          Severity: Blocker
          Priority: Other
         Component: Optional Tasks
        AssignedTo: ant-dev@jakarta.apache.org
        ReportedBy: victor.ng@redknee.com


I'm using the jlink task to aggregate my external JAR files into a monolithic 
JAR file because Tomcat doesn't seem to like long classpath definitions.

Here's my actual task def:

<jlink compress="true" outfile="${deploy.lib}/${project-ext.jar}">
    <mergefiles>
        <fileset dir="${build.lib}">
            <patternset refid="external.library.dependencies"/>
        </fileset>
    </mergefiles>
</jlink>

My external library dependencies are:

<patternset id="external.library.dependencies" >
    <include name="log4j-1_0_4.jar"/>   <!-- base logging -->
    <include name="xerces_1_2.jar"/>
    <include name="jdmkrt.jar"/>    <!-- snmp -->
    <include name="classes12.zip"/> <!-- oracle for OMs -->
    <include name="jdom-0.6b.jar"/> <!-- JDOM XML parsing -->
    <include name="vbjorb.jar"/> <!-- visibroker -->
    <include name="providerutil.jar"/>  <!-- JNDI Context Helpers    -->
    <include name="fscontext.jar"/>     <!-- JNDI FileSystem Context -->
</patternset>

This seems to build me a JAR file which is not viewable by using: "jar tvf 
file.jar".

I get the following exception:

> jar tvf external.jar

...outputs a subset of files from the external.jar file...
java.util.zip.ZipException: invalid stored block lengths
        at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:139)
        at java.util.zip.ZipInputStream.read(ZipInputStream.java:142)
        at java.util.zip.ZipInputStream.closeEntry(ZipInputStream.java:93)
        at sun.tools.jar.Main.list(Main.java:744)
        at sun.tools.jar.Main.run(Main.java:193)
        at sun.tools.jar.Main.main(Main.java:904)

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>