Are you running this on the same box as the app server? Doesn't sound like
it.
If not, you need to point java to that app server. The easy way is to do
the following prior to trying to init Castor:
< use appropriate values! >
System.setProperty( Context.PROVIDER_URL, "t3://myserver:7001" );
System.setProperty( Context.INITIAL_CONTEXT_FACTORY,
"weblogic.jndi.WLInitialContextFactory" );
HTH
********************************************
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 11:12 AM
To: [EMAIL PROTECTED]
Subject: Re: [castor-dev] DataSource through JNDI?
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
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev