WildFly 8决赛中Seam 3的问题

时间:2014-02-24 16:35:15

标签: java jboss seam seam3 wildfly

我正在使用WildFly 8,并且由于某些WebSocket的原因,我正在将我的Java EE6项目迁移到Java EE7。

在Maven中,我使用以下BOM ...

  • 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:缝BOM: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 个答案:

答案 0 :(得分:0)

您可以尝试启用焊接的“遗留模式”,以便在验证时更加轻松。 打开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>