Unable to resolve duplicate bean error on publishing in Workshop. (Doc ID 1184824.1)

Last updated on DECEMBER 03, 2012

Applies to:

BEA WebLogic Workshop - Version All and later
Information in this document applies to any platform.

Symptoms

On publishing a Webservice project you will be unable to resolve a duplicate bean error.
This occurs when using your own Spring configuration in Workshop 10.2. You will have a Webservice that includes both Beehive and Controls facets added by picking the defaults in WLW.
When you add the spring listeners in the web.xml file, you will get duplicate bean errors on publishing because there is both a ./build/webcontent/WEB-INF/web.xml and a ./jws/weboutput/WEB-INF/web.xml.

<Mar 30, 2010 5:30:32 PM MDT> <Error> <J2EE> <BEA-160197> <Unable to load descriptor C:\projects\qcontrol\qcreportService\build\jws\weboutput/WEB-INF/web.xml of
module qcreportService.war. 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:292)
at weblogic.descriptor.BasicDescriptorManager.createDescriptor(BasicDescriptorManager.java:260)
at weblogic.application.descriptor.AbstractDescriptorLoader2.getDescriptorBeanFromReader(AbstractDescriptorLoader2.java:774)
at weblogic.application.descriptor.AbstractDescriptorLoader2._mergeDescriptors(AbstractDescriptorLoader2.java:565)
at weblogic.application.descriptor.AbstractDescriptorLoader2.mergeDescriptors(AbstractDescriptorLoader2.java:486)
at weblogic.application.descriptor.AbstractDescriptorLoader2.mergeDescriptors(AbstractDescriptorLoader2.java:463)

Changes

N/A

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