You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Lars Huttar <la...@sil.org> on 2004/12/14 16:18:31 UTC

error building Cocoon 2.1.6 on Suse Linux

Hi all,
Trying to build Cocoon 2.1.6 on Suse 9.2, I get this error:
=====
BUILD FAILED
/home/huttar/downloads/cocoon-2.1.6/tools/targets/compile-build.xml:239: 
The following error occurred while executing this line:
/home/huttar/downloads/cocoon-2.1.6/build/cocoon-2.1.6/temp/blocks-build.xml:546: 
Could not create task or type of type: if.

Ant could not find the task or a class this task relies upon.
=====

Searching this mailing list's archives I found the message appended at 
the bottom of this one, which suggests that the problem can be solved by 
using the Ant included with Cocoon, rather than the one on the system. 
But I've been using build.sh, which explicitly uses the provided Ant. I 
even put "echo" statements in build.sh that verify that tools/bin/ant is 
being used. Nor have I modified any Ant settings (this is a new Linux 
installation).
So... any other ideas?

By the way, there is a message earlier on in the build output that may 
indicate a problem:
=====
init-tasks:
Created dir: /home/huttar/downloads/cocoon-2.1.6/tools/anttasks
Compiling 5 source files to 
/home/huttar/downloads/cocoon-2.1.6/tools/anttasks
Created dir: /home/huttar/downloads/cocoon-2.1.6/tools/loader
Compiling 1 source file to /home/huttar/downloads/cocoon-2.1.6/tools/loader
Could not load definitions from resource 
net/sf/antcontrib/antcontrib.properties. It could not be found.
=====

Does it matter that antcontrib.properties could not be found?
Is this a problem in the Cocoon 2.1.6 source distro?

Thanks,
Lars


http://archives.real-time.com/pipermail/cocoon-users/2004-July/054384.html 
<https://mail.jaars.org/Redirect/archives.real-time.com/pipermail/cocoon-users/2004-July/054384.html>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

gian paolo ciceri wrote:
| Hello all,
| I'm sorry but I'm not able to build cocoon on my Gnu/Linux Fedora Core 2
|

Well, I'm happy to reply to myself - it works.

It was only a matter to remove JPackage ant
and any settings I've done to use other ants.

Thanks to anyone that lost time
thinking what could be wrong.

Bye
/gp


| Trying
|
| ./build.sh
|
| I take....
|
| BUILD FAILED
|
/home/gpciceri/works/setMediaCms/src/cocoon-2.1.5.1/tools/targets/compile-build.xml:172:

|
| The following error occurred while executing this line:
|
/home/gpciceri/works/setMediaCms/src/cocoon-2.1.5.1/build/cocoon-2.1.5.1/temp/blocks-build.xml:1162:

|
| Could not create task or type of type: if.
|
| I've tried both sun JDK1.4.2 and IBM 1.4.1
| I've tried both ant 1.6.2, and 1.6.1

Silly boy, use the cocoon-included ant !


|
| I've copied xalan, xercesImpl and xml-api
| from cocoon-2.1/lib/endorsed to $JAVA_HOME/jre/lib/endorsed
| as in instructions.
|
|
| Any helping hand will be appreciated:
| on MacOsX it took 30 min to have the system
| up and running.
|
|
| TIA
| /gp
|
|
|
|
| --
| gian paolo ciceri - japanman
| suddenthinks, excellence through refactoring
| ++39 340 7218101
| gp.ciceri at acm.org
| gp.ciceri at suddenthinks.com


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


Re: error building Cocoon 2.1.6 on Suse Linux

Posted by "Gregor J. Rothfuss" <gr...@apache.org>.
Lars Huttar wrote:
> Hi all,
> Trying to build Cocoon 2.1.6 on Suse 9.2, I get this error:
> =====
> BUILD FAILED
> /home/huttar/downloads/cocoon-2.1.6/tools/targets/compile-build.xml:239: 
> The following error occurred while executing this line:
> /home/huttar/downloads/cocoon-2.1.6/build/cocoon-2.1.6/temp/blocks-build.xml:546: 
> Could not create task or type of type: if.
> 
> Ant could not find the task or a class this task relies upon.
> =====

you did use ./build, not ./ant, right?


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


Re: error building Cocoon 2.1.6 on Suse Linux

Posted by Christian Hoofe <ko...@hoofe.de>.
Lars Huttar <lars_huttar <at> sil.org> writes:

> 
> Antonio Gallardo wrote:
> 
> >Hi:
> >
> >If the solution (workaround) was sucessfull to you, please wikify it, :-D
> >
> >here is the page:
> >
> >http://wiki.apache.org/cocoon/Installing
> >  
> >
> OK, done.
> Lars
> 
My solution using SUSE 9.2: 

Set in tools/bin/ant

  no_config=true






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


Re: error building Cocoon 2.1.6 on Suse Linux

Posted by Lars Huttar <la...@sil.org>.
Antonio Gallardo wrote:

>Hi:
>
>If the solution (workaround) was sucessfull to you, please wikify it, :-D
>
>here is the page:
>
>http://wiki.apache.org/cocoon/Installing
>  
>
OK, done.
Lars



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


Re: error building Cocoon 2.1.6 on Suse Linux

Posted by Antonio Gallardo <ag...@agssa.net>.
Hi:

If the solution (workaround) was sucessfull to you, please wikify it, :-D

here is the page:

http://wiki.apache.org/cocoon/Installing

Best Regards,

Antonio Gallardo

On Mar, 14 de Diciembre de 2004, 13:34, Lars Huttar dijo:
> Antonio Gallardo wrote:
>
>>On Mar, 14 de Diciembre de 2004, 9:18, Lars Huttar dijo:
>>
>>
>>>Searching this mailing list's archives I found the message appended at
>>>the bottom of this one, which suggests that the problem can be solved by
>>>using the Ant included with Cocoon, rather than the one on the system.
>>>But I've been using build.sh, which explicitly uses the provided Ant. I
>>>even put "echo" statements in build.sh that verify that tools/bin/ant is
>>>being used. Nor have I modified any Ant settings (this is a new Linux
>>>installation).
>>>So... any other ideas?
>>>
>>>
>>
>>The not found task is part of cocoon distribution. This clear tell that
>>even when you use ./build.sh, the system is using other ant version.
>>
>>
>> SOLUTION: Remove the ant of the SuSe instalation.
>
> Ah, build.sh runs tools/bin/ant, which I thought was the actual Ant
> executable...
> but actually it's a shell script that searches for the system-installed
> Ant!  :-S
> Why? If the Cocoon build is dependent on using the Cocoon-provided Ant,
> shouldn't tools/bin/ant use the Cocoon-provided Ant instead of the
> system one?
> It seems non-ideal that I have to uninstall the system Ant so it's
> unavailable for other applications.
>
> But anyway, that gives me a workaround I can use. Thanks!
>
> Lars
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>


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


Re: error building Cocoon 2.1.6 on Suse Linux

Posted by Lars Huttar <la...@sil.org>.
Antonio Gallardo wrote:

>On Mar, 14 de Diciembre de 2004, 9:18, Lars Huttar dijo:
>  
>
>>Searching this mailing list's archives I found the message appended at
>>the bottom of this one, which suggests that the problem can be solved by
>>using the Ant included with Cocoon, rather than the one on the system.
>>But I've been using build.sh, which explicitly uses the provided Ant. I
>>even put "echo" statements in build.sh that verify that tools/bin/ant is
>>being used. Nor have I modified any Ant settings (this is a new Linux
>>installation).
>>So... any other ideas?
>>    
>>
>
>The not found task is part of cocoon distribution. This clear tell that
>even when you use ./build.sh, the system is using other ant version.
>  
>
> SOLUTION: Remove the ant of the SuSe instalation.

Ah, build.sh runs tools/bin/ant, which I thought was the actual Ant 
executable...
but actually it's a shell script that searches for the system-installed 
Ant!  :-S
Why? If the Cocoon build is dependent on using the Cocoon-provided Ant, 
shouldn't tools/bin/ant use the Cocoon-provided Ant instead of the 
system one?
It seems non-ideal that I have to uninstall the system Ant so it's 
unavailable for other applications.

But anyway, that gives me a workaround I can use. Thanks!

Lars


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


Re: error building Cocoon 2.1.6 on Suse Linux

Posted by Antonio Gallardo <ag...@agssa.net>.
On Mar, 14 de Diciembre de 2004, 9:18, Lars Huttar dijo:
>
> Searching this mailing list's archives I found the message appended at
> the bottom of this one, which suggests that the problem can be solved by
> using the Ant included with Cocoon, rather than the one on the system.
> But I've been using build.sh, which explicitly uses the provided Ant. I
> even put "echo" statements in build.sh that verify that tools/bin/ant is
> being used. Nor have I modified any Ant settings (this is a new Linux
> installation).
> So... any other ideas?

The not found task is part of cocoon distribution. This clear tell that
even when you use ./build.sh, the system is using other ant version.

SOLUTION: Remove the ant of the SuSe instalation.

This is the same problem in Fedora. Fedora Core 2 included a lot of java
stuf as ant and some commons-x jar than in the new Fedora Core 3 they
where removed. Seems like the inclusion of all this stuff in FC2 did more
harm than help and for this reasons they decided to not include this jars
anymore as parrt of the distribution.

Best Regards,

Antonio Gallardo.


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