[WLS 12.1.3]-WAR Shared-Library Doesn't Merge Ejb-jar.xml And Weblogic-ejb-jar.xml (Doc ID 2063133.1)

Last updated on JUNE 09, 2016

Applies to:

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

Symptoms

On WLS 12.1.3,WAR Shared-Library doesn't merge ejb-jar.xml and weblogic-ejb-jar.xml

Given from the documentation that deployment descriptor should be merged 

https://docs.oracle.com/middleware/1213/wls/WLPRG/libraries.htm#WLPRG325

However we notice below behavior and associated stack trace below

1) It doesn't merge ejb-jar.xml saying that they are duplicated
2) weblogic-ejb-jar.xml from the shared library is ignored instead of merged  

<Warning> <Deployer> <BEA-149078> <Stack trace for message 149004 

 weblogic.application.ModuleException: Multiple WEB-INF/ejb-jar.xml found.
 [weblogic.servlet.internal.WarSource@a307a,
 weblogic.servlet.internal.WarSource@f4a1d0]
 at  weblogic.ejb.container.deployer.EjbModuleExtensionFactory.create(EjbModuleExtensionFactory.java:26)
 at  weblogic.application.internal.ExtensibleModuleWrapper.createModuleExtensions(E xtensibleModuleWrapper.java:264)
 at weblogic.application.internal.ExtensibleModuleWrapper.initDrivenObjectArray(ExtensibleModuleWrapper.java:232)
 at weblogic.application.internal.ExtensibleModuleWrapper.prepare(ExtensibleModuleWrapper.java:107)
 ...

Cause

Sign In with your My Oracle Support account

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

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms