Details
-
Bug
-
Status: Resolved
-
Critical
-
Resolution: Invalid
-
3.1.2, 4.7.0
-
None
-
None
-
None
-
java.naming.factory.initial = org.apache.openejb.client.LocalInitialContextFactory
Description
Steps to reproduce:
context.bind("some/component/name", String.class);
context.lookup("some/component/name"); // throws NameNotFoundException
The problem raises from the fact that the lookup method adds the "local" prefix to the name. But the object is actually bound under "some/component/name", not under "local/some/component/name". The lookup will throw an exception because the name is not found.