Сбой компонента, управляемого сообщениями, во время развертывания в WebLogic

у нас есть приложение J2EE, которое можно развернуть на серверах приложений weblogic и wildfly. У нас есть требование добавить bean-компонент, управляемый сообщениями, но он не работает в weblogic со следующей ошибкой:

Caused by: com.bea.xml.XmlException: weblogic.descriptor.BeanAlreadyExistsException: weblogic.j2ee.descriptor.ActivationConfigBeanImpl@604422f7(//[SampleMDB]/ActivationConfig) has already been created
at com.bea.staxb.runtime.internal.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:54)
at com.bea.staxb.runtime.internal.RuntimeBindingType$BeanRuntimeProperty.setValue(RuntimeBindingType.java:541)
at com.bea.staxb.runtime.internal.MultiIntermediary.setValue(MultiIntermediary.java:81)
at com.bea.staxb.runtime.internal.ByNameRuntimeBindingType$ElementQNameProperty.fill(ByNameRuntimeBindingType.java:355)
at com.bea.staxb.runtime.internal.LiteralUnmarshalResult.extractAndFillElementProp(LiteralUnmarshalResult.java:159)
at com.bea.staxb.runtime.internal.ByNameUnmarshaller.deserializeContents(ByNameUnmarshaller.java:67)
at com.bea.staxb.runtime.internal.AttributeUnmarshaller.unmarshalIntoIntermediary(AttributeUnmarshaller.java:47)
at com.bea.staxb.runtime.internal.LiteralUnmarshalResult.unmarshalElementProperty(LiteralUnmarshalResult.java:184)
at com.bea.staxb.runtime.internal.LiteralUnmarshalResult.extractAndFillElementProp(LiteralUnmarshalResult.java:157)
at com.bea.staxb.runtime.internal.ByNameUnmarshaller.deserializeContents(ByNameUnmarshaller.java:67)
at com.bea.staxb.runtime.internal.AttributeUnmarshaller.unmarshalIntoIntermediary(AttributeUnmarshaller.java:47)
at com.bea.staxb.runtime.internal.LiteralUnmarshalResult.unmarshalElementProperty(LiteralUnmarshalResult.java:184)
at com.bea.staxb.runtime.internal.LiteralUnmarshalResult.extractAndFillElementProp(LiteralUnmarshalResult.java:157)
at com.bea.staxb.runtime.internal.ByNameUnmarshaller.deserializeContents(ByNameUnmarshaller.java:67)
at com.bea.staxb.runtime.internal.AttributeUnmarshaller.unmarshalIntoIntermediary(AttributeUnmarshaller.java:47)
at com.bea.staxb.runtime.internal.UnmarshalResult.unmarshalBindingType(UnmarshalResult.java:199)
at com.bea.staxb.runtime.internal.UnmarshalResult.unmarshalDocument(UnmarshalResult.java:169)
at com.bea.staxb.runtime.internal.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:67)
at weblogic.descriptor.internal.MarshallerFactory$1.createDescriptor(MarshallerFactory.java:155)
... 139 more

Ниже приведены подробности из файлов дескрипторов: ejb-jar.xml

<message-driven>
    <ejb-name>SampleMDB</ejb-name>
    <ejb-class>com.test.SampleBean</ejb-class>
    <transaction-type>Container</transaction-type>
    <activation-config>
        <activation-config-property>
            <activation-config-property-name>destination</activation-config-property-name>
            <activation-config-property-value>test.queue</activation-config-property-value>
    </activation-config-property>
    </activation-config>
    <message-driven-destination>
        <destination-type>javax.jms.Queue</destination-type>
    </message-driven-destination>
</message-driven>

В дескрипторах сервера приложений нет ничего.


person Ashwin Waghchaure    schedule 25.11.2020    source источник


Ответы (2)


  1. Какой у вас номер текущей версии Weblogic?

  2. Запуск предоставляет соответствующий журнал server.log

  3. Пожалуйста, проверьте файл web.xml. Проверьте, повторяются ли сопоставления, taglib или другие определения в соответствии с сообщением об ошибке.

person jaymarco    schedule 26.11.2020
comment
Текущая версия Weblogic — 12.2.1.3, а текущая версия wildfly — 11. - person Ashwin Waghchaure; 26.11.2020
comment
В web.xml нет повторяющихся сопоставлений и определений. - person Ashwin Waghchaure; 26.11.2020
comment
Запуск предоставляет соответствующий журнал server.log - person jaymarco; 26.11.2020

Пожалуйста, проверьте файл web.xml. Проверьте, повторяются ли сопоставления, taglib или другие определения в соответствии с сообщением об ошибке.

person jaymarco    schedule 26.11.2020