我正在使用WildFly 8,并且由于某些WebSocket的原因,我正在将我的Java EE6项目迁移到Java EE7。
在Maven中,我使用以下BOM ...
我在部署时遇到以下异常:
org.jboss.weld.exceptions.IllegalArgumentException: WELD-000818: Event type class org.jboss.solder.config.xml.bootstrap.ProcessAnnotatedTypeImpl is not allowed
答案 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>