我们在 WebSphere Liberty 21.0.0.5 上部署了一个应用程序。启动服务器时出现错误:
An exception occurred while starting the application xxxxxxxxxx. The exception message was:
com.ibm.ws.container.service.state.StateChangeException: com.ibm.ws.cdi.CDIException:
com.ibm.wsspi.injectionengine.InjectionException: com.ibm.ejs.container.EJBConfigurationException:
EJB class xxx.xxxx.xxx.xxxxxxxxx.xxxx.xxxxxxxxxx.xxxxxxx.xxxx.Applications must have a public
constructor that takes no parameters : xxxxxxxxxx#xxxxxxxxxx.war#Applications"
在已编译的 Applications 类中,当然存在必需的构造函数。这不是应用程序本身的问题,因为它在其他环境中没有问题。 EJB 看不到构造函数的可能原因是什么?