2
votes

When i imported a project of version 2.2.1 in grails 2.1.1 it shows me this error, could anyone suggest me a solution for this

Error Error executing script Compile:

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 ), have different Class objects for the type org/xml/sax/Locator used in the signature

1

1 Answers

2
votes

That particular error is usually due to something that has a transitive dependency on xml-apis (which has not been necessary since Java 5), and can be fixed by looking at the results of grails dependency-report and adding the relevant excludes to your BuildConfig dependencies.