Проблемы со швом 3 на WildFly 8 Final

Я использую WildFly 8 и переношу свой проект Java EE6 на Java EE7 из-за некоторых вещей WebSocket.

В Maven я использую следующие спецификации...

  • org.wildfly.bom:jboss-javaee-7.0-with-tools:8.0.0.Final
  • org.wildfly.bom:jboss-javaee-7.0-with-hibernate:8.0.0.Final
  • org.jboss.seam: шов-бом:3.1.0.Final

И я получаю следующее исключение при развертывании:

org.jboss.weld.exceptions.IllegalArgumentException: WELD-000818: Event type class org.jboss.solder.config.xml.bootstrap.ProcessAnnotatedTypeImpl is not allowed  

1 ответ

Вы можете попробовать включить "прежний режим", чтобы сварка была немного более спокойной в отношении проверки. Откройте standalone.xml и измените конфигурацию подсистемы сварки:

<subsystem xmlns="urn:jboss:domain:weld:2.0" require-bean-descriptor="true" non-portable-mode="true" />

Из документации что это значит:

<xs:attribute name="require-bean-descriptor" type="xs:boolean" default="false">
    <xs:annotation>
        <xs:documentation>If true then implicit bean archives without bean descriptor file (beans.xml) are ignored by Weld</xs:documentation>
    </xs:annotation>
</xs:attribute>
<xs:attribute name="non-portable-mode" type="xs:boolean" default="false">
    <xs:annotation>
        <xs:documentation>If true then the non-portable mode is enabled. The non-portable mode is suggested by the specification to overcome problems with legacy applications that do not use CDI SPI properly and may be rejected by more strict validation in CDI 1.1.</xs:documentation>
    </xs:annotation>
</xs:attribute>
Другие вопросы по тегам