• 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 ...
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Bear Bibeault
  • Rob Spoor
  • Henry Wong
  • Liutauras Vilda
Saloon Keepers:
  • Tim Moores
  • Carey Brown
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Frits Walraven
  • Himai Minh
  • Jj Roberts

Problem in local refrence

Posts: 26
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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(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 >>>>>>>>


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 ]
Nothing? Or something? Like this tiny ad:
SKIP - a book about connecting industrious people with elderly land owners
    Bookmark Topic Watch Topic
  • New Topic