|
Hi,
I have the same problem as described by Alex here: http://grails.1312388.n4.nabble.com/XML-troubles-td1338269.html I use java version "1.7.0_147-icedtea" and grails version 2.0.1. I tried to exclude several xml related apis for the plugin: compile(":cxf:0.9.0") { excludes ("jaxb-impl", "stax-api", "stax2-api", "xml-apis", "xmlrpc", 'xerces') } And globally: excludes ( "xml-apis", "commons-digester") but had no success so far. I also searched my repositories for jars containing the class DatatypeConstants, but only found xml-apis inside my local maven repository - which is excluded. I have no idea how the class is pulled in and by which jar (besides rt.jar from java runtime). Would be great if anyone could help me out here. Cheers Florian --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|
On 20/03/2012 10:28, Florian Beckmann wrote:
> I also searched my repositories > for jars containing the class DatatypeConstants, but only found > xml-apis inside my local maven repository - which is excluded. > > I have no idea how the class is pulled in and by which jar (besides rt.jar > from java runtime). Would be great if anyone could help me out here. The error message isn't as clear as it could be but I *think* the class you should be looking for is javax.xml.namespace.QName rather than DatatypeConstants. That one crops up in a few other places too, such as xpp3. Ian -- Ian Roberts | Department of Computer Science [hidden email] | University of Sheffield, UK --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|
Hi,
On Tuesday 20 March 2012 11:42:59 you wrote: > The error message isn't as clear as it could be but I *think* the class > you should be looking for is javax.xml.namespace.QName rather than > DatatypeConstants. That one crops up in a few other places too, such as > xpp3. Thank you very much. I searched all jars in my local maven repository for QName and found axis-jaxrpc-1.4.jar which is pulled in by a dependent project, according to the dependency-report. After excluding the jar from the dependency the exception doesn't come up anymore. Cheers Florian --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|
In reply to this post by Florian Beckmann
I think you will benefit if you locate the jar that contains the
class. I use a little shell script to do this. First of all generate the war file. Then unwar it in some directory. Then run make the following script available to your shell in one way or the other: jargrep() { if [ -z "$1" ] then echo "Please, provide the pattern you are trying to grep for in jar tvf output." return fi for f in `find . -name '*.jar'`; do JAR_MATCH=`jar tvf $f | grep $1` if [ -n "$JAR_MATCH" ] then echo "" echo "$f -> has matche/s" echo "$JAR_MATCH" else echo -ne "." fi done } Change to the directory where you unjarred your war and run it as follows: jargrep javax\/xml\/namespace\/QName\.class This will show you all the jars that contain the class. Note, that JDK 5 and greater have this class as well. You need to exclude your version of the file from the CP. How you do it depends on the set of plugins that you use. For example, in my case it is usually paypal plugin that gives me the heartburn. Cheers, Alex. On Tue, Mar 20, 2012 at 11:28 AM, Florian Beckmann <[hidden email]> wrote: > Hi, > > I have the same problem as described by Alex here: > http://grails.1312388.n4.nabble.com/XML-troubles-td1338269.html > > I use java version "1.7.0_147-icedtea" and grails version 2.0.1. > > I tried to exclude several xml related apis for the plugin: > compile(":cxf:0.9.0") > { > excludes ("jaxb-impl", "stax-api", "stax2-api", "xml-apis", "xmlrpc", > 'xerces') > } > > And globally: > excludes ( "xml-apis", "commons-digester") > > but had no success so far. I also searched my repositories > for jars containing the class DatatypeConstants, but only found > xml-apis inside my local maven repository - which is excluded. > > I have no idea how the class is pulled in and by which jar (besides rt.jar > from java runtime). Would be great if anyone could help me out here. > > Cheers > Florian --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
| Powered by Nabble | Edit this page |
