Title: Classloader hell with juinit and castor

I'm encountering some classloader problems when trying to run a junit test which calls the Castor marshaller.

Here are the combinations that I have tried and their effect...
1) using xerces-api.jar in the class path: junit itself fails because it can't find a class which is in rt.jar
2) using ant's xml-apis.jar in the class path: junit runs, but my test case falis looking for org/apache/xml/serialize/XMLSerializer

3) moving ant's xml-apis.jar in my third party directory: same result as 1)
4) having both jar files in the class path i.e. 1) and 2) together: junit runs, castor finds XMLSerializer, but my test case fails because the class loader can't find my own classes. :(

Has anyone been able to run a junit test which uses castor?
Thanks,
Gilles



----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-user

Reply via email to