【问题标题】:Problems with Seam 3 on WildFly 8 FinalWildFly 8 Final 上的 Seam 3 问题
【发布时间】:2014-02-24 16:35:14
【问题描述】:

我正在使用 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: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  

【问题讨论】:

    标签: java jboss seam seam3 wildfly


    【解决方案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>
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2015-12-03
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-04-02
      • 2018-09-26
      • 2014-08-10
      相关资源
      最近更新 更多