This one time, at band camp, [EMAIL PROTECTED] said:
>
>but the other problem with the NullPointerException still exists. When
>doing JDO.loadConfiguration() (it's the first statement in the Constructor
>of my Test-Class) I get this Exception. I'm not entirely sure if he
>succeeds in connecting to the Database (or if it even tries, shouldn't that
>be done in jdo.getDatabase()?), but it should be able to connect, my
>database.xml looks like that:
>
><!DOCTYPE databases PUBLIC "-//EXOLAB/Castor JDO Configuration DTD Version
>1.0//EN"
> "http://castor.exolab.org/jdo-conf.dtd">
><database name="lexikon" engine="mysql" >
> <driver class-name="org.gjt.mm.mysql.Driver" url
>="jdbc:mysql://localhost/lexikon" />
> <mapping href="mapping.xml" />
></database>
>
Joachim,
I'm guessing that you're still getting the NullPointerException
because you do not have the user and password params in the
database.xml. At least specify a user in the database (it doesn't
necessarily need a password, but it's a good idea) you still need
to specify the following:
<database name="test" engine="mysql">
<driver class-name="org.gjt.mm.mysql.Driver"
url="jdbc:mysql://localhost/lexikon">
<param name="user" value="<USER>" />
<param name="password" value="" />
</driver>
<mapping href="mapping.xml" />
</database>
--
perl -e 'print unpack("u30","<0G)U8V4\@4VYY9&5R\"F9E<G)E=\$\!F<FEI+F-O;0\`\`");'
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev