• Post Reply Bookmark Topic Watch Topic
  • New Topic

Problem in local refrence  RSS feed

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

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(NamingServer.java:491)
at org.jnp.server.NamingServer.getBinding(NamingServer.java:499)
at org.jnp.server.NamingServer.getObject(NamingServer.java:505)
at org.jnp.server.NamingServer.lookup(NamingServer.java:278)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

-- 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 >>>>>>>>

<ejb-local-ref>
<ejb-ref-name>ejb/Player</ejb-ref-name>
<ejb-ref-type>Entity</ejb-ref-type>
<local-home>Roster.PlayerHome</local-home>
<local>Roster.Player</local>
<ejb-link>Player</ejb-link>
</ejb-local-ref>

---------------------------------------------------------------
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.create();
client.adPlayer(new Integer(4),"solmaz","anvar","1111");



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

Regards.
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!