On Wed, 22 May 2002, Ned Wolpert wrote:

> Well, 'essentially' and 'same' are different. :-)> 

Good point :)

> 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. 

Ah, okay, that is different; I just give a relative path.

> Can you give your exact code?  Both the java code and reposting your
> xml?  Note that I include a forward slash in the "/database.xml" ref
> for when I set the configuration location.

I will try to duplicate what you are doing and see if that makes things
work for me. However, for your delectation, the code that does not work:

            JDO jdo = new JDO();
            jdo.setDatabaseName("clownbike");
            
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();

and the XML:

<!DOCTYPE databases PUBLIC "-//EXOLAB/Castor JDO Configuration DTD Version 
1.0//EN" "http://castor.exolab.org/jdo-conf.dtd";>
<database name="clownbike">
  <driver class-name="org.postgresql.Driver"
    url="jdbc:postgresql://localhost/clownbike">
    <param name="user" value="clownbike" />
    <param name="password" value="" />
  </driver>

  <mapping href="mapping.xml" />

</database>


And the error:

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

Reply via email to