Unable to find BeanManager. Please ensure that you configured the CDI implementation of your choice properly in JBoss EAP 6

Solution Unverified - Updated -

Issue

We are using Quartz Scheduler in our application, when the job executes it calls DeltaSpike which is trying to lookup the CDI BeanManager and is failing with this error:

java.lang.IllegalStateException: Unable to find BeanManager. Please ensure that you configured the CDI implementation of your choice properly.]
  at org.quartz.core.JobRunShell.run(JobRunShell.java:213)
  at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573)
Caused by: java.lang.IllegalStateException: Unable to find BeanManager. Please ensure that you configured the CDI implementation of your choice properly.
  at org.apache.deltaspike.core.api.provider.BeanManagerProvider.getBeanManager(BeanManagerProvider.java:242)
  at org.apache.deltaspike.core.api.provider.BeanProvider.getBeanManager(BeanProvider.java:521)
  at org.apache.deltaspike.core.api.provider.BeanProvider.getContextualReference(BeanProvider.java:119)
  at org.apache.deltaspike.core.api.provider.BeanProvider.getContextualReference(BeanProvider.java:100)
  at com.examples.scheduler.Resources.getContextualReference(Resources.java:22)
  at com.examples.scheduler.MyQuartzJob.execute(MyQuartzJob.java:16)
  at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
  ... 1 more

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 6.4

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In