Problems with Seam 3 on WildFly 8 Final

I'm using WildFly 8 and I'm migrating my Java EE6 project to Java EE7 due to some WebSocket stuff.

In Maven, I use the following BOMs...

  • org.jboss.seam:seam-bom:3.1.0.Final

And I get the following Exception on deployment:

org.jboss.weld.exceptions.IllegalArgumentException: WELD-000818: Event type class org.jboss.solder.config.xml.bootstrap.ProcessAnnotatedTypeImpl is not allowed  


You can try enabling "legacy mode" for weld to be bit more relaxed about validation. Open standalone.xml and edit weld subsystem configuration to:

<subsystem xmlns="urn:jboss:domain:weld:2.0" require-bean-descriptor="true" non-portable-mode="true" />

From documentation what this means:

<xs:attribute name="require-bean-descriptor" type="xs:boolean" default="false">
        <xs:documentation>If true then implicit bean archives without bean descriptor file (beans.xml) are ignored by Weld</xs:documentation>
<xs:attribute name="non-portable-mode" type="xs:boolean" default="false">
        <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>

Need Your Help

Best way to check if a drop down list contains a value?

c# drop-down-menu

When the user navigates to a new page, this ddl's selected index is determined by a cookie, but if the ddl doesn't contain that cookie's value, then I'd like it to be set the 0. What method would I...

jQtouch + Phonegap: Document head setup

javascript iphone web-applications jqtouch cordova

I've recently built a webapp using jQTouch &amp; packaged in PhoneGap (both latest versions). I'm now attempting to optimise the app, and was hoping to get some information on how to correctly set...