|
View:
New views
2 Messages
—
Rating Filter:
Alert me
|
|
|
LinkageError while releasing a pluginI've encountered the following problem when attempting a release of the grails-rest plugin
Error executing script ReleasePlugin: 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 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:33) at org.codehaus.groovy.util.LazyReference.get(LazyReference.java:20) at _PluginDependencies_groovy$_run_closure8.doCall(_PluginDependencies_groovy:573) at ReleasePlugin$_run_closure4.doCall(ReleasePlugin.groovy:148) at ReleasePlugin$_run_closure3.doCall(ReleasePlugin.groovy:132) at ReleasePlugin$_run_closure1.doCall(ReleasePlugin.groovy:42) 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) this error appears when the plugin list metadata is about to be parsed. The plugin bundles xercesImpl-28.1, xml-apis-1.3.03 and xml-resolver-1.2. Removing xercesImpl solves the problem but cripples the plugin. Any leads are appreciated. Thank you! |
|
|
Re: LinkageError while releasing a pluginGrails doesn't like it when xerces is not on the system classpath,
unfortunately we haven't found a good way around this problem. The only one I can think of is to avoid using the DOM APIs all together for the framework itself You may be able to work around your problem by setting your system classpath to include your versions of xerces and xalan or by putting them in your Java endorsed lib and using the java.endorsed system property thing Regards On Thu, Oct 15, 2009 at 12:29 AM, Andres Almiray <aalmiray@...> wrote: > > I've encountered the following problem when attempting a release of the > grails-rest plugin > > Error executing script ReleasePlugin: 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 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:33) > at org.codehaus.groovy.util.LazyReference.get(LazyReference.java:20) > at > _PluginDependencies_groovy$_run_closure8.doCall(_PluginDependencies_groovy:573) > at ReleasePlugin$_run_closure4.doCall(ReleasePlugin.groovy:148) > at ReleasePlugin$_run_closure3.doCall(ReleasePlugin.groovy:132) > at ReleasePlugin$_run_closure1.doCall(ReleasePlugin.groovy:42) > 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) > > this error appears when the plugin list metadata is about to be parsed. > The plugin bundles xercesImpl-28.1, xml-apis-1.3.03 and xml-resolver-1.2. > Removing xercesImpl solves the problem but cripples the plugin. > > Any leads are appreciated. > Thank you! > -- > View this message in context: http://www.nabble.com/LinkageError-while-releasing-a-plugin-tp25900037p25900037.html > Sent from the grails - dev mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe from this list, please visit: > > http://xircles.codehaus.org/manage_email > > > -- 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 |
| Free embeddable forum powered by Nabble | Forum Help |