Win a copy of Head First Agile this week in the Agile forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Problem in local refrence  RSS feed

Solmaz Anvar
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I'm new in Ejb.
I develop my Ejb in jBuilder with jboss.

I create session bean with simple remote method to show 'Hello World' .when i test my Application client
it work fine. but when i create session bean that call one BMP entity bean method localy and try client application
this errror appear :

javax.naming.NameNotFoundException: Roster not bound
at org.jnp.server.NamingServer.getBinding(
at org.jnp.server.NamingServer.getBinding(
at org.jnp.server.NamingServer.getObject(
at org.jnp.server.NamingServer.lookup(
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(

-- Calling create()
-- Failed : create()
-- Return value from create(): null.

Error in show(): Remote interface reference is null. It must be created by calling one of the Home interface methods first.


Local Refrence in ejb-jar.xml >>>>>>>>


Look up Method Entity Player in Session Bean >>>>>>

Object objref = initial.lookup("java:comp/env/ejb/Player");
PlayerHome plyHome = (PlayerHome) objref;

Client Application Main Method >>>>>>>>>>>>

RosterTestClient client = new RosterTestClient();
client.adPlayer(new Integer(4),"solmaz","anvar","1111");

I don't khow what is wrong.
Please Help me.

Solmaz Anvar

[ July 20, 2005: Message edited by: Solmaz Anvar ]
[ July 21, 2005: Message edited by: Solmaz Anvar ]
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!