Ah ok, so i deleted all the other openejb.jar from my WEB-INF/lib and
downloaded the lastest version of openejb-client:
openejb-client-4.6.0.jar
javaee-api-6.0-5.jar
Now, i go through the lookup
PersonneFacadeRemote pfl = (PersonneFacadeRemote)
ic.lookup("java:global/Ejb3/PersonneFacadeImpl!com.training.domain.ejb.facade.PersonneFacadeRemote");
but it throws this exception below at the next instruction
pfl.create(personne) :
avr. 08, 2014 2:07:54 PM org.apache.openejb.client.EventLogger log
Infos:
RemoteInitialContextCreated{providerUri=http://localhost:8082/tomee/ejb}
Exception in thread "main" javax.ejb.EJBException: The bean encountered a
non-application exception; nested exception is:
java.lang.NullPointerException
at
org.apache.openejb.client.EJBInvocationHandler.convertException(EJBInvocationHandler.java:260)
It seems to be an incompactibility with jdk version 1.7 ? I'll try to update
my jdk or get older version of openejb client later. I'll let you know ....
Thks
--
View this message in context:
http://openejb.979440.n4.nabble.com/Problem-to-create-initialContext-tp4668512p4668648.html
Sent from the OpenEJB Dev mailing list archive at Nabble.com.