This content has been marked as final.
Show 2 replies
-
1. Re: wildfly-8.0.0.CR1 and Apache Camel CXFRS components
ctomc Dec 23, 2013 6:53 AM (in response to traviskds)This is specified CDI 1.1 functionality
you can disable automatically enabling CDI for all archives.
See http://weld.cdi-spec.org/documentation/ on how to do that.
-
2. Re: Re: wildfly-8.0.0.CR1 and Apache Camel CXFRS components
traviskds Dec 25, 2013 5:25 PM (in response to ctomc)Thanks ctomc. That was the issue.
I also had a few other issues where I was getting the WELD-001408 Unsatisfied dependencies errors. For anyone else who might have similar issues, this is what I did. I had to change my bean.xml as below.
<?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://xmlns.jcp.org/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/beans_1_1.xsd" bean-discovery-mode="annotated"> </beans>
Note that the namespaces have changed to jcp now. This link provides some good info on this.
Also in the above bean.xml, note the bean-discovery-mode attribute. For my use case, I had to set it to annotated but other possible values are none and all.