Weblogic.Xml.Process.Saxvalidationexception: Could Not Locate Bean With Ejb-Name (Doc ID 1278034.1)

Last updated on JUNE 09, 2016

Applies to:

Oracle Weblogic Server - Version: 10.0 and later   [Release: and later ]
Information in this document applies to any platform.

Symptoms

When deploying EJB application you may run into the below exception:
Caused by: javax.enterprise.deploy.spi.exceptions.InvalidModuleException: [J2EE Deployment SPI:260106]Failed to parse descriptor at
'META-INF/weblogic-ejb-jar.xml' for module 'sample_common_customapprover_java_ejb_CustomApprover.jar':
javax.xml.stream.XMLStreamException: weblogic.xml.process.SAXValidationException: Could not locate bean with ejb-name
"sample_common_customapprover_java_ejb_CustomApprover" in ejb-jar.xml
at weblogic.deploy.api.spi.config.BasicDConfigBeanRoot.populateFromDD(BasicDConfigBeanRoot.java:357)
at weblogic.j2ee.descriptor.wl.WeblogicEjbJarBeanDConfig.<init>(WeblogicEjbJarBeanDConfig.java:72)
at sun.reflect.GeneratedConstructorAccessor137.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at weblogic.deploy.api.spi.config.DeploymentConfigurationImpl.constructDCB(DeploymentConfigurationImpl.java:608)
at weblogic.deploy.api.spi.config.DeploymentConfigurationImpl.initDConfig(DeploymentConfigurationImpl.java:733)
at weblogic.deploy.api.spi.config.DeploymentConfigurationImpl.getDConfigBeanRoot(DeploymentConfigurationImpl.java:169)
... 112 more

Changes

Upgrading from WLS 8.1 to higher version of WebLogic server.

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