Turned out to be my property setting for maven.junit.fork="true" (note
incorrect use of quotes). Thanks all for thinking of my problem

/hba

-----Original Message-----
From: Charles Daniels [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, December 08, 2004 3:58 AM
To: 'Maven Users List'
Subject: RE: Can anyone help with "linkage Error"

Try using xml-apis-1.0.b2.jar instead of xmlParserAPIs.  If you look at
the note at the bottom of http://www.ibiblio.org/maven/xml-apis/jars/,
you will see that the use of xmlParserAPIs is not recommended.  I don't
know if this will correct the problem you are seeing, but it's worth a
shot.

> -----Original Message-----
> From: Hal Arnold [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, December 07, 2004 10:35 PM
> To: [EMAIL PROTECTED]
> Subject: Can anyone help with "linkage Error"
> 
> Hi,
> 
>  
> 
> I've looked at all the Maven help lists I can find for the following
> problem, which I see others have had. I am trying to get Spring with
> Hibernate up in our environment using Maven. Works fine with Ant. My
> problem is with the test goal (I'm simply wrapping test:test at this
> point). I get the linkage error:
> 
>  
> 
> Testcase: warning(junit.framework.TestSuite$1):   FAILED
> 
> Exception in constructor: testGetCustomer (java.lang.LinkageError:
> loader constraints violated when linking org/w3c/dom/Node class
> 
>             at
> org.springframework.beans.factory.xml.DefaultXmlBeanDefinition
> Parser.reg
> isterBeanDefinitions(DefaultXmlBeanDefinitionParser.java:176)
> 
>             at
> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.
> registerBe
> anDefinitions(XmlBeanDefinitionReader.java:170)
> 
>             at
> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.
> loadBeanDe
> finitions(XmlBeanDefinitionReader.java:129)
> 
>             at
> org.springframework.context.support.AbstractXmlApplicationCont
> ext.loadBe
> anDefinitions(AbstractXmlApplicationContext.java:144)
> 
>         and lots of others..
> 
>  
> 
> I'm assuming from reading other folks notes on this same issue, that I
> have a problem with the classloader, probably 
> 
> with an incompatibility with one of the xml jars. Several folks have
> suggested that the maven.junit.fork
> 
> be set to "true" which I have done. The following is the 
> dependency list
> (dare I assume that it
> 
> comes out in some loading order?):
> 
>  
> 
> [echo] "is fork on: "true""
> 
> [echo] ...
> 
> [echo] depends on servletapi
> 
> [echo] depends on regexp
> 
> [echo] depends on oro
> 
> [echo] depends on log4j
> 
> [echo] depends on struts
> 
> [echo] depends on db-ojb
> 
> [echo] depends on commons-collections
> 
> [echo] depends on commons-pool
> 
> [echo] depends on commons-beanutils
> 
> [echo] depends on commons-digester
> 
> [echo] depends on commons-fileupload
> 
> [echo] depends on commons-validator
> 
> [echo] depends on commons-dbcp
> 
> [echo] depends on commons-lang
> 
> [echo] depends on commons-logging
> 
> [echo] depends on jfreechart
> 
> [echo] depends on ftpbean
> 
> [echo] depends on ldap
> 
> [echo] depends on flux
> 
> [echo] depends on activation
> 
> [echo] depends on mail
> 
> [echo] depends on rowset
> 
> [echo] depends on CocoDeploy
> 
> [echo] depends on xalan
> 
> [echo] depends on xercesImpl
> 
> [echo] depends on xmlParserAPIs
> 
> [echo] depends on Verisign
> 
> [echo] depends on boldfish
> 
> [echo] depends on asp
> 
> [echo] depends on lucene
> 
> [echo] depends on standard
> 
> [echo] depends on jstl
> 
> [echo] depends on saxpath
> 
> [echo] depends on oscache
> 
> [echo] depends on resin (I tried turning this off, as it's commonly a
> problem..no help tho)
> 
> [echo] depends on xstream
> 
> [echo] depends on spring
> 
> [echo] depends on spring-orm
> 
> [echo] depends on spring-aop
> 
> [echo] depends on aopalliance
> 
> [echo] depends on spring-mock
> 
> [echo] depends on hibernate
> 
> [echo] depends on dbunit
> 
> [echo] depends on junit
> 
> [echo] depends on jmock
> 
> [echo] depends on jwebunit
> 
> [echo] depends on module-platform (jar with only a simple interface,
> nothing dangerour here..)
> 
>  
> 
> Can anyone suggest some help? I guess I could simply 'wrap' 
> the ant task
> that works..
> 
>  
> 
> thanks, hba
> 
> 


---------------------------------------------------------------------
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]

Reply via email to