Hello
We are using CXF with jaxb binding and have had it work quite well until
recently when we tried to add the xsd:date. The generated jaxb class has
XMLGregorianCalendar as the type. But when cxf tries to unmarshall our xml
we get the following

</pre></p><p>root cause <pre>java.lang.ClassNotFoundException:
org.apache.xerces.jaxp.datatype.XMLGregorianCalendarImpl$Parser

org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1358)

org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1204)
        java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)

org.apache.xerces.jaxp.datatype.XMLGregorianCalendarImpl.&lt;init&gt;(Unknown
Source)

org.apache.xerces.jaxp.datatype.DatatypeFactoryImpl.newXMLGregorianCalendar(Unknown
Source)

com.sun.xml.bind.v2.model.impl.RuntimeBuiltinLeafInfoImpl$13.parse(RuntimeBuiltinLeafInfoImpl.java:546)

com.sun.xml.bind.v2.model.impl.RuntimeBuiltinLeafInfoImpl$13.parse(RuntimeBuiltinLeafInfoImpl.java:625)

com.sun.xml.bind.v2.runtime.FilterTransducer.parse(FilterTransducer.java:80)

com.sun.xml.bind.v2.runtime.reflect.TransducedAccessor$CompositeTransducedAccessorImpl.parse(TransducedAccessor.java:241)

com.sun.xml.bind.v2.runtime.unmarshaller.LeafPropertyLoader.text(LeafPropertyLoader.java:61)

com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext.text(UnmarshallingContext.java:468)

com.sun.xml.bind.v2.runtime.unmarshaller.SAXConnector.processText(SAXConnector.java:168)

com.sun.xml.bind.v2.runtime.unmarshaller.SAXConnector.endElement(SAXConnector.java:141)
        org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
        org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown
Source)

org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
Source)
        
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)
        org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
        org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
        org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
        org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
        org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)

com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:211)

com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:184)

javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:137)

javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:184)

org.apache.cxf.jaxrs.provider.JAXBElementProvider.readFrom(JAXBElementProvider.java:109)

I checked that the particular class is present in the xerces-2.8.1.jar in
our classpath in tomcat but still we get the same expection.Iam not sure
this is the actual error or something else is the issue.
Has anyone faced this in the past ?
any suggestions are appreciated.
--
Thanks
-- 
View this message in context: 
http://www.nabble.com/XMLGregorianCalendar-ClassNotFound-exception-tp24961281p24961281.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to