title: Managed bean with a parameterized bean class must be @Dependent: class org.apache.cxf.jaxrs.provider.AbstractCachingMessageProvider
body: <p>After adding <strong>tika parser</strong> in my application I am getting the following error in my Spring Application. I am  running the application on <code>wildfly 10.1.1 final</code>.</p>
  
  <pre><code>11:11:30,371 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-2) MSC000001: Failed to start service jboss.deployment.unit."MyApp.war".WeldStartService: org.jboss.msc.service.StartException in service jboss.deployment.unit."MyApp.war".WeldStartService: Failed to start service
          at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1904)
          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
          at java.lang.Thread.run(Thread.java:745)
  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.AbstractCachingMessageProvider
          at org.jboss.weld.bean.ManagedBean.checkType(ManagedBean.java:208)
          at org.jboss.weld.bean.AbstractBean.initializeAfterBeanDiscovery(AbstractBean.java:107)
          at org.jboss.weld.bean.ManagedBean.initializeAfterBeanDiscovery(ManagedBean.java:122)
          at org.jboss.weld.bootstrap.ConcurrentBeanDeployer$AfterBeanDiscoveryInitializerFactory.doWork(ConcurrentBeanDeployer.java:136)
          at org.jboss.weld.bootstrap.ConcurrentBeanDeployer$AfterBeanDiscoveryInitializerFactory.doWork(ConcurrentBeanDeployer.java:127)
          at org.jboss.weld.executor.IterativeWorkerTaskFactory$1.call(IterativeWorkerTaskFactory.java:63)
          at org.jboss.weld.executor.IterativeWorkerTaskFactory$1.call(IterativeWorkerTaskFactory.java:56)
          at java.util.concurrent.FutureTask.run(FutureTask.java:266)
          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
          at java.lang.Thread.run(Thread.java:745)
          at org.jboss.threads.JBossThread.run(JBossThread.java:320)
  </code></pre>
  
  <p>As per the solutions previously given I have included the following files in my application:</p>
  
  <ol>
  <li><code>jboss-all.xml</code> - Location is (<code>src/main/resources/META-INF/</code>)</li>
  <li><code>beans.xml</code> - Location is (<code>src/main/webapp/WEB-INF/</code>)</li>
  </ol>
  
  <p>The contents are as follows :</p>
  
  <p><strong>beans.xml</strong></p>
  
  <pre><code>&lt;beans xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xmlns="http://java.sun.com/xml/ns/javaee"
      xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
      http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"   version="2.5"
      bean-discovery-mode="annotated"&gt;   
  &lt;/beans&gt;
  </code></pre>
  
  <p><strong>jboss-all.xml</strong></p>
  
  <pre><code>&lt;jboss xmlns="urn:jboss:1.0"&gt;
      &lt;weld xmlns="urn:jboss:weld:1.0" require-bean-descriptor="true"/&gt;
  &lt;/jboss&gt;
  </code></pre>
  
  <p>Please let me know if anything else to be done for the fix . I am still getting the same exception as mentioned above .</p>