部署EAR时Glassfish异常

时间:2015-02-05 18:49:10

标签: java glassfish ear

我有以下包结构:A,B,C,D,E,F

A: Enterprise Application Project, includes B, C, D, E
B: Basics for C, D
C, D: Application modules
E: JPA
F: Web project

当我尝试在Glassfish上部署EAR文件时,会遇到以下异常:

Error occurred during deployment: Exception while deploying the app [A] : Cannot resolve reference [Remote ejb-ref name=...Remote 3.x interface =...,ejb-link=null,lookup=,mappedName=,jndi-name=,refType=Session] because there are [3] ejbs in the application with interface .... Some of the possible causes: 1. The EJB bean class was packaged in an ear lib library (or through any other library mechanism which makes the library visible to all component modules), this makes all the component modules include this bean class indirectly. 2. The EJB bean class was packaged in a component module which references the EJB, either directly or indirectly through Manifest, WEB-INF/lib. The EJB bean class should only be packaged in the declaring ejb module and not the referencing modules. The referencing modules should only include EJB interfaces.. Please see server.log for more details. 

所有模块jar / war文件在EAR中只有一次。

有没有人提示解决这个问题?

0 个答案:

没有答案