java.lang.NoClassDefFoundError: org/apache/xerces/jaxp/datatype/XMLGregorianCalendarImpl$Parser


[#|2011-02-15T13:05:43.616-0600|SEVERE|sun-appserver2.1|javax.enterprise.resource.webservices.jaxws.servlet.http|_ThreadID=23;_ThreadName=httpSSLWorkerThread-70
01-0;_RequestID=6de2a1b8-977f-4196-bda1-f3b77a2ae1ec;|caught throwable
java.lang.NoClassDefFoundError: org/apache/xerces/jaxp/datatype/XMLGregorianCalendarImpl$Parser
at org.apache.xerces.jaxp.datatype.XMLGregorianCalendarImpl.(Unknown Source)

If you ever get such error, just remove xercesImpl.jar from classpath as JDK already contains a xerces implimentation.

 

Advertisements

java.lang.ClassFormatError: Invalid constant pool index 63 bad class file

If you ever get “bad class file” or “bad signature” or “java.lang.ClassFormatError: Invalid constant pool index 63”, you are probably using Ant to build and using filterSet. That would mess up the binary files during copying. So exclude them from copy.
More info here:
http://mail-archives.apache.org/mod_mbox/cayenne-user/200804.mbox/%3C0JZC008038T159@mail.uni-rostock.de%3E

Glassfish Metro java.lang.NoClassDefFoundError: org/apache/xerces/jaxp/datatype/XMLGregorianCalendarImpl$Parser

If you get this, you probably have xercesImpl.jar in your classpath. You don’t need that any more as JDK 6 includes it already. Just remove it from classpath and restart your server.