My Oracle Support Banner

EJB Based Application Deployment Fails With The Error "Resolving ejb-ref" (Doc ID 1540618.1)

Last updated on AUGUST 27, 2021

Applies to:

Oracle WebLogic Server - Version and later
Information in this document applies to any platform.


Cannot deploy EJB based application (Maven generated) to WLS 12.1.1 due to the error below.
No problem with WLS 10.3.5/6.


weblogic.application.naming.ReferenceResolutionException: [J2EE:160199]Error resolving ejb-ref "<PACKAGE_NAME>.<SERVLET_NAME>" from module "<WARFILE_NAME>" of application "<APPLICATION_NAME>". The ejb-ref does not have an ejb-link and the JNDI name of the target bean has not been specified. Attempts to automatically link the ejb-ref to its target bean failed because multiple EJBs in the application were found to implement the "<PACKAGE_NAME>.<CLASS_NAME>" interface, including <JARFILE_NAME>/<CLASS_NAME>, <WARFILE_NAME>/<CLASS_NAME>. Specify a qualified ejb-link for this ejb-ref to indicate which EJB is the target of this ejb-ref.
at weblogic.application.naming.EnvUtils.findInfo(
at weblogic.application.naming.EnvUtils.findInfoByReferenceClass(
at weblogic.application.naming.EjbReferenceResolver.resolveEjbRef(
at weblogic.application.naming.EjbReferenceResolver.resolve(
at weblogic.application.naming.EjbReferenceResolver.get(
at weblogic.application.naming.EnvironmentBuilder.bindEJBReferences(
at weblogic.servlet.internal.CompEnv.activate(
at weblogic.servlet.internal.WebAppServletContext.activate(
at weblogic.servlet.internal.WebAppModule.activateContexts(





To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.