2 Replies Latest reply on Aug 21, 2018 11:16 AM by hohwille

    CXF JAR conflict Exception: "WELD-000071: Managed bean with a parameterized bean class must be @Dependent: class org.apache.cxf.jaxrs.provider.JAXBElementProvider"

    zidoff

      Hi

       

      I'm using WildFly 12.0.0 Final with JDK 1.8 u171; The deployed War and Ear files contain  CXF 3.1.5 JAR files;

       

      Kindly advice about a solution to avoid the below exception knowing that WildFly 12.0.0 Final has built-in CXF 5.2.0 Web Service and it's related JAR files:

      2018-05-15 10:28:57,856 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-1) MSC000001: Failed to start service jboss.deployment.unit."Test.ear".WeldStartService: org.jboss.msc.service.StartException in service jboss.deployment.unit."iMALServices.ear".WeldStartService: Failed to start service

           at org.jboss.msc.service.ServiceControllerImpl$StartTask.execute(ServiceControllerImpl.java:1706)

           at org.jboss.msc.service.ServiceControllerImpl$ControllerTask.run(ServiceControllerImpl.java:1540)

           at org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)

           at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1985)

           at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1487)

           at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1378)

           at java.lang.Thread.run(Thread.java:748)

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

           at org.jboss.weld.bean.ManagedBean.checkType(ManagedBean.java:211)

           at org.jboss.weld.bean.AbstractBean.initializeAfterBeanDiscovery(AbstractBean.java:109)

           at org.jboss.weld.bean.ManagedBean.initializeAfterBeanDiscovery(ManagedBean.java:122)

           at org.jboss.weld.bootstrap.ConcurrentBeanDeployer$AfterBeanDiscoveryInitializerFactory.doWork(ConcurrentBeanDeployer.java:111)

           at org.jboss.weld.bootstrap.ConcurrentBeanDeployer$AfterBeanDiscoveryInitializerFactory.doWork(ConcurrentBeanDeployer.java:102)

           at org.jboss.weld.executor.IterativeWorkerTaskFactory$1.call(IterativeWorkerTaskFactory.java:62)

           at org.jboss.weld.executor.IterativeWorkerTaskFactory$1.call(IterativeWorkerTaskFactory.java:55)

           at java.util.concurrent.FutureTask.run(FutureTask.java:266)

           at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)

           at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)

           at java.lang.Thread.run(Thread.java:748)

           at org.jboss.threads.JBossThread.run(JBossThread.java:485)

       

      Thanks and Best Regards