Grails 1.3.3 rest and axis2

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Grails 1.3.3 rest and axis2

bob@jadn.com

I'm trying to use grails in a project which uses both rest stuff and axis2 stuff.   Is there some well known xml stack incompatibility that doesnt let you mix these two things?

Thanks
-bob

   $ grails create-app app
   $ cd app
   $ grails install rest
   $ grails install axis2
   $ grails run-app
...
Running Grails application..
2010-08-07 21:35:19,645 [main] ERROR context.GrailsContextLoader  - Error executing bootstraps: java.lang.LinkageError: loader constraint violation: loader (instance of <bootloader>) previously initiated loading for a different type with name "org/w3c/dom/DOMConfiguration"
org.codehaus.groovy.runtime.InvokerInvocationException: java.lang.LinkageError: loader constraint violation: loader (instance of <bootloader>) previously initiated loading for a different type with name "org/w3c/dom/DOMConfiguration"
        at grails.spring.BeanBuilder.invokeBeanDefiningClosure(BeanBuilder.java:723)
        at grails.spring.BeanBuilder.beans(BeanBuilder.java:573)
        at grails.spring.BeanBuilder.invokeMethod(BeanBuilder.java:519)
        at org.grails.tomcat.TomcatServer.start(TomcatServer.groovy:164)
        at grails.web.container.EmbeddableServer$start.call(Unknown Source)
        at _GrailsRun_groovy$_run_closure5_closure12.doCall(_GrailsRun_groovy:158)
        at _GrailsRun_groovy$_run_closure5_closure12.doCall(_GrailsRun_groovy)
        at _GrailsSettings_groovy$_run_closure10.doCall(_GrailsSettings_groovy:280)
        at _GrailsSettings_groovy$_run_closure10.call(_GrailsSettings_groovy)
        at _GrailsRun_groovy$_run_closure5.doCall(_GrailsRun_groovy:149)
        at _GrailsRun_groovy$_run_closure5.call(_GrailsRun_groovy)
        at _GrailsRun_groovy.runInline(_GrailsRun_groovy:116)
        at _GrailsRun_groovy.this$4$runInline(_GrailsRun_groovy)
        at _GrailsRun_groovy$_run_closure1.doCall(_GrailsRun_groovy:59)
        at RunApp$_run_closure1.doCall(RunApp.groovy:33)
        at gant.Gant$_dispatch_closure5.doCall(Gant.groovy:381)
        at gant.Gant$_dispatch_closure7.doCall(Gant.groovy:415)
        at gant.Gant$_dispatch_closure7.doCall(Gant.groovy)
        at gant.Gant.withBuildListeners(Gant.groovy:427)
        at gant.Gant.this$2$withBuildListeners(Gant.groovy)
        at gant.Gant$this$2$withBuildListeners.callCurrent(Unknown Source)
        at gant.Gant.dispatch(Gant.groovy:415)
        at gant.Gant.this$2$dispatch(Gant.groovy)
        at gant.Gant.invokeMethod(Gant.groovy)
        at gant.Gant.executeTargets(Gant.groovy:590)
        at gant.Gant.executeTargets(Gant.groovy:589)
Caused by: java.lang.LinkageError: loader constraint violation: loader (instance of <bootloader>) previously initiated loading for a different type with name "org/w3c/dom/DOMConfiguration"
        at java.lang.Class.getDeclaredMethods0(Native Method)
        at java.lang.Class.privateGetDeclaredMethods(Class.java:2427)
        at java.lang.Class.getDeclaredMethods(Class.java:1791)
        at java.security.AccessController.doPrivileged(Native Method)
        at org.codehaus.groovy.util.LazyReference.getLocked(LazyReference.java:46)
        at org.codehaus.groovy.util.LazyReference.get(LazyReference.java:33)
        at grails.spring.DynamicElementReader.invokeMethod(DynamicElementReader.groovy:121)
        ... 26 more
Reply | Threaded
Open this post in threaded view
|

Re: Grails 1.3.3 rest and axis2

rlovtangen
org/w3c/dom/DOMConfiguration is part of Java 6.
It's also in xml-apis:xml:apis and org.apache.xmlbeans:xmlbeans, so you may have to exclude those to avoid duplicates.
I guess they are pulled in by one, or both, of the plugins.

Ronny

On Aug 8, 2010, at 3:39 AM, [hidden email] wrote:

>
>
> I'm trying to use grails in a project which uses both rest stuff and axis2
> stuff.   Is there some well known xml stack incompatibility that doesnt let
> you mix these two things?
>
> Thanks
> -bob
>
>   $ grails create-app app
>   $ cd app
>   $ grails install rest
>   $ grails install axis2
>   $ grails run-app
> ...
> Running Grails application..
> 2010-08-07 21:35:19,645 [main] ERROR context.GrailsContextLoader  - Error
> executing bootstraps: java.lang.LinkageError: loader constraint violation:
> loader (instance of <bootloader>) previously initiated loading for a
> different type with name "org/w3c/dom/DOMConfiguration"
> org.codehaus.groovy.runtime.InvokerInvocationException:
> java.lang.LinkageError: loader constraint violation: loader (instance of
> <bootloader>) previously initiated loading for a different type with name
> "org/w3c/dom/DOMConfiguration"
> at
> grails.spring.BeanBuilder.invokeBeanDefiningClosure(BeanBuilder.java:723)
> at grails.spring.BeanBuilder.beans(BeanBuilder.java:573)
> at grails.spring.BeanBuilder.invokeMethod(BeanBuilder.java:519)
> at org.grails.tomcat.TomcatServer.start(TomcatServer.groovy:164)
> at grails.web.container.EmbeddableServer$start.call(Unknown Source)
> at _GrailsRun_groovy$_run_closure5_closure12.doCall(_GrailsRun_groovy:158)
> at _GrailsRun_groovy$_run_closure5_closure12.doCall(_GrailsRun_groovy)
> at _GrailsSettings_groovy$_run_closure10.doCall(_GrailsSettings_groovy:280)
> at _GrailsSettings_groovy$_run_closure10.call(_GrailsSettings_groovy)
> at _GrailsRun_groovy$_run_closure5.doCall(_GrailsRun_groovy:149)
> at _GrailsRun_groovy$_run_closure5.call(_GrailsRun_groovy)
> at _GrailsRun_groovy.runInline(_GrailsRun_groovy:116)
> at _GrailsRun_groovy.this$4$runInline(_GrailsRun_groovy)
> at _GrailsRun_groovy$_run_closure1.doCall(_GrailsRun_groovy:59)
> at RunApp$_run_closure1.doCall(RunApp.groovy:33)
> at gant.Gant$_dispatch_closure5.doCall(Gant.groovy:381)
> at gant.Gant$_dispatch_closure7.doCall(Gant.groovy:415)
> at gant.Gant$_dispatch_closure7.doCall(Gant.groovy)
> at gant.Gant.withBuildListeners(Gant.groovy:427)
> at gant.Gant.this$2$withBuildListeners(Gant.groovy)
> at gant.Gant$this$2$withBuildListeners.callCurrent(Unknown Source)
> at gant.Gant.dispatch(Gant.groovy:415)
> at gant.Gant.this$2$dispatch(Gant.groovy)
> at gant.Gant.invokeMethod(Gant.groovy)
> at gant.Gant.executeTargets(Gant.groovy:590)
> at gant.Gant.executeTargets(Gant.groovy:589)
> Caused by: java.lang.LinkageError: loader constraint violation: loader
> (instance of <bootloader>) previously initiated loading for a different type
> with name "org/w3c/dom/DOMConfiguration"
> at java.lang.Class.getDeclaredMethods0(Native Method)
> at java.lang.Class.privateGetDeclaredMethods(Class.java:2427)
> at java.lang.Class.getDeclaredMethods(Class.java:1791)
> at java.security.AccessController.doPrivileged(Native Method)
> at org.codehaus.groovy.util.LazyReference.getLocked(LazyReference.java:46)
> at org.codehaus.groovy.util.LazyReference.get(LazyReference.java:33)
> at
> grails.spring.DynamicElementReader.invokeMethod(DynamicElementReader.groovy:121)
> ... 26 more
>
> --
> View this message in context: http://grails.1312388.n4.nabble.com/Grails-1-3-3-rest-and-axis2-tp2317542p2317542.html
> Sent from the Grails - user mailing list archive at Nabble.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
|

RE: Grails 1.3.3 rest and axis2

SanjayGupta
In reply to this post by bob@jadn.com
Hi Bob,

I remember having problem xalan-2.7.0.jar. Try removing it.

Sanjay

-----Original Message-----
From: [hidden email] [mailto:[hidden email]]
Sent: Saturday, August 07, 2010 6:40 PM
To: [hidden email]
Subject: [grails-user] Grails 1.3.3 rest and axis2



I'm trying to use grails in a project which uses both rest stuff and axis2
stuff.   Is there some well known xml stack incompatibility that doesnt let
you mix these two things?

Thanks
-bob

   $ grails create-app app
   $ cd app
   $ grails install rest
   $ grails install axis2
   $ grails run-app
...
Running Grails application..
2010-08-07 21:35:19,645 [main] ERROR context.GrailsContextLoader  - Error
executing bootstraps: java.lang.LinkageError: loader constraint violation:
loader (instance of <bootloader>) previously initiated loading for a
different type with name "org/w3c/dom/DOMConfiguration"
org.codehaus.groovy.runtime.InvokerInvocationException:
java.lang.LinkageError: loader constraint violation: loader (instance of
<bootloader>) previously initiated loading for a different type with name
"org/w3c/dom/DOMConfiguration"
        at
grails.spring.BeanBuilder.invokeBeanDefiningClosure(BeanBuilder.java:723)
        at grails.spring.BeanBuilder.beans(BeanBuilder.java:573)
        at grails.spring.BeanBuilder.invokeMethod(BeanBuilder.java:519)
        at org.grails.tomcat.TomcatServer.start(TomcatServer.groovy:164)
        at grails.web.container.EmbeddableServer$start.call(Unknown Source)
        at _GrailsRun_groovy$_run_closure5_closure12.doCall(_GrailsRun_groovy:158)
        at _GrailsRun_groovy$_run_closure5_closure12.doCall(_GrailsRun_groovy)
        at _GrailsSettings_groovy$_run_closure10.doCall(_GrailsSettings_groovy:280)
        at _GrailsSettings_groovy$_run_closure10.call(_GrailsSettings_groovy)
        at _GrailsRun_groovy$_run_closure5.doCall(_GrailsRun_groovy:149)
        at _GrailsRun_groovy$_run_closure5.call(_GrailsRun_groovy)
        at _GrailsRun_groovy.runInline(_GrailsRun_groovy:116)
        at _GrailsRun_groovy.this$4$runInline(_GrailsRun_groovy)
        at _GrailsRun_groovy$_run_closure1.doCall(_GrailsRun_groovy:59)
        at RunApp$_run_closure1.doCall(RunApp.groovy:33)
        at gant.Gant$_dispatch_closure5.doCall(Gant.groovy:381)
        at gant.Gant$_dispatch_closure7.doCall(Gant.groovy:415)
        at gant.Gant$_dispatch_closure7.doCall(Gant.groovy)
        at gant.Gant.withBuildListeners(Gant.groovy:427)
        at gant.Gant.this$2$withBuildListeners(Gant.groovy)
        at gant.Gant$this$2$withBuildListeners.callCurrent(Unknown Source)
        at gant.Gant.dispatch(Gant.groovy:415)
        at gant.Gant.this$2$dispatch(Gant.groovy)
        at gant.Gant.invokeMethod(Gant.groovy)
        at gant.Gant.executeTargets(Gant.groovy:590)
        at gant.Gant.executeTargets(Gant.groovy:589)
Caused by: java.lang.LinkageError: loader constraint violation: loader
(instance of <bootloader>) previously initiated loading for a different type
with name "org/w3c/dom/DOMConfiguration"
        at java.lang.Class.getDeclaredMethods0(Native Method)
        at java.lang.Class.privateGetDeclaredMethods(Class.java:2427)
        at java.lang.Class.getDeclaredMethods(Class.java:1791)
        at java.security.AccessController.doPrivileged(Native Method)
        at org.codehaus.groovy.util.LazyReference.getLocked(LazyReference.java:46)
        at org.codehaus.groovy.util.LazyReference.get(LazyReference.java:33)
        at
grails.spring.DynamicElementReader.invokeMethod(DynamicElementReader.groovy:121)
        ... 26 more

--
View this message in context: http://grails.1312388.n4.nabble.com/Grails-1-3-3-rest-and-axis2-tp2317542p2317542.html
Sent from the Grails - user mailing list archive at Nabble.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