2 Replies Latest reply on Dec 25, 2013 5:25 PM by Travis De Silva

    wildfly-8.0.0.CR1 and Apache Camel CXFRS components

    Travis De Silva Newbie



      After a bit of pain, I was able to get the Apache Camel CXFRS component to work with wildfly-8.0.0.Beta1. I had to add an explicit module dependencies declaration in the jboss-deployment-structure.xml file as indicated in this port.


      Now after I downloaded wildfly-8.0.0.CR1 and deployed my application to it, I am getting similar errors to the below.

      Caused by: org.jboss.weld.exceptions.DefinitionException: WELD-000071: Managed bean class org.apache.cxf.jaxrs.provider.JAXBElementProvider must be @Dependent

      I get different class names when I try it at different times. I think all classes annotated with @Provider (under the org.apache.cxf.jaxrs.provider package in the cxf-rt-frontend-jaxrs-2.7.7.jar) gets scanned and wildfly is reporting the error on just one class.


      Does anyone know why I am getting this error and how I can resolve it? This was working fine in wildfly-8.0.0.Beta1, so not sure why it does not work in wildfly-8.0.0.CR1?