Getting "Unmarshaller Failed" and "BeanAlreadyExistsException" Errors While Deploying an Upgraded WebLogic Portal (WLP) Application (Doc ID 1054722.1)

Last updated on FEBRUARY 07, 2017

Applies to:

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

Symptoms

Seeing the following exceptions when deploying an upgraded WebLogic Portal (WLP) application:

<Error> <J2EE> <unxp6w> <SVR2_DEV3> <[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'> <> <> <> <1261589974927>
<BEA-160197> <Unable to load descriptor weblogic.utils.classloaders.GenericClassLoader@11ad922 finder: weblogic.utils.classloaders.CodeGenClassFinder@1b56115 annotation: XXX@/META-INF/application.xml of module null.
The error is weblogic.descriptor.DescriptorException: Unmarshaller failed

at weblogic.descriptor.internal.MarshallerFactory$1.createDescriptor(MarshallerFactory.java:152)
at weblogic.descriptor.BasicDescriptorManager.createDescriptor(BasicDescriptorManager.java:306)
at weblogic.application.descriptor.AbstractDescriptorLoader2.getDescriptorBeanFromReader(AbstractDescriptorLoader2.java:788)
at weblogic.application.descriptor.AbstractDescriptorLoader2.updateDescriptorWithBean(AbstractDescriptorLoader2.java:681)
at weblogic.application.ApplicationDescriptor.updateApplicationDescriptor(ApplicationDescriptor.java:415)
at weblogic.application.utils.LibraryLoggingUtils.updateDescriptor(LibraryLoggingUtils.java:459)
at weblogic.servlet.internal.WarLibraryDefinition.addWebModule(WarLibraryDefinition.java:238)
at weblogic.servlet.internal.WarLibraryDefinition.importLibrary(WarLibraryDefinition.java:202)
at weblogic.application.utils.LibraryLoggingUtils.importLibrary(LibraryLoggingUtils.java:420)
at weblogic.application.utils.LibraryUtils.processLibraryReference(LibraryUtils.java:285)
at weblogic.application.utils.LibraryUtils.importAppLibraries(LibraryUtils.java:241)
at weblogic.application.internal.flow.ImportLibrariesFlow.prepare(ImportLibrariesFlow.java:66)
at weblogic.application.internal.BaseDeployment$1.next(BaseDeployment.java:615)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:191)
at weblogic.application.internal.EarDeployment.prepare(EarDeployment.java:16)
at weblogic.application.internal.DeploymentStateChecker.prepare(DeploymentStateChecker.java:155)
at weblogic.deploy.internal.targetserver.AppContainerInvoker.prepare(AppContainerInvoker.java:60)
at weblogic.deploy.internal.targetserver.AppDeployment.prepare(AppDeployment.java:141)
at weblogic.management.deploy.internal.DeploymentAdapter$1.doPrepare(DeploymentAdapter.java:39)
at weblogic.management.deploy.internal.DeploymentAdapter.prepare(DeploymentAdapter.java:187)
at weblogic.management.deploy.internal.AppTransition$1.transitionApp(AppTransition.java:21)
at weblogic.management.deploy.internal.ConfiguredDeployments.transitionApps(ConfiguredDeployments.java:233)
at weblogic.management.deploy.internal.ConfiguredDeployments.prepare(ConfiguredDeployments.java:165)
at weblogic.management.deploy.internal.ConfiguredDeployments.deploy(ConfiguredDeployments.java:122)
at weblogic.management.deploy.internal.DeploymentServerService.resume(DeploymentServerService.java:173)
at weblogic.management.deploy.internal.DeploymentServerService.start(DeploymentServerService.java:89)
at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)

Caused by: com.bea.xml.XmlException: weblogic.descriptor.BeanAlreadyExistsException: Bean already exists: "weblogic.j2ee.descriptor.ModuleBeanImpl@5fb7d2ad(/Modules[weblogic.descriptor.internal.DescriptorBeanKey@5e601655])"

at com.bea.staxb.runtime.internal.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:54)
at com.bea.staxb.runtime.internal.RuntimeBindingType$BeanRuntimeProperty.setValue(RuntimeBindingType.java:531)
at com.bea.staxb.runtime.internal.AttributeRuntimeBindingType$QNameRuntimeProperty.fillCollection(AttributeRuntimeBindingType.java:385)
at com.bea.staxb.runtime.internal.MultiIntermediary.getFinalValue(MultiIntermediary.java:52)
at com.bea.staxb.runtime.internal.AttributeRuntimeBindingType.getFinalObjectFromIntermediary(AttributeRuntimeBindingType.java:145)
at com.bea.staxb.runtime.internal.UnmarshalResult.unmarshalBindingType(UnmarshalResult.java:190)
at com.bea.staxb.runtime.internal.UnmarshalResult.unmarshalDocument(UnmarshalResult.java:159)
at com.bea.staxb.runtime.internal.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:65)
at weblogic.descriptor.internal.MarshallerFactory$1.createDescriptor(MarshallerFactory.java:141)
... 29 more

Caused by: weblogic.descriptor.BeanAlreadyExistsException: Bean already exists: "weblogic.j2ee.descriptor.ModuleBeanImpl@5fb7d2ad(/Modules[weblogic.descriptor.internal.DescriptorBeanKey@5e601655])"

at weblogic.descriptor.internal.ReferenceManager.registerBean(ReferenceManager.java:227)
at weblogic.j2ee.descriptor.ApplicationBeanImpl.setModules(ApplicationBeanImpl.java:422)
at sun.reflect.GeneratedMethodAccessor152.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.bea.staxb.runtime.internal.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:48)

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