cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matt Robinson" <matt_robin...@flightcentre.com>
Subject FOUND: A Fix for the ANT ClassNoDefFound Error on LINUX
Date Thu, 12 Aug 2004 21:49:57 GMT
Hi.

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 in the source distribution seems to
be wrong.

The first thing it does is check to see if the file /etc/ant.conf exist,
and executes it if it does.  The effect of this is to reset the ANT_HOME
and other important environment variables after they have been set by the
build.sh script.

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



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message