Hi,

I am trying out castor, but I am having a hard time getting used to it. I
still have a problem with using Castor JDO. When trying to access a database
I get the following error:

org.exolab.castor.jdo.DatabaseNotFoundException: No configuration loaded for
database /tmp/testdb -- use the JDO interface to load a configuration for
this database
        at
org.exolab.castor.jdo.engine.DatabaseImpl.<init>(DatabaseImpl.java:183)
        at org.exolab.castor.jdo.JDO.getDatabase(JDO.java:623)
        at de.devlogix.app.JDOTest.<init>(JDOTest.java:70)
        at de.devlogix.app.JDOTest.main(JDOTest.java:129)

As one can see, it happens at JDO.getDatabase(). Now where is the problem? I
searched google about it and found that Nadja Senoucci had the same problem,
but it seems that it was a spelling error in his program.

I did load the configuration with jdo.setConfiguration("database.xml"); That
must have worked, because when writing a different name it tells me that the
file cannot be found. Also the mapping file referenced in database.xml must
also have been found, because when I had errors in it I got a different
error.
I am using hsqldb as my db. In the database.xml is written:

<database name="test" engine="hsql" >
        <driver url="jdbc:hsqldb:/tmp/testdb"
class-name="org.hsqldb.jdbcDriver">
                <param name="user" value="sa"/>
                <param name="password" value=""/>
        </driver>
        <mapping href="mapping.xml"/>
</database>

The url also must be ok, because when I access the database directly with
jdbc I use exactly the same statement to get a connection. So what can be
the problem?

Thanks in advance for your help.
Marco

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

Reply via email to