Quantcast

Linkage Error after upgrading to Grails 1.1-RC2

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Linkage Error after upgrading to Grails 1.1-RC2

Dave Klein-2
I've seen a couple other posts on this or related problems but no answers yet.  But I thought I'd try anyway :-)

I am upgrading an app from 1.03 to 1.1-RC2.  I uninstalled all the plugins, upgraded the app and reinstalled the plugins.  Now I get this error when I try to run the app.

Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'pluginMetaManager' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.LinkageError: loader constraint violation: loader (instance of <bootloader>) previously initiated loading for a different type with name "org/w3c/dom/Document"

The full stack trace is below.

Any ideas, thoughts, suggestions or well documented solutions would be very appreciated.

Thanks,
Dave


2009-03-04 20:45:01,731 [main] ERROR context.ContextLoader  - Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'pluginMetaManager' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.LinkageError: loader constraint violation: loader (instance of <bootloader>) previously initiated loading for a different type with name "org/w3c/dom/Document"
    at java.security.AccessController.doPrivileged(Native Method)
    at grails.web.container.EmbeddableServer$start.call(Unknown Source)
    at _GrailsRun_groovy$_run_closure5_closure11.doCall(_GrailsRun_groovy:145)
    at _GrailsRun_groovy$_run_closure5_closure11.doCall(_GrailsRun_groovy)
    at _GrailsSettings_groovy$_run_closure10.doCall(_GrailsSettings_groovy:269)
    at _GrailsRun_groovy$_run_closure5.doCall(_GrailsRun_groovy:137)
    at _GrailsRun_groovy.runInline(_GrailsRun_groovy:104)
    at _GrailsRun_groovy.this$4$runInline(_GrailsRun_groovy)
    at _GrailsRun_groovy$_run_closure1.doCall(_GrailsRun_groovy:58)
    at RunApp$_run_closure1.doCall(RunApp.groovy:33)
    at gant.Gant$_dispatch_closure4.doCall(Gant.groovy:324)
    at gant.Gant$_dispatch_closure6.doCall(Gant.groovy:334)
    at gant.Gant$_dispatch_closure6.doCall(Gant.groovy)
    at gant.Gant.withBuildListeners(Gant.groovy:344)
    at gant.Gant.this$2$withBuildListeners(Gant.groovy)
    at gant.Gant$this$2$withBuildListeners.callCurrent(Unknown Source)
    at gant.Gant.dispatch(Gant.groovy:334)
    at gant.Gant.this$2$dispatch(Gant.groovy)
    at gant.Gant.invokeMethod(Gant.groovy)
    at gant.Gant.processTargets(Gant.groovy:495)
    at gant.Gant.processTargets(Gant.groovy:480)
Caused by: java.lang.LinkageError: loader constraint violation: loader (instance of <bootloader>) previously initiated loading for a different type with name "org/w3c/dom/Document"
    at com.sun.org.apache.xml.internal.dtm.ref.DTMManagerDefault.getDTMHandleFromNode(DTMManagerDefault.java:494)
    at com.sun.org.apache.xpath.internal.XPathContext.getDTMHandleFromNode(XPathContext.java:182)
    at com.sun.org.apache.xpath.internal.XPath.execute(XPath.java:301)
    at com.sun.org.apache.xpath.internal.jaxp.XPathImpl.eval(XPathImpl.java:210)
    at com.sun.org.apache.xpath.internal.jaxp.XPathImpl.evaluate(XPathImpl.java:275)
    ... 21 more
2009-03-04 20:45:01,731 [main] ERROR mortbay.log  - Failed startup of context org.mortbay.jetty.webapp.WebAppContext@7e32d97{/noctane,/Users/dave/dev/NOC_Grails-1.1/web-app}
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'pluginMetaManager' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.LinkageError: loader constraint violation: loader (instance of <bootloader>) previously initiated loading for a different type with name "org/w3c/dom/Document"
    at java.security.AccessController.doPrivileged(Native Method)
    at grails.web.container.EmbeddableServer$start.call(Unknown Source)
    at _GrailsRun_groovy$_run_closure5_closure11.doCall(_GrailsRun_groovy:145)
    at _GrailsRun_groovy$_run_closure5_closure11.doCall(_GrailsRun_groovy)
    at _GrailsSettings_groovy$_run_closure10.doCall(_GrailsSettings_groovy:269)
    at _GrailsRun_groovy$_run_closure5.doCall(_GrailsRun_groovy:137)
    at _GrailsRun_groovy.runInline(_GrailsRun_groovy:104)
    at _GrailsRun_groovy.this$4$runInline(_GrailsRun_groovy)
    at _GrailsRun_groovy$_run_closure1.doCall(_GrailsRun_groovy:58)
    at RunApp$_run_closure1.doCall(RunApp.groovy:33)
    at gant.Gant$_dispatch_closure4.doCall(Gant.groovy:324)
    at gant.Gant$_dispatch_closure6.doCall(Gant.groovy:334)
    at gant.Gant$_dispatch_closure6.doCall(Gant.groovy)
    at gant.Gant.withBuildListeners(Gant.groovy:344)
    at gant.Gant.this$2$withBuildListeners(Gant.groovy)
    at gant.Gant$this$2$withBuildListeners.callCurrent(Unknown Source)
    at gant.Gant.dispatch(Gant.groovy:334)
    at gant.Gant.this$2$dispatch(Gant.groovy)
    at gant.Gant.invokeMethod(Gant.groovy)
    at gant.Gant.processTargets(Gant.groovy:495)
    at gant.Gant.processTargets(Gant.groovy:480)
Caused by: java.lang.LinkageError: loader constraint violation: loader (instance of <bootloader>) previously initiated loading for a different type with name "org/w3c/dom/Document"
    at com.sun.org.apache.xml.internal.dtm.ref.DTMManagerDefault.getDTMHandleFromNode(DTMManagerDefault.java:494)
    at com.sun.org.apache.xpath.internal.XPathContext.getDTMHandleFromNode(XPathContext.java:182)
    at com.sun.org.apache.xpath.internal.XPath.execute(XPath.java:301)
    at com.sun.org.apache.xpath.internal.jaxp.XPathImpl.eval(XPathImpl.java:210)
    at com.sun.org.apache.xpath.internal.jaxp.XPathImpl.evaluate(XPathImpl.java:275)
    ... 21 more
2009-03-04 20:45:01,732 [main] ERROR mortbay.log  - Nested in org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'pluginMetaManager' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.LinkageError: loader constraint violation: loader (instance of <bootloader>) previously initiated loading for a different type with name "org/w3c/dom/Document":
java.lang.LinkageError: loader constraint violation: loader (instance of <bootloader>) previously initiated loading for a different type with name "org/w3c/dom/Document"
    at com.sun.org.apache.xml.internal.dtm.ref.DTMManagerDefault.getDTMHandleFromNode(DTMManagerDefault.java:494)
    at com.sun.org.apache.xpath.internal.XPathContext.getDTMHandleFromNode(XPathContext.java:182)
    at com.sun.org.apache.xpath.internal.XPath.execute(XPath.java:301)
    at com.sun.org.apache.xpath.internal.jaxp.XPathImpl.eval(XPathImpl.java:210)
    at com.sun.org.apache.xpath.internal.jaxp.XPathImpl.evaluate(XPathImpl.java:275)
    at java.security.AccessController.doPrivileged(Native Method)
    at grails.web.container.EmbeddableServer$start.call(Unknown Source)
    at _GrailsRun_groovy$_run_closure5_closure11.doCall(_GrailsRun_groovy:145)
    at _GrailsRun_groovy$_run_closure5_closure11.doCall(_GrailsRun_groovy)
    at _GrailsSettings_groovy$_run_closure10.doCall(_GrailsSettings_groovy:269)
    at _GrailsRun_groovy$_run_closure5.doCall(_GrailsRun_groovy:137)
    at _GrailsRun_groovy.runInline(_GrailsRun_groovy:104)
    at _GrailsRun_groovy.this$4$runInline(_GrailsRun_groovy)
    at _GrailsRun_groovy$_run_closure1.doCall(_GrailsRun_groovy:58)
    at RunApp$_run_closure1.doCall(RunApp.groovy:33)
    at gant.Gant$_dispatch_closure4.doCall(Gant.groovy:324)
    at gant.Gant$_dispatch_closure6.doCall(Gant.groovy:334)
    at gant.Gant$_dispatch_closure6.doCall(Gant.groovy)
    at gant.Gant.withBuildListeners(Gant.groovy:344)
    at gant.Gant.this$2$withBuildListeners(Gant.groovy)
    at gant.Gant$this$2$withBuildListeners.callCurrent(Unknown Source)
    at gant.Gant.dispatch(Gant.groovy:334)
    at gant.Gant.this$2$dispatch(Gant.groovy)
    at gant.Gant.invokeMethod(Gant.groovy)
    at gant.Gant.processTargets(Gant.groovy:495)
    at gant.Gant.processTargets(Gant.groovy:480)
Server running. Browse to http://localhost:8080/noctane

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Linkage Error after upgrading to Grails 1.1-RC2

Graeme Rocher-3
You may need to add xerces/xalan into your lib directory

Cheers

On Thu, Mar 5, 2009 at 3:00 AM, Dave Klein
<[hidden email]> wrote:

> I've seen a couple other posts on this or related problems but no answers
> yet.  But I thought I'd try anyway :-)
>
> I am upgrading an app from 1.03 to 1.1-RC2.  I uninstalled all the plugins,
> upgraded the app and reinstalled the plugins.  Now I get this error when I
> try to run the app.
>
> Context initialization failed
> org.springframework.beans.factory.BeanCreationException: Error creating bean
> with name 'pluginMetaManager' defined in ServletContext resource
> [/WEB-INF/applicationContext.xml]: Invocation of init method failed; nested
> exception is java.lang.LinkageError: loader constraint violation: loader
> (instance of <bootloader>) previously initiated loading for a different type
> with name "org/w3c/dom/Document"
>
> The full stack trace is below.
>
> Any ideas, thoughts, suggestions or well documented solutions would be very
> appreciated.
>
> Thanks,
> Dave
>
>
> 2009-03-04 20:45:01,731 [main] ERROR context.ContextLoader  - Context
> initialization failed
> org.springframework.beans.factory.BeanCreationException: Error creating bean
> with name 'pluginMetaManager' defined in ServletContext resource
> [/WEB-INF/applicationContext.xml]: Invocation of init method failed; nested
> exception is java.lang.LinkageError: loader constraint violation: loader
> (instance of <bootloader>) previously initiated loading for a different type
> with name "org/w3c/dom/Document"
>     at java.security.AccessController.doPrivileged(Native Method)
>     at grails.web.container.EmbeddableServer$start.call(Unknown Source)
>     at
> _GrailsRun_groovy$_run_closure5_closure11.doCall(_GrailsRun_groovy:145)
>     at _GrailsRun_groovy$_run_closure5_closure11.doCall(_GrailsRun_groovy)
>     at
> _GrailsSettings_groovy$_run_closure10.doCall(_GrailsSettings_groovy:269)
>     at _GrailsRun_groovy$_run_closure5.doCall(_GrailsRun_groovy:137)
>     at _GrailsRun_groovy.runInline(_GrailsRun_groovy:104)
>     at _GrailsRun_groovy.this$4$runInline(_GrailsRun_groovy)
>     at _GrailsRun_groovy$_run_closure1.doCall(_GrailsRun_groovy:58)
>     at RunApp$_run_closure1.doCall(RunApp.groovy:33)
>     at gant.Gant$_dispatch_closure4.doCall(Gant.groovy:324)
>     at gant.Gant$_dispatch_closure6.doCall(Gant.groovy:334)
>     at gant.Gant$_dispatch_closure6.doCall(Gant.groovy)
>     at gant.Gant.withBuildListeners(Gant.groovy:344)
>     at gant.Gant.this$2$withBuildListeners(Gant.groovy)
>     at gant.Gant$this$2$withBuildListeners.callCurrent(Unknown Source)
>     at gant.Gant.dispatch(Gant.groovy:334)
>     at gant.Gant.this$2$dispatch(Gant.groovy)
>     at gant.Gant.invokeMethod(Gant.groovy)
>     at gant.Gant.processTargets(Gant.groovy:495)
>     at gant.Gant.processTargets(Gant.groovy:480)
> Caused by: java.lang.LinkageError: loader constraint violation: loader
> (instance of <bootloader>) previously initiated loading for a different type
> with name "org/w3c/dom/Document"
>     at
> com.sun.org.apache.xml.internal.dtm.ref.DTMManagerDefault.getDTMHandleFromNode(DTMManagerDefault.java:494)
>     at
> com.sun.org.apache.xpath.internal.XPathContext.getDTMHandleFromNode(XPathContext.java:182)
>     at com.sun.org.apache.xpath.internal.XPath.execute(XPath.java:301)
>     at
> com.sun.org.apache.xpath.internal.jaxp.XPathImpl.eval(XPathImpl.java:210)
>     at
> com.sun.org.apache.xpath.internal.jaxp.XPathImpl.evaluate(XPathImpl.java:275)
>     ... 21 more
> 2009-03-04 20:45:01,731 [main] ERROR mortbay.log  - Failed startup of
> context
> org.mortbay.jetty.webapp.WebAppContext@7e32d97{/noctane,/Users/dave/dev/NOC_Grails-1.1/web-app}
> org.springframework.beans.factory.BeanCreationException: Error creating bean
> with name 'pluginMetaManager' defined in ServletContext resource
> [/WEB-INF/applicationContext.xml]: Invocation of init method failed; nested
> exception is java.lang.LinkageError: loader constraint violation: loader
> (instance of <bootloader>) previously initiated loading for a different type
> with name "org/w3c/dom/Document"
>     at java.security.AccessController.doPrivileged(Native Method)
>     at grails.web.container.EmbeddableServer$start.call(Unknown Source)
>     at
> _GrailsRun_groovy$_run_closure5_closure11.doCall(_GrailsRun_groovy:145)
>     at _GrailsRun_groovy$_run_closure5_closure11.doCall(_GrailsRun_groovy)
>     at
> _GrailsSettings_groovy$_run_closure10.doCall(_GrailsSettings_groovy:269)
>     at _GrailsRun_groovy$_run_closure5.doCall(_GrailsRun_groovy:137)
>     at _GrailsRun_groovy.runInline(_GrailsRun_groovy:104)
>     at _GrailsRun_groovy.this$4$runInline(_GrailsRun_groovy)
>     at _GrailsRun_groovy$_run_closure1.doCall(_GrailsRun_groovy:58)
>     at RunApp$_run_closure1.doCall(RunApp.groovy:33)
>     at gant.Gant$_dispatch_closure4.doCall(Gant.groovy:324)
>     at gant.Gant$_dispatch_closure6.doCall(Gant.groovy:334)
>     at gant.Gant$_dispatch_closure6.doCall(Gant.groovy)
>     at gant.Gant.withBuildListeners(Gant.groovy:344)
>     at gant.Gant.this$2$withBuildListeners(Gant.groovy)
>     at gant.Gant$this$2$withBuildListeners.callCurrent(Unknown Source)
>     at gant.Gant.dispatch(Gant.groovy:334)
>     at gant.Gant.this$2$dispatch(Gant.groovy)
>     at gant.Gant.invokeMethod(Gant.groovy)
>     at gant.Gant.processTargets(Gant.groovy:495)
>     at gant.Gant.processTargets(Gant.groovy:480)
> Caused by: java.lang.LinkageError: loader constraint violation: loader
> (instance of <bootloader>) previously initiated loading for a different type
> with name "org/w3c/dom/Document"
>     at
> com.sun.org.apache.xml.internal.dtm.ref.DTMManagerDefault.getDTMHandleFromNode(DTMManagerDefault.java:494)
>     at
> com.sun.org.apache.xpath.internal.XPathContext.getDTMHandleFromNode(XPathContext.java:182)
>     at com.sun.org.apache.xpath.internal.XPath.execute(XPath.java:301)
>     at
> com.sun.org.apache.xpath.internal.jaxp.XPathImpl.eval(XPathImpl.java:210)
>     at
> com.sun.org.apache.xpath.internal.jaxp.XPathImpl.evaluate(XPathImpl.java:275)
>     ... 21 more
> 2009-03-04 20:45:01,732 [main] ERROR mortbay.log  - Nested in
> org.springframework.beans.factory.BeanCreationException: Error creating bean
> with name 'pluginMetaManager' defined in ServletContext resource
> [/WEB-INF/applicationContext.xml]: Invocation of init method failed; nested
> exception is java.lang.LinkageError: loader constraint violation: loader
> (instance of <bootloader>) previously initiated loading for a different type
> with name "org/w3c/dom/Document":
> java.lang.LinkageError: loader constraint violation: loader (instance of
> <bootloader>) previously initiated loading for a different type with name
> "org/w3c/dom/Document"
>     at
> com.sun.org.apache.xml.internal.dtm.ref.DTMManagerDefault.getDTMHandleFromNode(DTMManagerDefault.java:494)
>     at
> com.sun.org.apache.xpath.internal.XPathContext.getDTMHandleFromNode(XPathContext.java:182)
>     at com.sun.org.apache.xpath.internal.XPath.execute(XPath.java:301)
>     at
> com.sun.org.apache.xpath.internal.jaxp.XPathImpl.eval(XPathImpl.java:210)
>     at
> com.sun.org.apache.xpath.internal.jaxp.XPathImpl.evaluate(XPathImpl.java:275)
>     at java.security.AccessController.doPrivileged(Native Method)
>     at grails.web.container.EmbeddableServer$start.call(Unknown Source)
>     at
> _GrailsRun_groovy$_run_closure5_closure11.doCall(_GrailsRun_groovy:145)
>     at _GrailsRun_groovy$_run_closure5_closure11.doCall(_GrailsRun_groovy)
>     at
> _GrailsSettings_groovy$_run_closure10.doCall(_GrailsSettings_groovy:269)
>     at _GrailsRun_groovy$_run_closure5.doCall(_GrailsRun_groovy:137)
>     at _GrailsRun_groovy.runInline(_GrailsRun_groovy:104)
>     at _GrailsRun_groovy.this$4$runInline(_GrailsRun_groovy)
>     at _GrailsRun_groovy$_run_closure1.doCall(_GrailsRun_groovy:58)
>     at RunApp$_run_closure1.doCall(RunApp.groovy:33)
>     at gant.Gant$_dispatch_closure4.doCall(Gant.groovy:324)
>     at gant.Gant$_dispatch_closure6.doCall(Gant.groovy:334)
>     at gant.Gant$_dispatch_closure6.doCall(Gant.groovy)
>     at gant.Gant.withBuildListeners(Gant.groovy:344)
>     at gant.Gant.this$2$withBuildListeners(Gant.groovy)
>     at gant.Gant$this$2$withBuildListeners.callCurrent(Unknown Source)
>     at gant.Gant.dispatch(Gant.groovy:334)
>     at gant.Gant.this$2$dispatch(Gant.groovy)
>     at gant.Gant.invokeMethod(Gant.groovy)
>     at gant.Gant.processTargets(Gant.groovy:495)
>     at gant.Gant.processTargets(Gant.groovy:480)
> Server running. Browse to http://localhost:8080/noctane
>
>



--
Graeme Rocher
Head of Grails Development
SpringSource - Weapons for the War on Java Complexity
http://www.springsource.com

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Linkage Error after upgrading to Grails 1.1-RC2

basejump (Josh)
I had the same issue and it was fixed when I added xerces,xalan and  
the xml-apis

but why? I can't find anything that should need it on boot.

On Mar 5, 2009, at 2:07 AM, Graeme Rocher wrote:

> You may need to add xerces/xalan into your lib directory
>
> Cheers
>
> On Thu, Mar 5, 2009 at 3:00 AM, Dave Klein
> <[hidden email]> wrote:
>> I've seen a couple other posts on this or related problems but no  
>> answers
>> yet.  But I thought I'd try anyway :-)
>>
>> I am upgrading an app from 1.03 to 1.1-RC2.  I uninstalled all the  
>> plugins,
>> upgraded the app and reinstalled the plugins.  Now I get this error  
>> when I
>> try to run the app.
>>
>> Context initialization failed
>> org.springframework.beans.factory.BeanCreationException: Error  
>> creating bean
>> with name 'pluginMetaManager' defined in ServletContext resource
>> [/WEB-INF/applicationContext.xml]: Invocation of init method  
>> failed; nested
>> exception is java.lang.LinkageError: loader constraint violation:  
>> loader
>> (instance of <bootloader>) previously initiated loading for a  
>> different type
>> with name "org/w3c/dom/Document"
>>
>> The full stack trace is below.
>>
>> Any ideas, thoughts, suggestions or well documented solutions would  
>> be very
>> appreciated.
>>
>> Thanks,
>> Dave
>>
>>
>> 2009-03-04 20:45:01,731 [main] ERROR context.ContextLoader  - Context
>> initialization failed
>> org.springframework.beans.factory.BeanCreationException: Error  
>> creating bean
>> with name 'pluginMetaManager' defined in ServletContext resource
>> [/WEB-INF/applicationContext.xml]: Invocation of init method  
>> failed; nested
>> exception is java.lang.LinkageError: loader constraint violation:  
>> loader
>> (instance of <bootloader>) previously initiated loading for a  
>> different type
>> with name "org/w3c/dom/Document"
>>     at java.security.AccessController.doPrivileged(Native Method)
>>     at grails.web.container.EmbeddableServer$start.call(Unknown  
>> Source)
>>     at
>> _GrailsRun_groovy$_run_closure5_closure11.doCall(_GrailsRun_groovy:
>> 145)
>>     at _GrailsRun_groovy
>> $_run_closure5_closure11.doCall(_GrailsRun_groovy)
>>     at
>> _GrailsSettings_groovy$_run_closure10.doCall(_GrailsSettings_groovy:
>> 269)
>>     at _GrailsRun_groovy$_run_closure5.doCall(_GrailsRun_groovy:137)
>>     at _GrailsRun_groovy.runInline(_GrailsRun_groovy:104)
>>     at _GrailsRun_groovy.this$4$runInline(_GrailsRun_groovy)
>>     at _GrailsRun_groovy$_run_closure1.doCall(_GrailsRun_groovy:58)
>>     at RunApp$_run_closure1.doCall(RunApp.groovy:33)
>>     at gant.Gant$_dispatch_closure4.doCall(Gant.groovy:324)
>>     at gant.Gant$_dispatch_closure6.doCall(Gant.groovy:334)
>>     at gant.Gant$_dispatch_closure6.doCall(Gant.groovy)
>>     at gant.Gant.withBuildListeners(Gant.groovy:344)
>>     at gant.Gant.this$2$withBuildListeners(Gant.groovy)
>>     at gant.Gant$this$2$withBuildListeners.callCurrent(Unknown  
>> Source)
>>     at gant.Gant.dispatch(Gant.groovy:334)
>>     at gant.Gant.this$2$dispatch(Gant.groovy)
>>     at gant.Gant.invokeMethod(Gant.groovy)
>>     at gant.Gant.processTargets(Gant.groovy:495)
>>     at gant.Gant.processTargets(Gant.groovy:480)
>> Caused by: java.lang.LinkageError: loader constraint violation:  
>> loader
>> (instance of <bootloader>) previously initiated loading for a  
>> different type
>> with name "org/w3c/dom/Document"
>>     at
>> com
>> .sun
>> .org
>> .apache
>> .xml
>> .internal
>> .dtm
>> .ref.DTMManagerDefault.getDTMHandleFromNode(DTMManagerDefault.java:
>> 494)
>>     at
>> com
>> .sun
>> .org
>> .apache
>> .xpath.internal.XPathContext.getDTMHandleFromNode(XPathContext.java:
>> 182)
>>     at com.sun.org.apache.xpath.internal.XPath.execute(XPath.java:
>> 301)
>>     at
>> com
>> .sun.org.apache.xpath.internal.jaxp.XPathImpl.eval(XPathImpl.java:
>> 210)
>>     at
>> com
>> .sun
>> .org.apache.xpath.internal.jaxp.XPathImpl.evaluate(XPathImpl.java:
>> 275)
>>     ... 21 more
>> 2009-03-04 20:45:01,731 [main] ERROR mortbay.log  - Failed startup of
>> context
>> org.mortbay.jetty.webapp.WebAppContext@7e32d97{/noctane,/Users/dave/
>> dev/NOC_Grails-1.1/web-app}
>> org.springframework.beans.factory.BeanCreationException: Error  
>> creating bean
>> with name 'pluginMetaManager' defined in ServletContext resource
>> [/WEB-INF/applicationContext.xml]: Invocation of init method  
>> failed; nested
>> exception is java.lang.LinkageError: loader constraint violation:  
>> loader
>> (instance of <bootloader>) previously initiated loading for a  
>> different type
>> with name "org/w3c/dom/Document"
>>     at java.security.AccessController.doPrivileged(Native Method)
>>     at grails.web.container.EmbeddableServer$start.call(Unknown  
>> Source)
>>     at
>> _GrailsRun_groovy$_run_closure5_closure11.doCall(_GrailsRun_groovy:
>> 145)
>>     at _GrailsRun_groovy
>> $_run_closure5_closure11.doCall(_GrailsRun_groovy)
>>     at
>> _GrailsSettings_groovy$_run_closure10.doCall(_GrailsSettings_groovy:
>> 269)
>>     at _GrailsRun_groovy$_run_closure5.doCall(_GrailsRun_groovy:137)
>>     at _GrailsRun_groovy.runInline(_GrailsRun_groovy:104)
>>     at _GrailsRun_groovy.this$4$runInline(_GrailsRun_groovy)
>>     at _GrailsRun_groovy$_run_closure1.doCall(_GrailsRun_groovy:58)
>>     at RunApp$_run_closure1.doCall(RunApp.groovy:33)
>>     at gant.Gant$_dispatch_closure4.doCall(Gant.groovy:324)
>>     at gant.Gant$_dispatch_closure6.doCall(Gant.groovy:334)
>>     at gant.Gant$_dispatch_closure6.doCall(Gant.groovy)
>>     at gant.Gant.withBuildListeners(Gant.groovy:344)
>>     at gant.Gant.this$2$withBuildListeners(Gant.groovy)
>>     at gant.Gant$this$2$withBuildListeners.callCurrent(Unknown  
>> Source)
>>     at gant.Gant.dispatch(Gant.groovy:334)
>>     at gant.Gant.this$2$dispatch(Gant.groovy)
>>     at gant.Gant.invokeMethod(Gant.groovy)
>>     at gant.Gant.processTargets(Gant.groovy:495)
>>     at gant.Gant.processTargets(Gant.groovy:480)
>> Caused by: java.lang.LinkageError: loader constraint violation:  
>> loader
>> (instance of <bootloader>) previously initiated loading for a  
>> different type
>> with name "org/w3c/dom/Document"
>>     at
>> com
>> .sun
>> .org
>> .apache
>> .xml
>> .internal
>> .dtm
>> .ref.DTMManagerDefault.getDTMHandleFromNode(DTMManagerDefault.java:
>> 494)
>>     at
>> com
>> .sun
>> .org
>> .apache
>> .xpath.internal.XPathContext.getDTMHandleFromNode(XPathContext.java:
>> 182)
>>     at com.sun.org.apache.xpath.internal.XPath.execute(XPath.java:
>> 301)
>>     at
>> com
>> .sun.org.apache.xpath.internal.jaxp.XPathImpl.eval(XPathImpl.java:
>> 210)
>>     at
>> com
>> .sun
>> .org.apache.xpath.internal.jaxp.XPathImpl.evaluate(XPathImpl.java:
>> 275)
>>     ... 21 more
>> 2009-03-04 20:45:01,732 [main] ERROR mortbay.log  - Nested in
>> org.springframework.beans.factory.BeanCreationException: Error  
>> creating bean
>> with name 'pluginMetaManager' defined in ServletContext resource
>> [/WEB-INF/applicationContext.xml]: Invocation of init method  
>> failed; nested
>> exception is java.lang.LinkageError: loader constraint violation:  
>> loader
>> (instance of <bootloader>) previously initiated loading for a  
>> different type
>> with name "org/w3c/dom/Document":
>> java.lang.LinkageError: loader constraint violation: loader  
>> (instance of
>> <bootloader>) previously initiated loading for a different type  
>> with name
>> "org/w3c/dom/Document"
>>     at
>> com
>> .sun
>> .org
>> .apache
>> .xml
>> .internal
>> .dtm
>> .ref.DTMManagerDefault.getDTMHandleFromNode(DTMManagerDefault.java:
>> 494)
>>     at
>> com
>> .sun
>> .org
>> .apache
>> .xpath.internal.XPathContext.getDTMHandleFromNode(XPathContext.java:
>> 182)
>>     at com.sun.org.apache.xpath.internal.XPath.execute(XPath.java:
>> 301)
>>     at
>> com
>> .sun.org.apache.xpath.internal.jaxp.XPathImpl.eval(XPathImpl.java:
>> 210)
>>     at
>> com
>> .sun
>> .org.apache.xpath.internal.jaxp.XPathImpl.evaluate(XPathImpl.java:
>> 275)
>>     at java.security.AccessController.doPrivileged(Native Method)
>>     at grails.web.container.EmbeddableServer$start.call(Unknown  
>> Source)
>>     at
>> _GrailsRun_groovy$_run_closure5_closure11.doCall(_GrailsRun_groovy:
>> 145)
>>     at _GrailsRun_groovy
>> $_run_closure5_closure11.doCall(_GrailsRun_groovy)
>>     at
>> _GrailsSettings_groovy$_run_closure10.doCall(_GrailsSettings_groovy:
>> 269)
>>     at _GrailsRun_groovy$_run_closure5.doCall(_GrailsRun_groovy:137)
>>     at _GrailsRun_groovy.runInline(_GrailsRun_groovy:104)
>>     at _GrailsRun_groovy.this$4$runInline(_GrailsRun_groovy)
>>     at _GrailsRun_groovy$_run_closure1.doCall(_GrailsRun_groovy:58)
>>     at RunApp$_run_closure1.doCall(RunApp.groovy:33)
>>     at gant.Gant$_dispatch_closure4.doCall(Gant.groovy:324)
>>     at gant.Gant$_dispatch_closure6.doCall(Gant.groovy:334)
>>     at gant.Gant$_dispatch_closure6.doCall(Gant.groovy)
>>     at gant.Gant.withBuildListeners(Gant.groovy:344)
>>     at gant.Gant.this$2$withBuildListeners(Gant.groovy)
>>     at gant.Gant$this$2$withBuildListeners.callCurrent(Unknown  
>> Source)
>>     at gant.Gant.dispatch(Gant.groovy:334)
>>     at gant.Gant.this$2$dispatch(Gant.groovy)
>>     at gant.Gant.invokeMethod(Gant.groovy)
>>     at gant.Gant.processTargets(Gant.groovy:495)
>>     at gant.Gant.processTargets(Gant.groovy:480)
>> Server running. Browse to http://localhost:8080/noctane
>>
>>
>
>
>
> --
> Graeme Rocher
> Head of Grails Development
> SpringSource - Weapons for the War on Java Complexity
> http://www.springsource.com
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>    http://xircles.codehaus.org/manage_email
>
>


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Linkage Error after upgrading to Grails 1.1-RC2

tramuntanal
I had this problem when adding hibernate-anotations and its
dependencies libs to the project.

2009/3/6 Joshua Burnett <[hidden email]>:

> I had the same issue and it was fixed when I added xerces,xalan and the
> xml-apis
>
> but why? I can't find anything that should need it on boot.
>
> On Mar 5, 2009, at 2:07 AM, Graeme Rocher wrote:
>
>> You may need to add xerces/xalan into your lib directory
>>
>> Cheers
>>
>> On Thu, Mar 5, 2009 at 3:00 AM, Dave Klein
>> <[hidden email]> wrote:
>>>
>>> I've seen a couple other posts on this or related problems but no answers
>>> yet.  But I thought I'd try anyway :-)
>>>
>>> I am upgrading an app from 1.03 to 1.1-RC2.  I uninstalled all the
>>> plugins,
>>> upgraded the app and reinstalled the plugins.  Now I get this error when
>>> I
>>> try to run the app.
>>>
>>> Context initialization failed
>>> org.springframework.beans.factory.BeanCreationException: Error creating
>>> bean
>>> with name 'pluginMetaManager' defined in ServletContext resource
>>> [/WEB-INF/applicationContext.xml]: Invocation of init method failed;
>>> nested
>>> exception is java.lang.LinkageError: loader constraint violation: loader
>>> (instance of <bootloader>) previously initiated loading for a different
>>> type
>>> with name "org/w3c/dom/Document"
>>>
>>> The full stack trace is below.
>>>
>>> Any ideas, thoughts, suggestions or well documented solutions would be
>>> very
>>> appreciated.
>>>
>>> Thanks,
>>> Dave
>>>
>>>
>>> 2009-03-04 20:45:01,731 [main] ERROR context.ContextLoader  - Context
>>> initialization failed
>>> org.springframework.beans.factory.BeanCreationException: Error creating
>>> bean
>>> with name 'pluginMetaManager' defined in ServletContext resource
>>> [/WEB-INF/applicationContext.xml]: Invocation of init method failed;
>>> nested
>>> exception is java.lang.LinkageError: loader constraint violation: loader
>>> (instance of <bootloader>) previously initiated loading for a different
>>> type
>>> with name "org/w3c/dom/Document"
>>>    at java.security.AccessController.doPrivileged(Native Method)
>>>    at grails.web.container.EmbeddableServer$start.call(Unknown Source)
>>>    at
>>> _GrailsRun_groovy$_run_closure5_closure11.doCall(_GrailsRun_groovy:145)
>>>    at _GrailsRun_groovy$_run_closure5_closure11.doCall(_GrailsRun_groovy)
>>>    at
>>> _GrailsSettings_groovy$_run_closure10.doCall(_GrailsSettings_groovy:269)
>>>    at _GrailsRun_groovy$_run_closure5.doCall(_GrailsRun_groovy:137)
>>>    at _GrailsRun_groovy.runInline(_GrailsRun_groovy:104)
>>>    at _GrailsRun_groovy.this$4$runInline(_GrailsRun_groovy)
>>>    at _GrailsRun_groovy$_run_closure1.doCall(_GrailsRun_groovy:58)
>>>    at RunApp$_run_closure1.doCall(RunApp.groovy:33)
>>>    at gant.Gant$_dispatch_closure4.doCall(Gant.groovy:324)
>>>    at gant.Gant$_dispatch_closure6.doCall(Gant.groovy:334)
>>>    at gant.Gant$_dispatch_closure6.doCall(Gant.groovy)
>>>    at gant.Gant.withBuildListeners(Gant.groovy:344)
>>>    at gant.Gant.this$2$withBuildListeners(Gant.groovy)
>>>    at gant.Gant$this$2$withBuildListeners.callCurrent(Unknown Source)
>>>    at gant.Gant.dispatch(Gant.groovy:334)
>>>    at gant.Gant.this$2$dispatch(Gant.groovy)
>>>    at gant.Gant.invokeMethod(Gant.groovy)
>>>    at gant.Gant.processTargets(Gant.groovy:495)
>>>    at gant.Gant.processTargets(Gant.groovy:480)
>>> Caused by: java.lang.LinkageError: loader constraint violation: loader
>>> (instance of <bootloader>) previously initiated loading for a different
>>> type
>>> with name "org/w3c/dom/Document"
>>>    at
>>>
>>> com.sun.org.apache.xml.internal.dtm.ref.DTMManagerDefault.getDTMHandleFromNode(DTMManagerDefault.java:494)
>>>    at
>>>
>>> com.sun.org.apache.xpath.internal.XPathContext.getDTMHandleFromNode(XPathContext.java:182)
>>>    at com.sun.org.apache.xpath.internal.XPath.execute(XPath.java:301)
>>>    at
>>> com.sun.org.apache.xpath.internal.jaxp.XPathImpl.eval(XPathImpl.java:210)
>>>    at
>>>
>>> com.sun.org.apache.xpath.internal.jaxp.XPathImpl.evaluate(XPathImpl.java:275)
>>>    ... 21 more
>>> 2009-03-04 20:45:01,731 [main] ERROR mortbay.log  - Failed startup of
>>> context
>>>
>>> org.mortbay.jetty.webapp.WebAppContext@7e32d97{/noctane,/Users/dave/dev/NOC_Grails-1.1/web-app}
>>> org.springframework.beans.factory.BeanCreationException: Error creating
>>> bean
>>> with name 'pluginMetaManager' defined in ServletContext resource
>>> [/WEB-INF/applicationContext.xml]: Invocation of init method failed;
>>> nested
>>> exception is java.lang.LinkageError: loader constraint violation: loader
>>> (instance of <bootloader>) previously initiated loading for a different
>>> type
>>> with name "org/w3c/dom/Document"
>>>    at java.security.AccessController.doPrivileged(Native Method)
>>>    at grails.web.container.EmbeddableServer$start.call(Unknown Source)
>>>    at
>>> _GrailsRun_groovy$_run_closure5_closure11.doCall(_GrailsRun_groovy:145)
>>>    at _GrailsRun_groovy$_run_closure5_closure11.doCall(_GrailsRun_groovy)
>>>    at
>>> _GrailsSettings_groovy$_run_closure10.doCall(_GrailsSettings_groovy:269)
>>>    at _GrailsRun_groovy$_run_closure5.doCall(_GrailsRun_groovy:137)
>>>    at _GrailsRun_groovy.runInline(_GrailsRun_groovy:104)
>>>    at _GrailsRun_groovy.this$4$runInline(_GrailsRun_groovy)
>>>    at _GrailsRun_groovy$_run_closure1.doCall(_GrailsRun_groovy:58)
>>>    at RunApp$_run_closure1.doCall(RunApp.groovy:33)
>>>    at gant.Gant$_dispatch_closure4.doCall(Gant.groovy:324)
>>>    at gant.Gant$_dispatch_closure6.doCall(Gant.groovy:334)
>>>    at gant.Gant$_dispatch_closure6.doCall(Gant.groovy)
>>>    at gant.Gant.withBuildListeners(Gant.groovy:344)
>>>    at gant.Gant.this$2$withBuildListeners(Gant.groovy)
>>>    at gant.Gant$this$2$withBuildListeners.callCurrent(Unknown Source)
>>>    at gant.Gant.dispatch(Gant.groovy:334)
>>>    at gant.Gant.this$2$dispatch(Gant.groovy)
>>>    at gant.Gant.invokeMethod(Gant.groovy)
>>>    at gant.Gant.processTargets(Gant.groovy:495)
>>>    at gant.Gant.processTargets(Gant.groovy:480)
>>> Caused by: java.lang.LinkageError: loader constraint violation: loader
>>> (instance of <bootloader>) previously initiated loading for a different
>>> type
>>> with name "org/w3c/dom/Document"
>>>    at
>>>
>>> com.sun.org.apache.xml.internal.dtm.ref.DTMManagerDefault.getDTMHandleFromNode(DTMManagerDefault.java:494)
>>>    at
>>>
>>> com.sun.org.apache.xpath.internal.XPathContext.getDTMHandleFromNode(XPathContext.java:182)
>>>    at com.sun.org.apache.xpath.internal.XPath.execute(XPath.java:301)
>>>    at
>>> com.sun.org.apache.xpath.internal.jaxp.XPathImpl.eval(XPathImpl.java:210)
>>>    at
>>>
>>> com.sun.org.apache.xpath.internal.jaxp.XPathImpl.evaluate(XPathImpl.java:275)
>>>    ... 21 more
>>> 2009-03-04 20:45:01,732 [main] ERROR mortbay.log  - Nested in
>>> org.springframework.beans.factory.BeanCreationException: Error creating
>>> bean
>>> with name 'pluginMetaManager' defined in ServletContext resource
>>> [/WEB-INF/applicationContext.xml]: Invocation of init method failed;
>>> nested
>>> exception is java.lang.LinkageError: loader constraint violation: loader
>>> (instance of <bootloader>) previously initiated loading for a different
>>> type
>>> with name "org/w3c/dom/Document":
>>> java.lang.LinkageError: loader constraint violation: loader (instance of
>>> <bootloader>) previously initiated loading for a different type with name
>>> "org/w3c/dom/Document"
>>>    at
>>>
>>> com.sun.org.apache.xml.internal.dtm.ref.DTMManagerDefault.getDTMHandleFromNode(DTMManagerDefault.java:494)
>>>    at
>>>
>>> com.sun.org.apache.xpath.internal.XPathContext.getDTMHandleFromNode(XPathContext.java:182)
>>>    at com.sun.org.apache.xpath.internal.XPath.execute(XPath.java:301)
>>>    at
>>> com.sun.org.apache.xpath.internal.jaxp.XPathImpl.eval(XPathImpl.java:210)
>>>    at
>>>
>>> com.sun.org.apache.xpath.internal.jaxp.XPathImpl.evaluate(XPathImpl.java:275)
>>>    at java.security.AccessController.doPrivileged(Native Method)
>>>    at grails.web.container.EmbeddableServer$start.call(Unknown Source)
>>>    at
>>> _GrailsRun_groovy$_run_closure5_closure11.doCall(_GrailsRun_groovy:145)
>>>    at _GrailsRun_groovy$_run_closure5_closure11.doCall(_GrailsRun_groovy)
>>>    at
>>> _GrailsSettings_groovy$_run_closure10.doCall(_GrailsSettings_groovy:269)
>>>    at _GrailsRun_groovy$_run_closure5.doCall(_GrailsRun_groovy:137)
>>>    at _GrailsRun_groovy.runInline(_GrailsRun_groovy:104)
>>>    at _GrailsRun_groovy.this$4$runInline(_GrailsRun_groovy)
>>>    at _GrailsRun_groovy$_run_closure1.doCall(_GrailsRun_groovy:58)
>>>    at RunApp$_run_closure1.doCall(RunApp.groovy:33)
>>>    at gant.Gant$_dispatch_closure4.doCall(Gant.groovy:324)
>>>    at gant.Gant$_dispatch_closure6.doCall(Gant.groovy:334)
>>>    at gant.Gant$_dispatch_closure6.doCall(Gant.groovy)
>>>    at gant.Gant.withBuildListeners(Gant.groovy:344)
>>>    at gant.Gant.this$2$withBuildListeners(Gant.groovy)
>>>    at gant.Gant$this$2$withBuildListeners.callCurrent(Unknown Source)
>>>    at gant.Gant.dispatch(Gant.groovy:334)
>>>    at gant.Gant.this$2$dispatch(Gant.groovy)
>>>    at gant.Gant.invokeMethod(Gant.groovy)
>>>    at gant.Gant.processTargets(Gant.groovy:495)
>>>    at gant.Gant.processTargets(Gant.groovy:480)
>>> Server running. Browse to http://localhost:8080/noctane
>>>
>>>
>>
>>
>>
>> --
>> Graeme Rocher
>> Head of Grails Development
>> SpringSource - Weapons for the War on Java Complexity
>> http://www.springsource.com
>>
>> ---------------------------------------------------------------------
>> To unsubscribe from this list, please visit:
>>
>>   http://xircles.codehaus.org/manage_email
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>   http://xircles.codehaus.org/manage_email
>
>
>



--
------------------------------------
Oliver Hernàndez Valls

wiki.tramuntanal.cat
www.tramuntanal.cat

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Linkage Error after upgrading to Grails 1.1-RC2

pledbrook
In reply to this post by Dave Klein-2
> The full stack trace is below.
>
> Any ideas, thoughts, suggestions or well documented solutions would be very
> appreciated.

Check whether any of the plugins include "xml-apis*.jar",
"xmlParserAPI*.jar", or anything similar. The Axis2 plugin is one
example. Those libraries should be removed. The problem is that the
Grails scripts are loading the "org.w3c.*" classes from the JDK and
any provided by other JARs conflict.

This specific problem should be fixed once the embedded server uses
its own class loader rather than the Gant one, but it seemed too
dangerous to make that change in time for the 1.1 release. Hopefully
we can do it for 1.2. In the meantime, remove any suspect XML
libraries. I usually do something like:

  jar tf suspect.jar | fgrep "org.w3c"

Cheers,

Peter

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Loading...