Thanks.

I'm using JDBC in place of DataSource and I solve the problem.


----- Original Message -----
From: "Bruce Snyder" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, March 28, 2002 2:53 AM
Subject: Re: [castor-dev] problems with jdo.setConfiguration


> This one time, at band camp, Diego Vallespir said:
>
> DV>Hello:
> DV>
> DV>   First of all, sorry for my english, I know is bad.
> DV>
> DV>    Sorry for bother with this question. I think is a easy one, but I
don't find the answer.
> DV>
> DV>    When I do this:
> DV>
> DV>        URL myurl =  getClass().getResource( "database-castor.xml");
> DV>
> DV>     the object URL is null.
> DV>
> DV>    I don't know what is this. Is this a problem with the path??? I
mean, the problem is that can't find the file???
> DV>
> DV>    Because I can't do this work I try this:
> DV>
> DV>    jdo.setConfiguration( "file:///D:/database/database-castor.xml" );
> DV>
> DV>    when I use this I have a problem when I do jdo.getDatabase();
> DV>
> DV>   the error is
> DV>java.lang.IllegalStateException: Data source class name does not extend
javax.sql.DataSource
>
> Diego,
>
> The call to getClass.getResource() is going to grab a file relative
> to the class from which it is called. That is, Java is looking for
> database-castor.xml in the same directory as the class that is making
> the request.
>
> The error that you're receiving is due to problems with the
> database-castor.xml configuration. I believe this error is due to the
> fact that you're trying to use a JDBC driver inside of a <datasource>
> element. Please post the database-castor.xml file for us to review.
>
> Bruce
> --
>
> perl -e 'print unpack("u44",
"\?0G)U8V4\@4VYY9&5R\"F)R=6-E0&)S;GED97(N;W)G\"\@\`\`");'
>
> -----------------------------------------------------------
> If you wish to unsubscribe from this mailing, send mail to
> [EMAIL PROTECTED] with a subject of:
> unsubscribe castor-dev
>
>

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

Reply via email to