Sorry I forgot to put my prop file. Yes i use the LocalInitialContextFactory
java.naming.factory.initial = org.apache.openejb.client.LocalInitialContextFactory It doesn't work with context.lookup("java:global/webJpaPoc/CustomerFacade"); Here is my stacktrace for the jndi : INFO: Jndi(name=CustomerFacadeLocalBean) --> Ejb(deployment-id=CustomerFacade) 7 nov. 2012 16:15:17 org.apache.openejb.assembler.classic.JndiBuilder bind INFO: Jndi(name=global/classpath.ear/webJpaPoc/CustomerFacade!facade.CustomerFacade) --> Ejb(deployment-id=CustomerFacade) 7 nov. 2012 16:15:17 org.apache.openejb.assembler.classic.JndiBuilder bind INFO: Jndi(name=global/classpath.ear/webJpaPoc/CustomerFacade) --> Ejb(deployment-id=CustomerFacade) -- View this message in context: http://openejb.979440.n4.nabble.com/Adapt-ejb-run-on-java-app-to-web-app-tp4658420p4658430.html Sent from the OpenEJB User mailing list archive at Nabble.com.