Did you try the snapshot? If not please do Le 28 juin 2013 12:25, "amol.p.dongare" <[email protected]> a écrit :
> I tried but no use still giving me the same error. > > My client code is > > > props.put(Context.INITIAL_CONTEXT_FACTORY, > "org.apache.openejb.client.RemoteInitialContextFactory"); > props.put(Context.PROVIDER_URL, " > http://localhost:8080/tomee/ejb"); > InitialContext ctx = new InitialContext(props); > > > DataSource dsn = (DataSource)ctx.lookup("DerbyDatabase"); > > It throws > > Jun 28, 2013 2:39:38 PM org.apache.openejb.client.EventLogger log > INFO: > RemoteInitialContextCreated{providerUri=http://localhost:8080/tomee/ejb} > Exception in thread "main" java.lang.ClassCastException: > org.apache.openejb.client.ThrowableArtifact cannot be cast to > java.lang.Error > at > org.apache.openejb.client.JNDIContext.lookup(JNDIContext.java:294) > at javax.naming.InitialContext.lookup(InitialContext.java:392) > at client.DerbyDatabaseClient.main(DerbyDatabaseClient.java:21) > > > PLease help... > > > > -- > View this message in context: > http://openejb.979440.n4.nabble.com/Problem-while-configuring-Derby-Database-tp4663977p4663989.html > Sent from the OpenEJB User mailing list archive at Nabble.com. >
