简体   繁体   English

Glassfish 4.1上的EJB部署问题

[英]EJB Deployment trouble on Glassfish 4.1

I need help for a web based java application. 我需要基于Web的Java应用程序的帮助。 I have an already done project on IntelliJ 14, that contains 3 modules: JSF, EJB and JPA (with eclipse link). 我已经在IntelliJ 14上完成了一个项目,其中包含3个模块:JSF,EJB和JPA(带有eclipse链接)。 The Application container is Glassfish 4.1. 应用程序容器是Glassfish 4.1。 There is no problem during the building, but when i do the deployment on Glassfish...the follow exception is released: 在构建过程中没有问题,但是当我在Glassfish上进行部署时...发布了以下异常:

"Exception while deploying the app [appname-web-1.0-SNAPSHOT] : 
Cannot resolve reference Local ejb-ref name= ... Local 3.x interface =...,ejb-link=null,lookup=,mappedName=,jndi-name=,refType=Session. Please see server.log for more details."

The server.log is empty (I don't know why) From IntelliJ I can see the deploy of ejb module is gone well, but the war module made that exception I think that the war module cannot find the ejb module (where the ejb class are) I attach 2 images with project structure and deploy structure server.log为空(我不知道为什么),从IntelliJ中我可以看到ejb模块的部署进展顺利,但是war模块产生了例外,我认为war模块无法找到ejb模块(其中ejb类是)我将2个图像附加到项目结构和部署结构中

http://it.tinypic.com/r/r8fp50/8 http://it.tinypic.com/r/r8fp50/8

http://it.tinypic.com/r/30naf4z/8 http://it.tinypic.com/r/30naf4z/8

I spent over 3 days on this issue...and I don't know how I can do. 我在这个问题上花了超过3天的时间...我不知道该怎么办。

在glassfish 4.1中,当必须部署ejb时有一个错误,请尝试使用glassfish 4,因为我没有遇到该问题,我认为问题是glassfish 4.1中的jersey lib

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM