WAS 8.5.5 ejb 查找产生无效的对象引用 com.ibm.ws.naming.util.InvalidObjectException

WAS 8.5.5 ejb lookup produces invalid object reference com.ibm.ws.naming.util.InvalidObjectException

com.ibm.ws.naming.util.InvalidObjectException: Some object reference in the name "MyEJB" relative to the context "path/to/myserver" is invalid. 
Some possible causes include a context binding in the name which refers to a destroyed context, or an object binding which contains an invalid EJBHome reference.
[Root exception is org.omg.CORBA.INV_OBJREF: Could not resolve IOR string. vmcid: 0x0 minor code: 0 completed: No] 

正在查找应用程序中的其他 ejb。不同之处在于此 ejb 的 bean class 已修改,只有新的 class 文件在 ear 中更新,应用程序在 WAS 管理控制台中使用此 ear 文件更新。

我是否必须为 ejb 重新生成部署代码(stub/tie 等)?

仅当bean 接口被修改或bean 实现方法的签名发生变化时,才需要重新生成EJB 部署代码。如果这些没有改变,那么问题很可能是 bean 未能启动。检查日志(Systemout.log 和 FFDC 日志)以查找与该 EJB 相关的任何其他错误。应用程序可能启动良好,但通常 EJB 初始化会推迟到第一次使用时,这通常是第一次查找 bean。最后,验证日志是否包含一条 CNTR0167I 消息,表明该 bean 已使用查找名称绑定在 JNDI 中。