java.lang.ClassNotFoundException: XMLGregorianCalendarImpl



Say we have a web service using JAX-WS on Glassfish v2.1, and we have an operation using a XMLGregorianCalendar type. When this operation is called, an exception can be thrown:

java.lang.ClassNotFoundException: org.apache.xerces.jaxp.datatype.XMLGregorianCalendarImpl

In the {glassfish install map}/lib location we have a launcher.xml and a launcher.properties file. Inside the XML there is a reference

<sysproperty key="javax.xml.parsers.SAXParserFactory" value="com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl" />
assuming Xerces is already available inside the server shared libraries map. By installing Xerces the exception problem is solved.

Comments are closed.

  • 071 - 82 000 82
  • Rijndijk 137 | 2394 AG Hazerswoude-Rijndijk
DEMO
Oracle Specialized
Java
GlassFish
WSO2
i-bridge
Rabobank
Greencat
Reuma Revalidatie Rotterdam
Robeco
VU Medisch Centrum
CHS
LUMC
TomTom
TKP
NCCW
Erasmus MC
UMCG
VIR
ANWB
BVA Auctions
D-Reizen
STEDIN