2014-02-24 37 views
0

我正在使用WildFly 8,並且我正在將我的Java EE6項目遷移到Java EE7,因爲有些WebSocket的東西。WildFly 8上Seam 3的問題最後

在Maven中,我用下面的材料清單...

  • org.wildfly.bom:jboss-javaee-7.0-with-tools:8.0.0.Final
  • org.wildfly.bom :的jboss-JavaEE的-7.0與 - 休眠: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 

回答

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> 
+0

沒有工作,對不起。和以前一樣的問題。 – mitchkman