Will do on the ant file next time. 

Also, I originally had the JDO2.loadConfiguration(string) method in
there, and it did the same thing. Well try it again just to make sure
I wasn't smoking something. I changed around just to try it out, but
it didn't help either way. But, all is working since I put the files
in a directory in the jar file....odd.

-Nick

On Apr 5, 2005 1:26 PM, Bruce Snyder <[EMAIL PROTECTED]> wrote:
> On Apr 5, 2005 9:10 AM, Nick Stuart <[EMAIL PROTECTED]> wrote:
> > Bug 1926 has been entered for this.
> 
> Nick,
> 
> Change your Test.java constructor to use the loadConfiguration( String
> url ) method instead of the loadConfiguration( String url, ClassLoader
> cl ) like so:
> 
> public Test() {
>          ClassLoader cl = getClass().getClassLoader();
>          try{
>          // JDO2.loadConfiguration(cl.getResource(CONFIG).toString(), cl);
>          JDO2.loadConfiguration(cl.getResource(CONFIG).toString() );
>          JDO2 jdo = JDO2.createInstance(DATABASE);
>          System.out.println("Database loaded correctly.");
>          }catch (MappingException me){
>           me.printStackTrace();
>          }
> }
> 
> Nice job on the test case, BTW. This helped me see the issue within
> five minutes time. My only suggestion is to create a target in the Ant
> build descriptor to execute the test case.
> 
> Bruce
> --
> perl -e 'print unpack("u30","D0G)[EMAIL 
> PROTECTED]&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
> );'
> 
> The Castor Project
> http://www.castor.org/
> 
> Apache Geronimo
> http://geronimo.apache.org/
>

Reply via email to