Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Critical
-
Resolution: Fixed
-
Affects Version/s: 1.1.2
-
Fix Version/s: 1.3.0
-
Component/s: Tools
-
Labels:None
-
Environment:Redhat Fedora 9, Sun JDK 1.5.0_15
Mac OS X 10.4, Sun JDK 1.5.0_13-b05-241, Gant Subversion Trunk r9137
Solaris 10 11/06, Sun JDK 1.6.0_05-b13, Gant Subversion Trunk r9137
-
Number of attachments :
Description
I am trying to use the Ivy tool with GANT 1.1.2 + Groovy 1.5.5
The following very basic build file, fails with this error:
java.lang.LinkageError: loader constraints violated with linking org/w3c/dom/Node class
I can execute an Ivy.settings perfrectly fine, but the moment I try a resolve, cachepath or cachefileset,
it fails.
build.gant
---------------------------
includeTool << gant.tools.Ivy; target ( 'default' : 'default target' ) { Ivy.cachepath ( organisation : 'apache', module : 'commons-lang', revision : '2.3', pathid : 'clpath', inline : true ); }
Activity
Russel Winder
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Environment |
Redhat Fedora 9 Sun JDK 1.5.0_15 |
Redhat Fedora 9, Sun JDK 1.5.0_15 Mac OS X 10.4, Sun JDK 1.5.0_13-b05-241, Gant Subversion Trunk r9137 Solaris 10 11/06, Sun JDK 1.6.0_05-b13, Gant Subversion Trunk r9137 |
| Fix Version/s | 1.2.0 [ 14019 ] | |
| Priority | Major [ 3 ] | Critical [ 2 ] |
Russel Winder
made changes -
| Description |
I am trying to use the Ivy tool with GANT 1.1.2 + Groovy 1.5.5 The following very basic build file, fails with this error: java.lang.LinkageError: loader constraints violated with linking org/w3c/dom/Node class I can execute an Ivy.settings perfrectly fine, but the moment I try a resolve, cachepath or cachefileset, it fails. build.gant --------------------------- includeTool << gant.tools.Ivy; target ( 'default' : 'default target' ) { Ivy.cachepath ( organisation : 'apache', module : 'commons-lang', revision : '2.3', pathid : 'clpath', inline : true ); } |
I am trying to use the Ivy tool with GANT 1.1.2 + Groovy 1.5.5 The following very basic build file, fails with this error: java.lang.LinkageError: loader constraints violated with linking org/w3c/dom/Node class I can execute an Ivy.settings perfrectly fine, but the moment I try a resolve, cachepath or cachefileset, it fails. build.gant --------------------------- {code} includeTool << gant.tools.Ivy; target ( 'default' : 'default target' ) { Ivy.cachepath ( organisation : 'apache', module : 'commons-lang', revision : '2.3', pathid : 'clpath', inline : true ); } {code} |
Russel Winder
made changes -
| Status | Open [ 1 ] | Resolved [ 5 ] |
| Fix Version/s | 1.2.0 [ 14019 ] | |
| Resolution | Not A Bug [ 6 ] |
Russel Winder
made changes -
| Comment |
[ Hummm... I cannot reproduce this problem now on Ubuntu, Mac OS X or Solaris. I still get the problem with junitreport but I can't get a java.lang.LinkageError with this script using Gant 1.2.0-SNAPSHOT. Paul, what is your setup? ] |
Russel Winder
made changes -
| Resolution | Not A Bug [ 6 ] | |
| Status | Resolved [ 5 ] | Reopened [ 4 ] |
Russel Winder
made changes -
| Fix Version/s | 1.3.0 [ 14247 ] |
Russel Winder
made changes -
| Status | Reopened [ 4 ] | Resolved [ 5 ] |
| Resolution | Fixed [ 1 ] |
Russel Winder
made changes -
| Status | Resolved [ 5 ] | Closed [ 6 ] |
This problem also affects the other operating system versions added and is a problem for 1.2.0-SNAPSHOT as well as 1.1.2.
The conflict appears to be in class lookups and class loaders. I am beginning to think it is a Groovy problem not a Gant problem per se. I need to see if the problem is reproducible in Groovy.
My current hypothesis is that the problem arises because there are versions of the classes and interfaces in rt.jar which are loaded by the bootclass loader and then there are version of the classes and interfaces in xml-apis.jar which are loaded by the Groovy rootloader.
One person has reported on the email list getting round the problem by ensuring that the xml-apis.jar released with Ivy are earlier in the classpath than any other jar that has these classes – of which there are a large number in the Java world
This problem is not restricted to Ivy, it also affects using the junitreport Ant task. Indeed I suspect it affects any task that uses the XML processing features of Java.
I view this as a critical problem in need of fixing before releasing Gant 1.2.0.