Hi.

I'm not sure whether this has been answered or not already.  I have not
been able to find this solution in the notes, so I am submitting it here
in the hope that it will be made available to others.

A Possible Resolution to the cocoon 2.1.5.1 build error on LINUX systems:
in "main" ClassDefNotFound: org/apache/ant/launcher/Launcher.class

The tools/bin/ant runtime shell script is wrong.

The first thing it does is check to see if the file /etc/ant.conf exist,
and executes it if it does.
To fix this error, rem out this section because there if there is an
existing ant installation on the server (especially if it is < 1.6!) then
it gets confused and issues a ClassNoDefFound error.

Here is a part of the file showing the changes in context (highlighted
with --* ):

# load system-wide ant configuration
--* #if [ -f "/etc/ant.conf" ] ; then
--* #  . /etc/ant.conf
--* #fi

Kind Regards,

Matt Robinson


Reply via email to