Thanks tonnes, Mark. That actually looks like a combination of JD's and Ivan's suggestions. Will try ASAP. If works, will try document it a bit better.
cheers, andi On 8/20/05, Mark Leicester <[EMAIL PROTECTED]> wrote: > Hi Andi, > > Have a look at http://wiki.apache.org/cocoon/Installing - this appears > to mention your problem. > > Cheers, > Mark > > On 19 Aug 2005, at 06:38, AD Marshall wrote: > > > 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. > > > > (Umm, "if"?!? That's the weirdest error message i've seen to date. > > Anyway...) > > > > I looked into the manual and blocks-build.xml (as build.sh's output > > advises), but couldn't figure out what the problem is. > > > > Before running build.sh, i checked my JAVA_HOME and ANT_HOME (and > > others) -- ant supposedly being part of my SuSE 9.3 installation: > > $ env | grep _HOME > > FORREST_HOME=/home/am/bin/apache-forrest-0.7 > > JRE_HOME=/usr/lib/jvm/java/jre > > JAVA_HOME=/usr/lib/jvm/java > > SDK_HOME=/usr/lib/jvm/java > > JDK_HOME=/usr/lib/jvm/java > > > > I "unset FORREST_HOME" -- after noting cocoon included some "calls" to > > forrest and fiddling with FORREST_HOME -- and tried again. Same > > error. > > > > I've included the complete output from build.sh from my latest attempt > > (below my eSig'). > > > > Any suggestions? > > > > Thanks, > > Andi > > > > PS: I don't have a regular Net connexion. So it might be day or two > > before i see any replies. But i *will* get to any that come. > > > > -- > > AD (Andi) Marshall > > Cell: +84 (0)903871313 > > eM: [EMAIL PROTECTED] > > Zone: ICT (IndoChina Time, GMT/UTC+7) > > Post: HoChiMinh City (ex/or SaiGon), VietNam > > > > <start> > > Buildfile: build.xml > > > > init-tasks: > > Created dir: /home/am/bin/cocoon-2.1.7/tools/anttasks > > Compiling 5 source files to /home/am/bin/cocoon-2.1.7/tools/anttasks > > Created dir: /home/am/bin/cocoon-2.1.7/tools/loader > > Compiling 1 source file to /home/am/bin/cocoon-2.1.7/tools/loader > > Could not load definitions from resource > > net/sf/antcontrib/antcontrib.properties. It could not be found. > > > > prepare: > > ====================================================================== > > Apache Cocoon 2.1.7 [1999-2005] > > ====================================================================== > > Building with Apache Ant version 1.6.2 compiled on March 19 2005 > > ---------------------------------------------------------------------- > > Using build file /home/am/bin/cocoon-2.1.7/build.xml > > ---------------------------------------------------------------------- > > Compiler options: > > - debug ......... [on] > > - optimize ...... [on] > > - deprecation ... [off] > > ====================================================================== > > Created dir: /home/am/bin/cocoon-2.1.7/build/cocoon-2.1.7 > > > > compile-mocks: > > Created dir: /home/am/bin/cocoon-2.1.7/build/cocoon-2.1.7/mocks > > Compiling 5 source files to > > /home/am/bin/cocoon-2.1.7/build/cocoon-2.1.7/mocks > > > > compile-core: > > Copying 18 files to > > /home/am/bin/cocoon-2.1.7/build/cocoon-2.1.7/classes > > Copied 60 empty directories to 34 empty directories under > > /home/am/bin/cocoon-2.1.7/build/cocoon-2.1.7/classes > > Compiling 547 source files to > > /home/am/bin/cocoon-2.1.7/build/cocoon-2.1.7/classes > > > > compile-deprecated: > > Created dir: /home/am/bin/cocoon-2.1.7/build/cocoon-2.1.7/deprecated > > Processing: > > /home/am/bin/cocoon-2.1.7/src/deprecated/conf/deprecated.xroles > > Writing: > > /home/am/bin/cocoon-2.1.7/build/cocoon-2.1.7/classes/org/apache/ > > cocoon/cocoon.roles > > Compiling 61 source files to > > /home/am/bin/cocoon-2.1.7/build/cocoon-2.1.7/deprecated > > Writing: > > /home/am/bin/cocoon-2.1.7/build/cocoon-2.1.7/classes/org/apache/ > > cocoon/cocoon.roles > > Compiling 61 source files to > > /home/am/bin/cocoon-2.1.7/build/cocoon-2.1.7/deprecated > > Note: Some input files use or override a deprecated API. > > Note: Recompile with -deprecation for details. > > > > compile-tests: > > Created dir: /home/am/bin/cocoon-2.1.7/build/cocoon-2.1.7/test > > Copying 66 files to /home/am/bin/cocoon-2.1.7/build/cocoon-2.1.7/test > > Copied 26 empty directories to 9 empty directories under > > /home/am/bin/cocoon-2.1.7/build/cocoon-2.1.7/test > > Compiling 53 source files to > > /home/am/bin/cocoon-2.1.7/build/cocoon-2.1.7/test > > Note: Some input files use or override a deprecated API. > > Note: Recompile with -deprecation for details. > > > > prepare-blocks: > > Created dir: /home/am/bin/cocoon-2.1.7/build/cocoon-2.1.7/blocks > > Copying 1 file to /home/am/bin/cocoon-2.1.7/build/cocoon-2.1.7/temp > > Processing /home/am/bin/cocoon-2.1.7/build/cocoon-2.1.7/temp/gump.xml > > to /home/am/bin/cocoon-2.1.7/build/cocoon-2.1.7/temp/blocks-build.xml > > Loading stylesheet /home/am/bin/cocoon-2.1.7/tools/src/blocks-build.xsl > > > > 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. > > > > Ant could not find the task or a class this task relies upon. > > > > This is common and has a number of causes; the usual > > solutions are to read the manual pages then download and > > install needed JAR files, or fix the build file: > > - You have misspelt 'if'. > > Fix: check your spelling. > > - The task needs an external JAR file to execute > > and this is not found at the right place in the classpath. > > Fix: check the documentation for dependencies. > > Fix: declare the task. > > - The task is an Ant optional task and the JAR file and/or libraries > > implementing the functionality were not found at the time you > > yourself built your installation of Ant from the Ant sources. > > Fix: Look in the ANT_HOME/lib for the 'ant-' JAR corresponding to > > the > > task and make sure it contains more than merely a > > META-INF/MANIFEST.MF. > > If all it contains is the manifest, then rebuild Ant with the > > needed > > libraries present in ${ant.home}/lib/optional/ , or alternatively, > > download a pre-built release version from apache.org > > - The build file was written for a later version of Ant > > Fix: upgrade to at least the latest release version of Ant > > - The task is not an Ant core or optional task > > and needs to be declared using <taskdef>. > > - You are attempting to use a task defined using > > <presetdef> or <macrodef> but have spelt wrong or not > > defined it at the point of use > > > > Remember that for JAR files to be visible to Ant tasks implemented > > in ANT_HOME/lib, the files must be in the same directory or on the > > classpath > > > > Please neither file bug reports on this problem, nor email the > > Ant mailing lists, until all of these causes have been explored, > > as this is not an Ant bug. > > > > Total time: 1 minute 16 seconds > > <end> > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- AD (Andi) Marshall Cell: +84 (0)903871313 eM: [EMAIL PROTECTED] Zone: ICT (IndoChina Time, GMT/UTC+7) Post: HoChiMinh City (ex/or SaiGon), VietNam --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]