File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JBoss/WildFly and the fly likes NameNotFoundException (Urgently) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "NameNotFoundException (Urgently)" Watch "NameNotFoundException (Urgently)" New topic

NameNotFoundException (Urgently)

Benjamin Ho

Joined: Nov 19, 2003
Posts: 16
hi everybody,
i need your help. would you mind telling me what happens? i met an exception as "javax.naming.NameNotFoundException: SessionPersonHome not bound" when i run a program as client to call session bean.
the environment : In a folder as TestClient containing the following files or folders:
Notice: TestPersonEJB4.jar including any folders with three classes as SessionPerson.class, SessionPersonHome.class, SessionPersonBean.class and a folder as META-INF containing jboss.xml, ejb-jar.xml
The command for running the client program as:
C:\ClientTest>java -classpath .;jbossall-client.jar;TestPersonEJB4.jar TestPerson
Then the output as the exception:
javax.naming.NameNotFoundException: SessionPersonHome not bound
Please tell me!! Thank you very much..
Best regards,
Brian Boyle

Joined: Nov 17, 2003
Posts: 13
It looks like your ejb-jar.xml is not defined correctly. Like I suggested go to the offical Jboss forum to get expert help. And when you post a problem there include your code samples such as ejb-jar.xml.
I agree. Here's the link:
subject: NameNotFoundException (Urgently)
It's not a secret anymore!