JBoss AS 7 error: WAR deployment succeeds, EAR deployment fails

后端 未结 2 1636
走了就别回头了
走了就别回头了 2021-01-22 04:11

I take the same exact same web application and deploy it as an WAR with no problems. However, same application deployed as EAR fails. Same files, just different deployment. F

2条回答
  •  南方客
    南方客 (楼主)
    2021-01-22 04:27

    When using an EAR deployment, EJB's should be in the /lib directory of the EAR or you need to add false to get the EE subsystem to recognize the EJB JAR.

    Another option would be to add Dependencies: Webapp-ejb-1.0-SNAPSHOT to the MANIFEST.MF in your WAR.

    You can get more information on class loading with EAR's from the following documentation https://docs.jboss.org/author/display/AS7/Class+Loading+in+AS7.

提交回复
热议问题