Search code examples
grailsbuildconfigbatik

Grails - Batik.jar interaction


An external Library need the Batik.jar Library. But on Loading it outputs: java.lang.LinkageError: loader constraint violation: loader (instance of ) previously initiated loading for a different type with name "org/xml/sax/SAXParseException"

I tried modifying the build config.groovy file to exclude xml-apis but it didnt work. Any workaround for using batik?


Solution

  • I faced the same problem , I've manually looked for all ivy*.xml files in %User%\.ivy2\cache\org.apache.xmlgraphics and deleted the following entry :

    <dependency org="xml-apis" name="xml-apis" rev="1.3.04" force="true" conf="compile->compile(*),master(*);runtime->runtime(*)"/>