Do you have a sample reproducing it? (a maven war project runnable with mvn tomee:run + a junit test for the client would be perfect to let us have a quick look)
*Romain Manni-Bucau* *Twitter: @rmannibucau <https://twitter.com/rmannibucau>* *Blog: **http://rmannibucau.wordpress.com/*<http://rmannibucau.wordpress.com/> *LinkedIn: **http://fr.linkedin.com/in/rmannibucau* *Github: https://github.com/rmannibucau* 2013/8/19 amol.p.dongare <[email protected]> > Hello Romain, > > Thanks for your reply. > > I tried your suggestion(java:openejb/Resource/DerbyDatabase) but unable to > look up derby data source from command line client. > > Below my error log - > > Aug 19, 2013 9:43:15 AM org.apache.openejb.client.EventLogger log > INFO: > RemoteInitialContextCreated{providerUri=http://localhost:8080/tomee/ejb} > *Exception in thread "main" javax.naming.NameNotFoundException: > openejb/Resource/DerbyDatabase does not exist in the system. Check that > the > app was successfully deployed.* > at > org.apache.openejb.client.JNDIContext.lookup(JNDIContext.java:281) > at javax.naming.InitialContext.lookup(InitialContext.java:392) > at com.engineous.test.Datasource.main(Datasource.java:36) > > > However I have configured Derby Data source with JNDI name DerbyDatabase > > Seel log below from TomEE console > INFO: Configuring Service(id=DerbyDatabase, type=Resource, > provider-id=Default JDBC Database) > > > Is there any additional system property I need to set at client side for > data source lookup? > > Your help will be highly appreciable. > > > > > -- > View this message in context: > http://openejb.979440.n4.nabble.com/Error-while-looking-Derby-Datasource-from-Command-Client-in-TomEE-tp4664669p4664712.html > Sent from the OpenEJB User mailing list archive at Nabble.com. >
