使用 IBM WAS 8.5.5.9 和 JAVA-8,但 EJB 2.1 未部署并给出错误

Using IBM WAS 8.5.5.9 and JAVA-8, but EJB 2.1 is not getting deployed giving error

使用 IBM WAS 8.5.5.9 和 JAVA-8,但 EJB 2.1 未部署并出现错误。

failed with exception: com.ibm.ejs.container.EJBConfigurationException: Bean class 
    com.abc.def.EJSLocalStatelessEmployeeEjb_4333dc could not be found or loaded
at com.ibm.ws.metadata.ejb.EJBMDOrchestrator.loadGeneratedImplementationClasses    
    (EJBMDOrchestrator.java:4858)
at com.ibm.ws.metadata.ejb.EJBMDOrchestrator.finishBMDInitWithReferenceContext 
    (EJBMDOrchestrator.java:1076)

请提供帮助,谢谢。

WebSphere Application Server 9.0 beta 知识中心的产品 beta 页面中的已知限制声明 "EJBDeploy does not support previously existing enterprise beans with Java 8"。我在 WebSphere Application Server 8.5 的知识中心找不到关于此限制的提及,但如果存在限制,我不会感到惊讶。

@客人说的很准确。 WAS 8.5.5.9 中的 EJBDeploy 不适用于 Java 8。限制记录在此处: https://www.ibm.com/support/knowledgecenter/en/SSEQTP_8.5.5/com.ibm.websphere.base.doc/ae/rtrb_ejbdeploy390.html

使用 Java 8 运行 EJBDeploy 所需的基础库更新对于服务流而言过于广泛且具有破坏性。 WebSphere Application Server 的更新 v9 中提供了对 EJBDeploy 和 Java8 的全面支持。