2014-02-24 2 views
0

WildFly 8을 사용 중이며 일부 WebSocket 항목으로 인해 Java EE6 프로젝트를 Java EE7로 마이그레이션하려고합니다.WildFly 8에서 Seam 3 관련 문제 Final

메이븐에서, 나는 다음과 BOM을 사용하여 ...

  • 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