-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Why are you setting the class loader twice?  It can only use one?

Just for the sake of completeness, try it this way instead:

JDO jdo = new JDO();
jdo.setClassLoader(theOneClassLoaderYouWant);
jdo.setConfiguration(getClass().getResource("/database.xml").toString());
jdo.setDatabaseName("clownbike");
db = jdo.getDatabase();
db.begin();

> Date: Thu, 23 May 2002 10:50:18 -0400 (EDT)
> From: Jessica Perry Hekman <[EMAIL PROTECTED]>
> Okay, I just tried again, using your method:
> 
>           JDO jdo = new JDO();
>           jdo.setDatabaseName("clownbike");
>           jdo.setConfiguration(getClass().getResource("/database.xml").toString());
>           
>//jdo.setConfiguration("/usr/local/tomcat/webapps/clownbike/WEB-INF/conf/database.xml");
>           jdo.setClassLoader(AutoNumberFactory.class.getClassLoader());
>           jdo.setClassLoader(EventImpl.class.getClassLoader());
>           db = jdo.getDatabase();
>           db.begin();
> 
> The XML is the same. The XML files are indeed where they should be:
> 
>  [jphekman@localhost clownbike]$ ls 
>/usr/local/tomcat/webapps/clownbike/WEB-INF/classes/
>  com  database.xml  mapping.xml
> 
> Same error message:
> 
>  Error: Nested error: org.xml.sax.SAXException: Parsing Error : File 
>  "file:///home/jphekman/src/clownbike/mapping.xml" not found.
>  Line : 0 Column : 0
> 

- -- 

Virtually, 
Ned Wolpert <[EMAIL PROTECTED]>

D08C2F45:  28E7 56CB 58AC C622 5A51  3C42 8B2B 2739 D08C 2F45 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: Public key at http://www.keyserver.net

iD8DBQE87Rc4iysnOdCML0URAtDtAJ9g15FDj8tOCMb95oMx6tfAZkgs8gCdHmS5
W1N6oFwpcWLjNI6Pv0R99zo=
=VBGP
-----END PGP SIGNATURE-----

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

Reply via email to