EAR工件部署期间的IntelliJ Idea Glassfish错误需要有效的ejb jar

时间:2015-09-03 13:32:17

标签: deployment intellij-idea ejb glassfish-3 ear

我在从IntelliJ Idea 14.0.3中部署到Glassfish 3.1.2 Application Server的EJB.ear工件期间收到此错误:

Connected to server
[2015-09-03 06:32:26,411] Artifact MyEar:ear: Error during artifact deployment. See server log for details.
[2015-09-03 06:32:26,412] Artifact MyEar:ear: java.io.IOException: com.sun.enterprise.admin.remote.RemoteFailureException: Error occurred during deployment: Exception while deploying the app [MyEar] : Invalid ejb jar [MyEjb-3.2.0.jar]: it contains zero ejb. 
Note: 
1. A valid ejb jar requires at least one session, entity (1.x/2.x style), or message-driven bean. 
2. EJB3+ entity beans (@Entity) are POJOs and please package them as library jar. 
3. If the jar file contains valid EJBs which are annotated with EJB component level annotations (@Stateless, @Stateful, @MessageDriven, @Singleton), please check server.log to see whether the annotations were processed properly.. Please see server.log for more details.

EJB.ear和其他war文件都可以,可以通过Glassfish管理控制台在外部成功部署。 我注意到的一件事是,我必须在从Glassfish管理控制台部署时检查兼容性复选框。

请参阅下面附带的屏幕截图,然后安装成功。 如何从IntelliJ Idea中实现对EAR部署的相同兼容性检查?

0 个答案:

没有答案