You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Andreas Hochsteger <e9...@student.tuwien.ac.at> on 2004/02/29 21:49:23 UTC

Problem: Building Cocoon with ant under Eclipse 3.0M7

Hi,

I've got some problems building Cocoon with ant under Eclipse 3.0M7 
under Windows XP using Java 1.4.2_03.

Here's what I got:
patch-roles:
BUILD FAILED: java.lang.IllegalArgumentException: No attributes are 
implemented

All targets run fine until "patch-roles".

Any ideas?

Thanks,

Andreas


Re: Problem: Building Cocoon with ant under Eclipse 3.0M7

Posted by Joerg Heinicke <jo...@gmx.de>.
On 01.03.2004 00:24, Antonio Gallardo wrote:

>>I was hit by that a few days ago on a different project, and it's an
>>endorsed problem, due to a wrong Xerces version. Now, don't ask me how
>>to fix that in eclipse, but if you can make ant use Cocoon's xerces you
>>should be fine.
> 
> 
> This is a very weird error. I am compiling and debugging Cocoon CVS with
> Eclipse 3.0 M7 and no problems reported.
> 
> I don't think the problem is releated to Xerces in ant 1.6.1:
> 
> Eclipse 3.0 M7 uses Ant 1.6.0 and XML4J 4.0.13 based on Xerces 2.0.0
> <website>http://www.alphaworks.ibm.com/tech/xml4j</website>
> Cocoon 2.1.5-dev (CVS) uses Ant 1.6.1 and Xerces 2.6.2
> 
> I will review the build system if there can be a potential problem.

I don't understand your argument. I'm almost sure it is an endorsed libs 
problem as almost everything related to XML and JDK 1.4 is a endorsed 
libs problem :-( I don't see how Eclipse (or the ant process started 
from inside Eclipse) should make an exception for this.

Joerg

Re: Problem: Building Cocoon with ant under Eclipse 3.0M7

Posted by Antonio Gallardo <ag...@agssa.net>.
Gianugo Rabellino dijo:
> Antoine Lévy-Lambert wrote:
>
>> Hi Andreas,
>>
>> I do not know what is causing your problem, and whether your problem is
>> solved in ant 1.6.1.
>> Maybe it is a problem connected to Eclipse integration.
>>
>> I do not really have a clue why you are getting this illegal argument
>> exception.
>>
>
> I was hit by that a few days ago on a different project, and it's an
> endorsed problem, due to a wrong Xerces version. Now, don't ask me how
> to fix that in eclipse, but if you can make ant use Cocoon's xerces you
> should be fine.

This is a very weird error. I am compiling and debugging Cocoon CVS with
Eclipse 3.0 M7 and no problems reported.

I don't think the problem is releated to Xerces in ant 1.6.1:

Eclipse 3.0 M7 uses Ant 1.6.0 and XML4J 4.0.13 based on Xerces 2.0.0
<website>http://www.alphaworks.ibm.com/tech/xml4j</website>
Cocoon 2.1.5-dev (CVS) uses Ant 1.6.1 and Xerces 2.6.2

I will review the build system if there can be a potential problem.

Hope this help.

Best Regards,

Antonio Gallardo

Re: Problem: Building Cocoon with ant under Eclipse 3.0M7

Posted by Gianugo Rabellino <gi...@apache.org>.
Antoine Lévy-Lambert wrote:

> Hi Andreas,
> 
> I do not know what is causing your problem, and whether your problem is 
> solved in ant 1.6.1.
> Maybe it is a problem connected to Eclipse integration.
> 
> I do not really have a clue why you are getting this illegal argument 
> exception.
> 

I was hit by that a few days ago on a different project, and it's an 
endorsed problem, due to a wrong Xerces version. Now, don't ask me how 
to fix that in eclipse, but if you can make ant use Cocoon's xerces you 
should be fine.

Ciao,

-- 
Gianugo Rabellino
Pro-netics s.r.l. -  http://www.pro-netics.com
Orixo, the XML business alliance - http://www.orixo.com
     (Blogging at: http://www.rabellino.it/blog/)

Re: Problem: Building Cocoon with ant under Eclipse 3.0M7

Posted by Antoine Lévy-Lambert <an...@antbuild.com>.
Hi Andreas,

I do not know what is causing your problem, and whether your problem is 
solved in ant 1.6.1.
Maybe it is a problem connected to Eclipse integration.

I do not really have a clue why you are getting this illegal argument 
exception.

Please start via Eclipse your ant build in verbose mode.
I guess it is possible to choose *verbose mode* from one of the property 
pages which are in tabs when
you start an ant build.
In *verbose mode* you get a stack trace.
Also, I would be curious to see how the generated build file looks like 
which is at the location : ${build.temp}/blocks-build.xml
Send the verbose output of your build *within Eclipse*, plus the 
${build.temp}/blocks-build.xml and the calling
build file to the ant user list( user at ant dot apache dot org ). There 
might be someone out there who will figure out what is happening.

Cheers, Antoine


Re: Problem: Building Cocoon with ant under Eclipse 3.0M7

Posted by Andreas Hochsteger <e9...@student.tuwien.ac.at>.
Antoine Lévy-Lambert wrote:

> Andreas Hochsteger wrote:
> 
>> Hi,
>>
>> I've got some problems building Cocoon with ant under Eclipse 3.0M7 
>> under Windows XP using Java 1.4.2_03.
>>
>> Here's what I got:
>> patch-roles:
>> BUILD FAILED: java.lang.IllegalArgumentException: No attributes are 
>> implemented
>>
>> All targets run fine until "patch-roles".
>>
>> Any ideas?
>>
>> Thanks,
>>
>> Andreas
>>
>>
> Can  you show a snippet of the build file ?

It's the Cocoon 2.1 build.xml, CVS from some hours ago.

> Can you try it outside of eclipse, with a local install of ant 1.6.1 for 
> instance ?

It works on the command line but not from within Eclipse 3.0M7, which 
uses the built-in ant 1.6.0.
May the ant version be the problem?

> And in this case, if it is still failing, you can show the output of ant 
> -verbose.

See attachment (sorry for the large output, but I already tried to call 
only the target which reproduces the problem).

> Antoine

Thanks,

Andreas


Re: Problem: Building Cocoon with ant under Eclipse 3.0M7

Posted by Antoine Lévy-Lambert <an...@antbuild.com>.
Andreas Hochsteger wrote:

> Hi,
>
> I've got some problems building Cocoon with ant under Eclipse 3.0M7 
> under Windows XP using Java 1.4.2_03.
>
> Here's what I got:
> patch-roles:
> BUILD FAILED: java.lang.IllegalArgumentException: No attributes are 
> implemented
>
> All targets run fine until "patch-roles".
>
> Any ideas?
>
> Thanks,
>
> Andreas
>
>
Can  you show a snippet of the build file ?

Can you try it outside of eclipse, with a local install of ant 1.6.1 for 
instance ?

And in this case, if it is still failing, you can show the output of ant 
-verbose.

Antoine