Skip to main content

GlassFish Deploy Error

1 reply [Last post]
palanagappan
Offline
Joined: 2010-08-20

While trying to Deploy an application in GlassFish v3.1 I am getting the below error message.
Exception while deploying the app : java.lang.RuntimeException: Cannot resolve reference Local ejb-ref name=cc.aa.bb/uSUsersBean,Local 3.x interface =cc.aa.uSUsersLocal,ejb-link=null,lookup=null,mappedName=,jndi-name=,refType=Session because there are 2 ejbs in the application with interface cc.aa.uSUsersLocal
If any one has across similar problem, please let me know how to proceed in this case.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
hzhang_jn
Offline
Joined: 2005-07-22

It seems the same EJB bean class was packaged twice in the archive. Please check your packaging.
A common cause of this is the same bean class was packaged in both ejb jar and the war which references the EJB (either directly or through Manifest Class-Path entry). The referencing war should only package EJB interfaces and not the bean class.