Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

NameNotFoundException (Urgently)

 
Benjamin Ho
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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:
-TestPerson.java
-TestPerson.class
-jbossall-client.jar
-TestPersonEJB4.jar
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,
Benjamin
 
Brian Boyle
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It looks like your ejb-jar.xml is not defined correctly. Like I suggested go to the offical Jboss forum to get expert help. http://www.jboss.org/jive.jsp And when you post a problem there include your code samples such as ejb-jar.xml.
Brian
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic