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