开发者

Deploying remote EJB and Web application

I have successfully deployed an EJB 3 module and a JSF WEB app which calls the EJB module's beans using netbeans IDE locally. Now when I try to deploy this in staging environment, i get the following error:

root cause

javax.servlet.ServletException: com.sun.enterprise.InjectionException: Exception attempting to inject Unresolved Ejb-Ref com.store.managedbeans.CustomerManagedBean/customerService@jndi: com.store.service.CustomerRemote@null@com.store.service.CustomerRemote@Session@null into class com.store.managedbeans.CustomerManagedBean

root cause javax.naming.NameNotFoundException: com.store.service.CustomerRemote#com.store.service.CustomerRemote not found

I have deployed the EJB module and Web application in glassfish v2 (in the staging environment).The jar of the EJB Module开发者_高级运维 is inside WEB-INF/lib folder of web application. It looks like the web app cannot find the EJB module. The classes are annotated with @Remote. And I am calling interfaces and not the bean by using @EJB. And of course, this worked find when I deployed it under Netbeans.


From the comments:

The EJB Module was referencing a JMS Queue Connection Factory. The resource hadn't been created in the staging glassfish server. Although the EJB module was allowed to be deployed, the JNDI Log from the console reveals that none of the EJBs were bound to any names because of a problem in deploying the module.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜