EJB 在部署在 WebSphere Liberty 上的应用程序中看不到默认构造函数

我们在 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 看不到构造函数的可能原因是什么?

beautytai 回答:EJB 在部署在 WebSphere Liberty 上的应用程序中看不到默认构造函数

暂时没有好的解决方案,如果你有好的解决方案,请发邮件至:iooj@foxmail.com
本文链接:https://www.f2er.com/37156.html

大家都在问