Resulting jar does not work in my application server

March 20th, 2009

Applies to:
Ant

Description:
Occurs while using Apache Ant.

Cause:
You have used the Ant jar or manifest related tasks, long lines in Your manifest were wrapped at 70 characters and the resulting jar did not work in Your application server

admin JAVA-Tools

  1. admin
    March 20th, 2009 at 10:28 | #1

    Ant implements the Java Jar file specification. Please refer to the notes section where it discusses the maximum allowable length of a line and the concept of continuation characters.
    If a jar file produced by Ant does not work in your appserver, and that failure is due to the wrapped manifest, then you need to consult your appserver provider, as it is a bug in their appserver. Far more likely, however, is a problem in your specification of your classpath. It is not Ant’s wrapping of your classpath that is the problem.

  1. No trackbacks yet.