Am Freitag, 19. August 2005 07:38 schrieb AD Marshall:
> Can anyone suggest a solution or reference for the following issue?
>
> I'm repeatedly getting this message from cocoon's build.sh under SuSE Linux
> 9.3:
>
> BUILD FAILED
> /home/am/bin/cocoon-2.1.7/tools/targets/compile-build.xml:244: The
> following error occurred while executing this line:
> /home/am/bin/cocoon-2.1.7/build/cocoon-2.1.7/temp/blocks-build.xml:373:
> Could not create task or type of type: if.
>

The whole problem ist ant - related. In my case (SuSE 9.3), there ist 
an ant - installation on the system, which does not incude all the tasks 
needed to compile cocoon. 
This ant is used by default to compile cocoon, which fails. 

There are two ways to solve the problem: 

First: Use the ant that was shipped with cocoon (in cocoon-2.1.7/tools) by 
setting ANT_HOME=./cocoon--2.1.7/tools. 
I did not try that, but it should work.

Second: Get a full featured installation of ant from http://ant.apache.org and 
install it /opt/ant (or where you like it). Set ANT_HOME=/opt/ant
and run build.sh in the cocoon folder.

That worked for me, cocoon is up and running now, both 
standalone (with jetty) and with tomcat.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to