Hi, how are you calling the Unmarshaller to start unmarshalling ? It looks like your mapping file is not being picked up.
Regards Werner Bill Bruyn wrote: > I’ve read the relevant sections of the user guide 4 or 5 times, and somehow > Google has failed me this time around. I’m sure I’ve missed the point > somewhere along the line, and hope someone here will set me straight. I > have the following xml: > --------------------------------------------------------------------------------------------------- > > > <m10:Find__CompIntfc__CSY_CI_PERSONAL_DATAResponse > xmlns:m10="http://xmlns.oracle.com/Enterprise/Tools/schemas/M937245.V1"> > <m10:CSY_CI_PERSONAL_DATA> > <m10:KEYPROP_EMPLID>10034</m10:KEYPROP_EMPLID> > <m10:PROP_NAME>Joe Johnson</m10:PROP_NAME> > <m10:PROP_LAST_NAME_SRCH>JOHNSON</m10:PROP_LAST_NAME_SRCH> > <m10:PROP_NAME_AC/> > </m10:CSY_CI_PERSONAL_DATA> > </m10:Find__CompIntfc__CSY_CI_PERSONAL_DATAResponse> > > > --------------------------------------------------------------------------------------------------- > Which needs to be unmarshalled to these beans: > --------------------------------------------------------------------------------------------------- > > > public class FindIndividualByCriteriaResponse { > > List<Individual> result; > > public List<Individual> getResult() { > return result; > } > public void setResult(List<Individual> result) { > this.result = result; > } > } > > public class Individual implements Serializable { > > Long id; > String firstName; > String lastName; > > /* matching getters and setters omitted */ > } > > > --------------------------------------------------------------------------------------------------- > I’ve tried any number of variations on the following mapping, but I’d expect > this to work, based on what I’ve read in the example: > --------------------------------------------------------------------------------------------------- > > <class > name="com.comsys.azman.individual.service.peoplesoft.FindIndividualByCriteriaResponse"> > <map-to xml="Find__CompIntfc__CSY_CI_PERSONAL_DATAResponse" > ns-uri="http://xmlns.oracle.com/Enterprise/Tools/schemas/M937245.V1" > ns-prefix="psft"/> > > <field name="Result" type="com.comsys.azman.individual.Individual" > collection="arraylist" /> > </class> > > <class name="com.comsys.azman.individual.Individual"> > <map-to xml="CSY_CI_PERSONAL_DATA" /> > > <field name="Id" type="long"> > <bind-xml name="KEYPROP_EMPLID"/> > </field> > > <field name="FirstName" type="string"> > <bind-xml name="PROP_NAME"/> > </field> > > <field name="LastName" type="string"> > <bind-xml name="PROP_LAST_NAME_SRCH"/> > </field> > </class> > --------------------------------------------------------------------------------------------------- > But I am instead greeted with the stack trace below (relevant log output > included). Can anyone help? > --------------------------------------------------------------------------------------------------- > > DEBUG - XMLContext - Creating new Unmarshaller instance. > DEBUG - Configuration - Configuration loaded from classpath: > /org/castor/core/castor.core.properties > DEBUG - Configuration - Configuration loaded from classpath: > /org/castor/xml/castor.xml.properties > DEBUG - erImpl$DescriptorCacheImpl - New instance! > DEBUG - erImpl$DescriptorCacheImpl - Get descriptor for: > com.comsys.azman.individual.service.peoplesoft.CSY_CI_PERSONAL_DATA found: > null > DEBUG - CastorXMLStrategy - Setting property: > org.exolab.castor.xml.util.ResolverStrategy.LoadPackageMappings to value: > true > DEBUG - CastorXMLStrategy - Setting property: > org.exolab.castor.xml.util.ResolverStrategy.useIntrospection to value: true > DEBUG - CastorXMLStrategy - Setting property: > org.exolab.castor.xml.util.ResolverStrategy.MappingLoader to value: > org.exolab.castor.xml.xmlmappingloa...@1ad98ef > DEBUG - CastorXMLStrategy - Setting property: > org.exolab.castor.xml.util.ResolverStrategy.Introspector to value: > org.exolab.castor.xml.introspec...@138c63 > DEBUG - CastorXMLStrategy - Setting property: > org.exolab.castor.xml.util.ResolverStrategy.ClassLoader to value: > sun.misc.launcher$appclassloa...@11b86e7 > DEBUG - CastorXMLStrategy - Setting property: > org.exolab.castor.xml.util.ResolverStrategy.LoadPackageMappings to value: > true > DEBUG - CastorXMLStrategy - Setting property: > org.exolab.castor.xml.util.ResolverStrategy.useIntrospection to value: true > DEBUG - CastorXMLStrategy - Setting property: > org.exolab.castor.xml.util.ResolverStrategy.MappingLoader to value: > org.exolab.castor.xml.xmlmappingloa...@1ad98ef > DEBUG - CastorXMLStrategy - Setting property: > org.exolab.castor.xml.util.ResolverStrategy.Introspector to value: > org.exolab.castor.xml.introspec...@138c63 > DEBUG - erImpl$DescriptorCacheImpl - Get descriptor for: > com.comsys.azman.individual.service.peoplesoft.CSY_CI_PERSONAL_DATA found: > null > DEBUG - stractResolverClassCommand - Now in method: > org.exolab.castor.xml.util.resolvers.ByMappingLoader resolving: > com.comsys.azman.individual.service.peoplesoft.CSY_CI_PERSONAL_DATA > DEBUG - erImpl$DescriptorCacheImpl - Called addAllDescriptors with null or > empty descriptor map > DEBUG - erImpl$DescriptorCacheImpl - Get descriptor for: > com.comsys.azman.individual.service.peoplesoft.CSY_CI_PERSONAL_DATA found: > null > DEBUG - ractResolverPackageCommand - Now in resolve method: > org.exolab.castor.xml.util.resolvers.ByCDR resolving: > com.comsys.azman.individual.service.peoplesoft > DEBUG - erImpl$DescriptorCacheImpl - Called addAllDescriptors with null or > empty descriptor map > DEBUG - ractResolverPackageCommand - Now in resolve method: > org.exolab.castor.xml.util.resolvers.ByPackageMapping resolving: > com.comsys.azman.individual.service.peoplesoft > DEBUG - erImpl$DescriptorCacheImpl - Called addAllDescriptors with null or > empty descriptor map > DEBUG - erImpl$DescriptorCacheImpl - Get descriptor for: > com.comsys.azman.individual.service.peoplesoft.CSY_CI_PERSONAL_DATA found: > null > DEBUG - stractResolverClassCommand - Now in method: > org.exolab.castor.xml.util.resolvers.ByDescriptorClass resolving: > com.comsys.azman.individual.service.peoplesoft.CSY_CI_PERSONAL_DATA > DEBUG - ResolveHelpers - Ignored problem at loading class: > com.comsys.azman.individual.service.peoplesoft.CSY_CI_PERSONAL_DATADescriptor > through class loader: sun.misc.launcher$appclassloa...@11b86e7, exception: > java.lang.ClassNotFoundException: > com.comsys.azman.individual.service.peoplesoft.CSY_CI_PERSONAL_DATADescriptor > DEBUG - ResolveHelpers - Ignored problem at loading class: > com.comsys.azman.individual.service.peoplesoft.descriptors.CSY_CI_PERSONAL_DATADescriptor > through class loader: sun.misc.launcher$appclassloa...@11b86e7, exception: > java.lang.ClassNotFoundException: > com.comsys.azman.individual.service.peoplesoft.descriptors.CSY_CI_PERSONAL_DATADescriptor > DEBUG - erImpl$DescriptorCacheImpl - Called addAllDescriptors with null or > empty descriptor map > DEBUG - erImpl$DescriptorCacheImpl - Get descriptor for: > com.comsys.azman.individual.service.peoplesoft.CSY_CI_PERSONAL_DATA found: > null > DEBUG - stractResolverClassCommand - Now in method: > org.exolab.castor.xml.util.resolvers.ByIntrospection resolving: > com.comsys.azman.individual.service.peoplesoft.CSY_CI_PERSONAL_DATA > DEBUG - ResolveHelpers - Ignored problem at loading class: > com.comsys.azman.individual.service.peoplesoft.CSY_CI_PERSONAL_DATA through > class loader: sun.misc.launcher$appclassloa...@11b86e7, exception: > java.lang.ClassNotFoundException: > com.comsys.azman.individual.service.peoplesoft.CSY_CI_PERSONAL_DATA > DEBUG - erImpl$DescriptorCacheImpl - Called addAllDescriptors with null or > empty descriptor map > DEBUG - erImpl$DescriptorCacheImpl - Get descriptor for: > com.comsys.azman.individual.service.peoplesoft.CSY_CI_PERSONAL_DATA found: > null > DEBUG - erImpl$DescriptorCacheImpl - Adding class name to missing classes: > com.comsys.azman.individual.service.peoplesoft.CSY_CI_PERSONAL_DATA > DEBUG - erImpl$DescriptorCacheImpl - Get descriptor for: > com.comsys.azman.individual.KEYPROP_EMPLID found: null > DEBUG - CastorXMLStrategy - Setting property: > org.exolab.castor.xml.util.ResolverStrategy.LoadPackageMappings to value: > true > DEBUG - CastorXMLStrategy - Setting property: > org.exolab.castor.xml.util.ResolverStrategy.useIntrospection to value: true > DEBUG - CastorXMLStrategy - Setting property: > org.exolab.castor.xml.util.ResolverStrategy.MappingLoader to value: > org.exolab.castor.xml.xmlmappingloa...@1ad98ef > DEBUG - CastorXMLStrategy - Setting property: > org.exolab.castor.xml.util.ResolverStrategy.Introspector to value: > org.exolab.castor.xml.introspec...@138c63 > DEBUG - CastorXMLStrategy - Setting property: > org.exolab.castor.xml.util.ResolverStrategy.ClassLoader to value: > sun.misc.launcher$appclassloa...@11b86e7 > DEBUG - CastorXMLStrategy - Setting property: > org.exolab.castor.xml.util.ResolverStrategy.LoadPackageMappings to value: > true > DEBUG - CastorXMLStrategy - Setting property: > org.exolab.castor.xml.util.ResolverStrategy.useIntrospection to value: true > DEBUG - CastorXMLStrategy - Setting property: > org.exolab.castor.xml.util.ResolverStrategy.MappingLoader to value: > org.exolab.castor.xml.xmlmappingloa...@1ad98ef > DEBUG - CastorXMLStrategy - Setting property: > org.exolab.castor.xml.util.ResolverStrategy.Introspector to value: > org.exolab.castor.xml.introspec...@138c63 > DEBUG - erImpl$DescriptorCacheImpl - Get descriptor for: > com.comsys.azman.individual.KEYPROP_EMPLID found: null > DEBUG - stractResolverClassCommand - Now in method: > org.exolab.castor.xml.util.resolvers.ByMappingLoader resolving: > com.comsys.azman.individual.KEYPROP_EMPLID > DEBUG - erImpl$DescriptorCacheImpl - Called addAllDescriptors with null or > empty descriptor map > DEBUG - erImpl$DescriptorCacheImpl - Get descriptor for: > com.comsys.azman.individual.KEYPROP_EMPLID found: null > DEBUG - ractResolverPackageCommand - Now in resolve method: > org.exolab.castor.xml.util.resolvers.ByCDR resolving: > com.comsys.azman.individual > DEBUG - erImpl$DescriptorCacheImpl - Called addAllDescriptors with null or > empty descriptor map > DEBUG - ractResolverPackageCommand - Now in resolve method: > org.exolab.castor.xml.util.resolvers.ByPackageMapping resolving: > com.comsys.azman.individual > DEBUG - erImpl$DescriptorCacheImpl - Called addAllDescriptors with null or > empty descriptor map > DEBUG - erImpl$DescriptorCacheImpl - Get descriptor for: > com.comsys.azman.individual.KEYPROP_EMPLID found: null > DEBUG - stractResolverClassCommand - Now in method: > org.exolab.castor.xml.util.resolvers.ByDescriptorClass resolving: > com.comsys.azman.individual.KEYPROP_EMPLID > DEBUG - ResolveHelpers - Ignored problem at loading class: > com.comsys.azman.individual.KEYPROP_EMPLIDDescriptor through class loader: > sun.misc.launcher$appclassloa...@11b86e7, exception: > java.lang.ClassNotFoundException: > com.comsys.azman.individual.KEYPROP_EMPLIDDescriptor > DEBUG - ResolveHelpers - Ignored problem at loading class: > com.comsys.azman.individual.descriptors.KEYPROP_EMPLIDDescriptor through > class loader: sun.misc.launcher$appclassloa...@11b86e7, exception: > java.lang.ClassNotFoundException: > com.comsys.azman.individual.descriptors.KEYPROP_EMPLIDDescriptor > DEBUG - erImpl$DescriptorCacheImpl - Called addAllDescriptors with null or > empty descriptor map > DEBUG - erImpl$DescriptorCacheImpl - Get descriptor for: > com.comsys.azman.individual.KEYPROP_EMPLID found: null > DEBUG - stractResolverClassCommand - Now in method: > org.exolab.castor.xml.util.resolvers.ByIntrospection resolving: > com.comsys.azman.individual.KEYPROP_EMPLID > DEBUG - ResolveHelpers - Ignored problem at loading class: > com.comsys.azman.individual.KEYPROP_EMPLID through class loader: > sun.misc.launcher$appclassloa...@11b86e7, exception: > java.lang.ClassNotFoundException: com.comsys.azman.individual.KEYPROP_EMPLID > DEBUG - erImpl$DescriptorCacheImpl - Called addAllDescriptors with null or > empty descriptor map > DEBUG - erImpl$DescriptorCacheImpl - Get descriptor for: > com.comsys.azman.individual.KEYPROP_EMPLID found: null > DEBUG - erImpl$DescriptorCacheImpl - Adding class name to missing classes: > com.comsys.azman.individual.KEYPROP_EMPLID > DEBUG - erImpl$DescriptorCacheImpl - Get descriptor for: > com.comsys.azman.individual.service.peoplesoft.KEYPROP_EMPLID found: null > DEBUG - CastorXMLStrategy - Setting property: > org.exolab.castor.xml.util.ResolverStrategy.LoadPackageMappings to value: > true > DEBUG - CastorXMLStrategy - Setting property: > org.exolab.castor.xml.util.ResolverStrategy.useIntrospection to value: true > DEBUG - CastorXMLStrategy - Setting property: > org.exolab.castor.xml.util.ResolverStrategy.MappingLoader to value: > org.exolab.castor.xml.xmlmappingloa...@1ad98ef > DEBUG - CastorXMLStrategy - Setting property: > org.exolab.castor.xml.util.ResolverStrategy.Introspector to value: > org.exolab.castor.xml.introspec...@138c63 > DEBUG - CastorXMLStrategy - Setting property: > org.exolab.castor.xml.util.ResolverStrategy.ClassLoader to value: > sun.misc.launcher$appclassloa...@11b86e7 > DEBUG - CastorXMLStrategy - Setting property: > org.exolab.castor.xml.util.ResolverStrategy.LoadPackageMappings to value: > true > DEBUG - CastorXMLStrategy - Setting property: > org.exolab.castor.xml.util.ResolverStrategy.useIntrospection to value: true > DEBUG - CastorXMLStrategy - Setting property: > org.exolab.castor.xml.util.ResolverStrategy.MappingLoader to value: > org.exolab.castor.xml.xmlmappingloa...@1ad98ef > DEBUG - CastorXMLStrategy - Setting property: > org.exolab.castor.xml.util.ResolverStrategy.Introspector to value: > org.exolab.castor.xml.introspec...@138c63 > DEBUG - erImpl$DescriptorCacheImpl - Get descriptor for: > com.comsys.azman.individual.service.peoplesoft.KEYPROP_EMPLID found: null > DEBUG - stractResolverClassCommand - Now in method: > org.exolab.castor.xml.util.resolvers.ByMappingLoader resolving: > com.comsys.azman.individual.service.peoplesoft.KEYPROP_EMPLID > DEBUG - erImpl$DescriptorCacheImpl - Called addAllDescriptors with null or > empty descriptor map > DEBUG - erImpl$DescriptorCacheImpl - Get descriptor for: > com.comsys.azman.individual.service.peoplesoft.KEYPROP_EMPLID found: null > DEBUG - ractResolverPackageCommand - Now in resolve method: > org.exolab.castor.xml.util.resolvers.ByCDR resolving: > com.comsys.azman.individual.service.peoplesoft > DEBUG - erImpl$DescriptorCacheImpl - Called addAllDescriptors with null or > empty descriptor map > DEBUG - ractResolverPackageCommand - Now in resolve method: > org.exolab.castor.xml.util.resolvers.ByPackageMapping resolving: > com.comsys.azman.individual.service.peoplesoft > DEBUG - erImpl$DescriptorCacheImpl - Called addAllDescriptors with null or > empty descriptor map > DEBUG - erImpl$DescriptorCacheImpl - Get descriptor for: > com.comsys.azman.individual.service.peoplesoft.KEYPROP_EMPLID found: null > DEBUG - stractResolverClassCommand - Now in method: > org.exolab.castor.xml.util.resolvers.ByDescriptorClass resolving: > com.comsys.azman.individual.service.peoplesoft.KEYPROP_EMPLID > DEBUG - ResolveHelpers - Ignored problem at loading class: > com.comsys.azman.individual.service.peoplesoft.KEYPROP_EMPLIDDescriptor > through class loader: sun.misc.launcher$appclassloa...@11b86e7, exception: > java.lang.ClassNotFoundException: > com.comsys.azman.individual.service.peoplesoft.KEYPROP_EMPLIDDescriptor > DEBUG - ResolveHelpers - Ignored problem at loading class: > com.comsys.azman.individual.service.peoplesoft.descriptors.KEYPROP_EMPLIDDescriptor > through class loader: sun.misc.launcher$appclassloa...@11b86e7, exception: > java.lang.ClassNotFoundException: > com.comsys.azman.individual.service.peoplesoft.descriptors.KEYPROP_EMPLIDDescriptor > DEBUG - erImpl$DescriptorCacheImpl - Called addAllDescriptors with null or > empty descriptor map > DEBUG - erImpl$DescriptorCacheImpl - Get descriptor for: > com.comsys.azman.individual.service.peoplesoft.KEYPROP_EMPLID found: null > DEBUG - stractResolverClassCommand - Now in method: > org.exolab.castor.xml.util.resolvers.ByIntrospection resolving: > com.comsys.azman.individual.service.peoplesoft.KEYPROP_EMPLID > DEBUG - ResolveHelpers - Ignored problem at loading class: > com.comsys.azman.individual.service.peoplesoft.KEYPROP_EMPLID through class > loader: sun.misc.launcher$appclassloa...@11b86e7, exception: > java.lang.ClassNotFoundException: > com.comsys.azman.individual.service.peoplesoft.KEYPROP_EMPLID > DEBUG - erImpl$DescriptorCacheImpl - Called addAllDescriptors with null or > empty descriptor map > DEBUG - erImpl$DescriptorCacheImpl - Get descriptor for: > com.comsys.azman.individual.service.peoplesoft.KEYPROP_EMPLID found: null > DEBUG - erImpl$DescriptorCacheImpl - Adding class name to missing classes: > com.comsys.azman.individual.service.peoplesoft.KEYPROP_EMPLID > > Caused by: org.xml.sax.SAXException: unable to find FieldDescriptor for > 'KEYPROP_EMPLID' in ClassDescriptor of CSY_CI_PERSONAL_DATA > at > org.exolab.castor.xml.UnmarshalHandler.startElement(UnmarshalHandler.java:2004) > at > org.exolab.castor.xml.UnmarshalHandler.startElement(UnmarshalHandler.java:1488) > at > org.exolab.castor.xml.util.DOMEventProducer.process(DOMEventProducer.java:246) > at > org.exolab.castor.xml.util.DOMEventProducer.process(DOMEventProducer.java:183) > at > org.exolab.castor.xml.util.DOMEventProducer.processChildren(DOMEventProducer.java:334) > at > org.exolab.castor.xml.util.DOMEventProducer.process(DOMEventProducer.java:248) > at > org.exolab.castor.xml.util.DOMEventProducer.process(DOMEventProducer.java:183) > at > org.exolab.castor.xml.util.DOMEventProducer.processChildren(DOMEventProducer.java:334) > at > org.exolab.castor.xml.util.DOMEventProducer.process(DOMEventProducer.java:248) > at > org.exolab.castor.xml.util.DOMEventProducer.process(DOMEventProducer.java:183) > at > org.exolab.castor.xml.util.DOMEventProducer.start(DOMEventProducer.java:111) > at org.exolab.castor.xml.Unmarshaller.unmarshal(Unmarshaller.java:647) > ... 13 more > --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email

