Trying to integrate support for Oracle XMLDB in a grails app didn’t turn out to be as straightforward as you might think.  By putting the xmlparserv2.jar file in the $GRAILS_HOME/lib folder I was suddenly presented with SAX parse errors…

Luckily I stumbled across this post by Graeme Rocher who had a similar problem and identified how to resolve it…

Essentially to solve the problem, you need to make sure that library is only picked up at runtime, and not compile time.   You need to put the xmlparserv2.jar on the system classpath instead of the lib directory.

1) When running standalone from grails command line:
 grails -cp lib/runtime/xmlparserv2.jar run-app or modifying the CLASSPATH environment variable

2) When running from within a container, add the .jar to the lib folder
(ie: $TOMCAT_HOME/lib)

Another possible solution is documented here.