• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Rob Spoor
  • Henry Wong
  • Liutauras Vilda
Saloon Keepers:
  • Tim Moores
  • Carey Brown
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
Bartenders:
  • Frits Walraven
  • Himai Minh
  • Jj Roberts

Problem in local refrence

 
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Nothing? Or something? Like this tiny ad:
SKIP - a book about connecting industrious people with elderly land owners
https://coderanch.com/t/skip-book
reply
    Bookmark Topic Watch Topic
  • New Topic