tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Romain Manni-Bucau <rmannibu...@gmail.com>
Subject Re: NullPointerException when JNDI lookup for remote bean
Date Wed, 02 Jan 2013 05:28:17 GMT
Well in tomee ejb isnot active by default but your issue is relative to the
jndi name you use IMO

Which one is it?
Can you reproduce the issue in a sharable project?
Le 2 janv. 2013 01:28, "superhans" <superhans@ludete.de> a écrit :

> Have someone had the same problem? I'm using tomee 1.5.1 and I can't look
> up
> a remote bean either:
>
> java.lang.NullPointerException
>         at
>
> org.apache.openejb.client.JNDIContext.createBusinessObject(JNDIContext.java:188)
>         at
> org.apache.openejb.client.JNDIContext.lookup(JNDIContext.java:232)
>         at javax.naming.InitialContext.lookup(InitialContext.java:411)
>         at [...]
>
> That's the configuration of my ContextFactory:
> Properties props = new Properties();
> props.put(Context.INITIAL_CONTEXT_FACTORY,
> "org.apache.openejb.client.RemoteInitialContextFactory");
> props.put(Context.PROVIDER_URL, "http://"+server+"/tomee/ejb");
>
> I've tried before to use ejbd protocol ("ejbd://127.0.0.1:8080") but this
> have not worked ...
>
> Can someone help me?
>
> Best regards
> Superhans
>
>
>
> --
> View this message in context:
> http://openejb.979440.n4.nabble.com/NullPointerException-when-JNDI-lookup-for-remote-bean-tp4407278p4660005.html
> Sent from the OpenEJB User mailing list archive at Nabble.com.
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message