On Wed, 22 May 2002, Ned Wolpert wrote:
> Well, 'essentially' and 'same' are different. :-) I pull the files
> from my classpath, not via file: url. My war files have been deployed
> via weblogic(6.1), resin and tomcat(3.3,4.0.x) without problems.
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
j
---
"Users complain that they receive too much spam, while spammers protest
messages are legal." -InfoWorld
"You do not have to do everything disagreeable that you have a right to
do." -Judith Martin (Miss Manners)
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev