At run time the class that the Marshaller is complaining about is
available at run time,
How does Castor arrive at the Local classpath below:
03-21-2014 14:13:59,850 [DEBUG][kNjMKc49FG6S0ECfw8MaNEg][external][]
org.exolab.castor.xml.util.resolvers.CastorXMLStrategy:
Setting property: org.exolab.castor.xml.util.ResolverStrategy.Introspector
to value: org.exolab.castor.xml.Introspector@3e633e63
03-21-2014 14:13:59,850 [DEBUG][kNjMKc49FG6S0ECfw8MaNEg][external][]
org.exolab.castor.xml.util.resolvers.CastorXMLStrategy:
Setting property: org.exolab.castor.xml.util.ResolverStrategy.ClassLoader
to value:
Local ClassPath:
Inspecting the classpath we do see indeed that the EE module is missing
from Castor's class path.
After adding the classloader to the Mapping class that is set on the
Marshaller fixes the problem but we would prefer that the classpath is
fixed.
Stack trace:
org.exolab.castor.mapping.MappingException: Could not find the class
com.usbank.crccore.delegate.oad.parm.OnlineAppPrefillData
at
org.exolab.castor.mapping.loader.AbstractMappingLoader.resolveType(AbstractMappingLoader.java:386)
at
org.exolab.castor.xml.XMLMappingLoader.createClassDescriptor(XMLMappingLoader.java:209)
at
org.exolab.castor.mapping.loader.AbstractMappingLoader.createClassDescriptors(AbstractMappingLoader.java:275)
at
org.exolab.castor.xml.XMLMappingLoader.loadMapping(XMLMappingLoader.java:156)
at
org.castor.mapping.MappingUnmarshaller.getMappingLoader(MappingUnmarshaller.java:162)
at
org.castor.mapping.MappingUnmarshaller.getMappingLoader(MappingUnmarshaller.java:128)
at
org.exolab.castor.xml.Marshaller.setMapping(Marshaller.java:556)
at
com.usbank.crccore.util.MarshallerUtil.mapClassToXML(MarshallerUtil.java:47)
at
com.usbank.crccore.delegate.oad.OADDelegateImpl.getOADData(OADDelegateImpl.java:135)
at
com.usbank.crccore.delegate.oad.OADDelegateImpl.loadOADData(OADDelegateImpl.java:36)
Thanks,
Vincent
U.S. BANCORP made the following annotations
---------------------------------------------------------------------
Electronic Privacy Notice. This e-mail, and any attachments, contains
information that is, or may be, covered by electronic communications privacy
laws, and is also confidential and proprietary in nature. If you are not the
intended recipient, please be advised that you are legally prohibited from
retaining, using, copying, distributing, or otherwise disclosing this
information in any manner. Instead, please reply to the sender that you have
received this communication in error, and then immediately delete it. Thank you
in advance for your cooperation.
---------------------------------------------------------------------