NameNotFoundException: ejb not bound when aquiring EJB Home interface - 2.1.2.FINAL

483 views
Skip to first unread message

Tomasz Zieleniewski

unread,
Sep 2, 2010, 11:32:14 AM9/2/10
to mobicent...@googlegroups.com
Hi,

When I tried to acquire the EJB Home interface through the SBB’s component environment I got the NameNotFoundException: ejb not bound.
How does Mobicents/over JBoss search for EJB Home interface?
I have my EJB home deployed:

15:03:49,359 INFO  [JBossASKernel]   with dependencies:
15:03:49,375 INFO  [JBossASKernel]   and demands:
15:03:49,390 INFO  [JBossASKernel]      jboss.ejb:service=EJBTimerService
15:03:49,406 INFO  [JBossASKernel]   and supplies:
15:03:49,406 INFO  [JBossASKernel]      jndi:test-ear-1.0.0/Bean/home
15:03:49,421 INFO  [JBossASKernel]      jndi:test-ear-1.0.0/Bean/remote
15:03:49,437 INFO  [JBossASKernel]      Class:com.ictbackyard.bean.JSLEEHome

Do I have to make some additional EJB reference with jboss.xml?

javax.naming.NamingException: Could not dereference object [Root exception is javax.naming.NameNotFoundException: ejb not bound]
        at org.jnp.interfaces.NamingContext.resolveLink(NamingContext.java:1352)
        at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:817)
        at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:686)
        at com.ictbackyard.sbb.TestSbb.invokeEJB(TestSbb.java:140)
        at com.ictbackyard.sbb.TestSbb.onServiceStartedEvent(TestSbb.java:75)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.mobicents.slee.runtime.sbbentity.SbbEntityImpl.invokeEventHandler(SbbEntityImpl.java:645)
        at org.mobicents.slee.runtime.eventrouter.routingtask.EventRoutingTaskImpl.routeQueuedEvent(EventRoutingTaskImpl.java:353)
        at org.mobicents.slee.runtime.eventrouter.routingtask.EventRoutingTaskImpl.run(EventRoutingTaskImpl.java:103)
        at org.mobicents.slee.runtime.eventrouter.EventRouterExecutorImpl$EventRoutingTaskStatsCollector.run(EventRouterExecutorImpl.java:51)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
        at java.lang.Thread.run(Thread.java:619)
Caused by: javax.naming.NameNotFoundException: ejb not bound
        at org.jnp.server.NamingServer.getBinding(NamingServer.java:771)
        at org.jnp.server.NamingServer.getBinding(NamingServer.java:779)
        at org.jnp.server.NamingServer.getObject(NamingServer.java:785)
        at org.jnp.server.NamingServer.lookup(NamingServer.java:396)
        at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:726)
        at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:686)
        at javax.naming.InitialContext.lookup(InitialContext.java:392)
        at org.jnp.interfaces.NamingContext.resolveLink(NamingContext.java:1346)
        ... 15 more

Kind regards,
- Tomasz Zieleniewski
------------------------------
ICT Backyard - http://ictbackyard.com

Bartosz Baranowski

unread,
Sep 2, 2010, 1:11:52 PM9/2/10
to mobicent...@googlegroups.com
This might be stupid question - did you add ejb-ref in sbb-jar.xml ??
Bartosz Baranowski
JBoss R & D
==================================
Word of criticism meant to improve is always step forward.

Tomasz Zieleniewski

unread,
Sep 2, 2010, 2:39:52 PM9/2/10
to mobicents-public
But this question, as Your motto says, is a step towards solving this
issue :)
Yep, sure I did :))

<ejb-ref>
<ejb-ref-name>ejb/JSLEE</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<home>com.ictbackyard.JSLEEHome</home>
<remote>com.ictbackyard.JSLEEObject</remote>
</ejb-ref>

- Tomasz

On 2 Wrz, 19:11, Bartosz Baranowski <baran...@gmail.com> wrote:
> This might be stupid question - did you add ejb-ref in sbb-jar.xml ??
> Bartosz Baranowski
> JBoss R & D
> ==================================
> Word of criticism meant to improve is always step forward.
>
> On Thu, Sep 2, 2010 at 5:32 PM, Tomasz Zieleniewski <tzieleniew...@gmail.com

Eduardo Martins

unread,
Sep 3, 2010, 9:59:26 AM9/3/10
to mobicent...@googlegroups.com
It's not implemented, please open an issue requesting such feature.

-- Eduardo

-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-
http://emmartins.blogspot.com
http://www.redhat.com/solutions/telco

Tomasz Zieleniewski

unread,
Sep 3, 2010, 11:15:13 AM9/3/10
to mobicents-public
Issue opened.
http://code.google.com/p/mobicents/issues/detail?id=1777

Cheers,
- Tomasz

On 3 Wrz, 15:59, Eduardo Martins <emmart...@gmail.com> wrote:
> It's not implemented, please open an issue requesting such feature.
>
> -- Eduardo
>
> -:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-http://emmartins.blogspot.comhttp://www.redhat.com/solutions/telco
>
> On Thu, Sep 2, 2010 at 7:39 PM, Tomasz Zieleniewski
>
Reply all
Reply to author
Forward
0 new messages