> Hi folks,
Hi Greg,
> When I include batik-svg-dom using:
> dependencies {
> compile('org.apache.xmlgraphics:batik-svg-dom:1.7') {
> excludes 'xml-apis', 'xml-apis-ext'
> }
> }
>
> Grails reports:
>
> | Loading Grails 2.1.0
> | Configuring classpath
> | Error Error executing script Help: loader constraint violation: when
> resolving overridden method
> "org.apache.tools.ant.helper.ProjectHelper2$RootHandler.setDocumentLocator(Lorg/xml/sax/Locator;)V"
> the class loader (instance of
> org/codehaus/groovy/grails/cli/support/GrailsRootLoader) of the current
> class, org/apache/tools/ant/helper/ProjectHelper2$RootHandler, and its
> superclass loader (instance of <bootloader>), have different Class objects
> for the type org/xml/sax/Locator used in the signature (Use --stacktrace to
> see the full trace)
Without knowing anything from Grails infrastructure, I'd say you're
suffering from the fact that Batik ships [1] an XML parser for support
of "older" Java versions (i.e., <1.5).
You may attempt to leave xerces [2] out (I don't recall by memory if
that's possible without further trickery) and, if you know that Java
1.5+ will always be in use, than xalan [3] also can be removed
(without any negative impact AFAIK).
Please refer to the dependency graph [1] for additional information.
> Any advice would be appreciated.
>
> Regards,
>
> Greg
Hope this helps,
Helder
[1] http://xmlgraphics.apache.org/batik/install.html#dependencyGraph
[2]
http://batik.2283329.n4.nabble.com/why-rename-xercesImpl-jar-to-xerces-2-5-0-jar-td2978003.html
[3]
http://batik.2283329.n4.nabble.com/minimal-classes-needed-to-use-JSVGCanvas-in-applet-td2977602.html
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]