实体Bean的jndiName=local/PeopleBean,查找的时候找不到?

04-06-23 aill
实体bean PeopleBean实现本地接口,部署后jndiName=local/PeopleBean

在会话bean中访问实体bean
home=(PeopleLocalHome)ic.lookup("java:comp/env/ejb/PeopleBean");
抛出错误:ejb not bound
我修改成这样
home=(PeopleLocalHome)ic.lookup("java:comp/env/ejb/local/PeopleBean");
也还是抛出同样的错误,
哪里出问题了?