Any help that you can offer is appreciated. I'm using Spring Castor and need to map date and time values from a Java object to XML. Castor is throwing a run time Exception stating that it can't find the class org.apache.xerces.jaxp.datatype.XMLGregorianCalendarImplDescriptor. That kind of problem usually indicates a missing jar but I can't determine in which jar XMLGregorianCalendarImplDescriptor is. Has anyone encountered a problem like this and found a solution?
The relevant portion of my mapping file is this: <class name="com.ohcs.bean.SearchTA1InterchangeAcknowledgement" auto-complete="false"> <map-to xml="searchTA1InterchangeAcknowledgement"/> <field name="interchangeTime" type="javax.xml.datatype.XMLGregorianCalendar" required="false" direct="false" transient="false"> <bind-xml name="interchangeTime" node="element" reference="false"/> </field> <field name="interchangeDate" type="javax.xml.datatype.XMLGregorianCalendar" required="false" direct="false" transient="false"> <bind-xml name="interchangeDate" node="element" reference="false"/> </field> </class> Here is a portion of the stack trace that's produced at run time: 09 Aug 2011 17:35:43 DEBUG org.exolab.castor.xml.util.resolvers.CastorXMLStrategy - Setting property: org.exolab.castor.xml.util.ResolverStrategy.LoadPackageMappings to value: true 09 Aug 2011 17:35:43 DEBUG org.exolab.castor.xml.util.resolvers.CastorXMLStrategy - Setting property: org.exolab.castor.xml.util.ResolverStrategy.useIntrospection to value: true 09 Aug 2011 17:35:43 DEBUG org.exolab.castor.xml.util.resolvers.CastorXMLStrategy - Setting property: org.exolab.castor.xml.util.ResolverStrategy.MappingLoader to value: org.exolab.castor.xml.XMLMappingLoader@a047d3 09 Aug 2011 17:35:43 DEBUG org.exolab.castor.xml.util.resolvers.CastorXMLStrategy - Setting property: org.exolab.castor.xml.util.ResolverStrategy.Introspector to value: org.exolab.castor.xml.Introspector@cb741e 09 Aug 2011 17:35:43 DEBUG org.exolab.castor.xml.util.XMLClassDescriptorResolverImpl$DescriptorCacheImpl - Get descriptor for: org.apache.xerces.jaxp.datatype.XMLGregorianCalendarImpl found: null 09 Aug 2011 17:35:43 DEBUG org.exolab.castor.xml.util.resolvers.AbstractResolverClassCommand - Now in method: org.exolab.castor.xml.util.resolvers.ByMappingLoader resolving: org.apache.xerces.jaxp.datatype.XMLGregorianCale ndarImpl 09 Aug 2011 17:35:43 DEBUG org.exolab.castor.xml.util.XMLClassDescriptorResolverImpl$DescriptorCacheImpl - Called addAllDescriptors with null or empty descriptor map 09 Aug 2011 17:35:43 DEBUG org.exolab.castor.xml.util.XMLClassDescriptorResolverImpl$DescriptorCacheImpl - Get descriptor for: org.apache.xerces.jaxp.datatype.XMLGregorianCalendarImpl found: null 09 Aug 2011 17:35:43 DEBUG org.exolab.castor.xml.util.resolvers.AbstractResolverPackageCommand - Now in resolve method: org.exolab.castor.xml.util.resolvers.ByCDR resolving: org.apache.xerces.jaxp.datatype 09 Aug 2011 17:35:43 DEBUG org.exolab.castor.xml.util.XMLClassDescriptorResolverImpl$DescriptorCacheImpl - Called addAllDescriptors with null or empty descriptor map 09 Aug 2011 17:35:43 DEBUG org.exolab.castor.xml.util.resolvers.AbstractResolverPackageCommand - Now in resolve method: org.exolab.castor.xml.util.resolvers.ByPackageMapping resolving: org.apache.xerces.jaxp.datatype 09 Aug 2011 17:35:43 DEBUG org.exolab.castor.xml.util.XMLClassDescriptorResolverImpl$DescriptorCacheImpl - Called addAllDescriptors with null or empty descriptor map 09 Aug 2011 17:35:43 DEBUG org.exolab.castor.xml.util.XMLClassDescriptorResolverImpl$DescriptorCacheImpl - Get descriptor for: org.apache.xerces.jaxp.datatype.XMLGregorianCalendarImpl found: null 09 Aug 2011 17:35:43 DEBUG org.exolab.castor.xml.util.resolvers.AbstractResolverClassCommand - Now in method: org.exolab.castor.xml.util.resolvers.ByDescriptorClass resolving: org.apache.xerces.jaxp.datatype.XMLGregorianCa lendarImpl 09 Aug 2011 17:35:43 DEBUG org.exolab.castor.xml.util.resolvers.ResolveHelpers - Ignored problem at loading class: org.apache.xerces.jaxp.datatype.XMLGregorianCalendarImplDescriptor through class loader: WebappClassLoader delegate: false repositories: /WEB-INF/classes/ ----------> Parent Classloader: java.net.FactoryURLClassLoader@393e97 , exception: java.lang.ClassNotFoundException: org.apache.xerces.jaxp.datat ype.XMLGregorianCalendarImplDescriptor 09 Aug 2011 17:35:43 DEBUG org.exolab.castor.xml.util.resolvers.ResolveHelp ers - Ignored problem at loading class: org.apache.xerces.jaxp.datatype. descriptors.XMLGregorianCalendarImplDescriptor through class loader: Webapp ClassLoader delegate: false repositories: /WEB-INF/classes/ ----------> Parent Classloader: java.net.FactoryURLClassLoader@393e97 , exception: java.lang.ClassNotFoundException: org.apache.xerces.jaxp.datatype.descriptors.XMLGregorianCalendarImplDescriptor 09 Aug 2011 17:35:43 DEBUG org.exolab.castor.xml.util.XMLClassDescriptorResolverImpl$DescriptorCacheImpl - Called addAllDescriptors with null or empty descriptor map 09 Aug 2011 17:35:43 DEBUG org.exolab.castor.xml.util.XMLClassDescriptorResolverImpl$DescriptorCacheImpl - Get descriptor for: org.apache.xerces.jaxp.datatype.XMLGregorianCalendarImpl found: null 09 Aug 2011 17:35:43 DEBUG org.exolab.castor.xml.util.resolvers.AbstractResolverClassCommand - Now in method: org.exolab.castor.xml.util.resolvers.ByIntrospection resolving: org.apache.xerces.jaxp.datatype.XMLGregorianCalendarImpl 09 Aug 2011 17:35:43 DEBUG org.exolab.castor.xml.util.resolvers.ByIntrospection - Found descriptor: org.exolab.castor.xml.IntrospectedXMLClassDescriptor@1678f0a; descriptor for class: org.apache.xerces.jaxp.datatype.XMLGregorianCalendarImpl; xml name: XMLGregorianCalendarImpl 09 Aug 2011 17:35:43 DEBUG org.exolab.castor.xml.util.XMLClassDescriptorResolverImpl$DescriptorCacheImpl - Adding descriptor class for: org.apache.xerces.jaxp.datatype.XMLGregorianCalendarImpl descriptor: org.exolab.castor.xml.IntrospectedXMLClassDescriptor@1678f0a; descriptor for class: org.apache.xerces.jaxp.datatype.XMLGregorianCalendarImpl; xml name: XMLGregorianCal endarImpl 09 Aug 2011 17:35:43 DEBUG org.exolab.castor.xml.util.XMLClassDescriptorResolverImpl$DescriptorCacheImpl - Get descriptor for: org.apache.xerces.jaxp.datatype.XMLGregorianCalendarImpl found: org.exolab.castor.xml.IntrospectedXMLClassDescriptor@1678f0a; descriptor for class: org.apache.xerces.jaxp.datatype.XMLGregorianCalendarImpl; xml name: XMLGregorianCalendarImpl 09 Aug 2011 17:35:43 DEBUG org.exolab.castor.xml.ValidationContext - Called removeValidated(com.optumhealth.ohcs.bean.SearchTA1InterchangeAcknowledgement@1bbec72) 09 Aug 2011 17:35:43 DEBUG org.exolab.castor.xml.ValidationContext - Called isValidated(com.optumhealth.ohcs.bean.SearchTA1InterchangeAcknowledgement@1bbec72) 09 Aug 2011 17:35:43 DEBUG org.exolab.castor.xml.ValidationContext - Called isValidated(com.optumhealth.ohcs.bean.SearchTA1InterchangeAcknowledgement@1bbec72) 09 Aug 2011 17:35:43 DEBUG org.exolab.castor.xml.ValidationContext - Called addValidated(com.optumhealth.ohcs.bean.SearchTA1InterchangeAcknowledgement@1bbec72) 09 Aug 2011 17:35:43 DEBUG org.exolab.castor.xml.ValidationContext - Called removeValidated(com.optumhealth.ohcs.bean.SearchTA1InterchangeAcknowledgement@1bbec72) 09 Aug 2011 17:35:43 DEBUG org.exolab.castor.xml.ValidationContext - Called isValidated(com.optumhealth.ohcs.bean.SearchTA1InterchangeAcknowledgement@1bbec72)

