Hello,
I'm lost, could you provide me with some hints.
I'm getting the following exception from a statement such as:
marshaller.setMapping (mapping);
(The mapping was loaded from a typical mapping file, referencing the
right class "omr.test.Person")
The class not found indeed exists, the root of the containing class
hierarchy is indeed pointed by the classpath.
Moreover, a few statements before in the same program, I'm able to
allocate an instance of this omr.test.Person class : so the class does
exist and is usable.
This seems to be related to a loader problem. The castor jar file
(castor-0.9.3-xml.jar) is in d:/jdk1.4/jre/lib/ext, while my application
classes are just plain class files in a separate hierarchy.
I use Windows 98, JDK 1.4.
Any hint ? (should I put all my application classes in a jar file and
locate this jar also in d:/jdk1.4/jre/lib/ext ? A bit awkward, I haven't
tried it yet, but this would help investigate whether it's a problem of
order in directory search)
Here is the stack trace :
org.exolab.castor.mapping.MappingException: Could not find the class
omr.test.Person
at
org.exolab.castor.mapping.loader.MappingLoader.createDescriptor(MappingLoader.java:300)
at
org.exolab.castor.xml.XMLMappingLoader.createDescriptor(XMLMappingLoader.java:152)
at
org.exolab.castor.mapping.loader.MappingLoader.loadMapping(MappingLoader.java:211)
at org.exolab.castor.mapping.Mapping.getResolver(Mapping.java:278)
at org.exolab.castor.mapping.Mapping.getResolver(Mapping.java:234)
at org.exolab.castor.xml.Marshaller.setMapping(Marshaller.java:323)
at omr.test.TestCastor.main(TestCastor.java:33)
--
/\ Herv� BITTEUR
\\ \ EMEA IT Architect
\ \\ / SUN MICROSYSTEMS FRANCE
/ \/ / / 13, avenue Morane Saulnier
/ / \//\ 78142 V�lizy cedex France
\//\ / /
/ / /\ / Email : [EMAIL PROTECTED]
/ \\ \ Office : +33 (0)1.34.03.01.12
\ \\ Fax. : +33 (0)1.34.03.03.06
\/
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev