wflyejb0405:未找到具有类型接口的EJB.我的EJB类名称



我的项目是一个WebApplication,它在JBoss EAP 7上运行,并在Strut和Spring中开发,该jboss and Spring调用ejb类,该类别存在于jar文件中,该jar文件在构建中存在路径(我的主要项目的lib文件夹(,我在web.xml中提到了类名。当我构建项目时,它显示以下错误,请在需要配置以及我需要做的事情的情况下提供帮助。我的项目是在JBOSS EAP 7

注意: - 我的EJB类不是基于注释的。

Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: WFLYEJB0405: No EJB found with interface of type 'common.ejb.service.BusinessServiceLocalHome' and name 'BusinessService.jar#BusinessService' for binding java:module/env/local/loan/BusinessService

web.xml: -

<ejb-local-ref id="EJBLocalRef_1179231224570">
        <ejb-ref-name>local/Loan/BusinessService</ejb-ref-name>
        <ejb-ref-type>Session</ejb-ref-type>
        <local-home>common.ejb.service.BusinessServiceLocalHome</local-home>
        <local>common.ejb.service.BusinessServiceLocal</local>
        <ejb-link>BusinessService.jar#BusinessService</ejb-link>
</ejb-local-ref>

因为您只是构建战争文件,您可以删除:

 <ejb-link>BusinessService.jar#BusinessService</ejb-link>

仅在多模块的EAR文件中需要此机制。战争文件中的所有罐子都被认为是同一Web模块的一部分。

最新更新