I'm getting this following output when i call _jdo.getDatabase , and I'm
pretty sure the JDO is valid

[test] org.exolab.castor.jdo.DatabaseNotFoundException: Nested error:
javax.naming.NoInitialContextException: Need to specify class name in
environment or system property, or as an applet parameter, or in an
application resource file:  java.naming.factory.initial [test]
javax.naming.NoInitialContextException: Need to specify class name in
environment or system property, or as an applet parameter, or in an
application resource file:  java.naming.factory.initial [test]  at
javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:640)
[test]  at
javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:243)
[test]  at
javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:280)
[test]  at javax.naming.InitialContext.lookup(InitialContext.java:347)
[test]  at
org.exolab.castor.jdo.engine.DatabaseRegistry.loadDatabase(DatabaseRegistry.
java:308) [test]        at
org.exolab.castor.jdo.JDO.getDatabase(JDO.java:559) [test]      at
jdo.Test.run(Test.java:172) [test]      at jdo.Test.main(Test.java:58)

-----Original Message-----
From: Ebersole, Steven [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 24, 2002 12:00 PM
To: [EMAIL PROTECTED]
Subject: Re: [castor-dev] DataSource through JNDI?


I use a JNDI DataSource in my database.xml and then bind the resulting JDO
object into JNDI.  Works fine for me.  What is the problem you are having?


********************************************
Steve Ebersole
IT Integration Engineer
Vignette Corporation 
512.741.4195

Visit http://www.vignette.com

********************************************


-----Original Message-----
From: Tse, Leo [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 24, 2002 10:19 AM
To: [EMAIL PROTECTED]
Subject: [castor-dev] DataSource through JNDI?


Hi,

Does anyone have any luck using JDO through a DataSource lookup from the
JNDI tree?
I've read the postings on retrieving a JDO from JNDI, and I've gotten that
part to go... 
but I can only specifiy a driver in my database.xml,
not a DataSource from JNDI...  
any pointers would be great!!
thanks!!
        

----------------------------------------------------------- 
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

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

Reply via email to