Switchyard application fails to deploy on Fuse 6.2.1 due to IllegalStateException in deltaspike

Solution Verified - Updated -

Issue

Deploying a Switchyard application (packaged in an *.ear archive) fails with the following exception:

17:38:29,628 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-3) MSC000001: Failed to start service jboss.deployment.subunit."soa.ear"."sample.jar".SwitchYardService: org.jboss.msc.service.StartException in service jboss.deployment.subunit."soa.ear"."sample.jar".SwitchYardService: java.lang.IllegalStateException: No org.apache.deltaspike.core.api.provider.BeanManagerProvider in place! Please ensure that you configured the CDI implementation of your choice properly. If your setup is correct, please clear all caches and compiled artifacts.
    at org.switchyard.as7.extension.services.SwitchYardService.start(SwitchYardService.java:84)
    at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1980) [jboss-msc-1.1.5.Final-redhat-1.jar:1.1.5.Final-redhat-1]
    at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1913) [jboss-msc-1.1.5.Final-redhat-1.jar:1.1.5.Final-redhat-1]
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [rt.jar:1.8.0_66]
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [rt.jar:1.8.0_66]
    at java.lang.Thread.run(Thread.java:745) [rt.jar:1.8.0_66]
Caused by: java.lang.IllegalStateException: No org.apache.deltaspike.core.api.provider.BeanManagerProvider in place! Please ensure that you configured the CDI implementation of your choice properly. If your setup is correct, please clear all caches and compiled artifacts.
    at org.apache.deltaspike.core.api.provider.BeanManagerProvider.getInstance(BeanManagerProvider.java:164)
    at org.apache.deltaspike.core.api.provider.BeanProvider.getBeanManager(BeanProvider.java:510)
    at org.apache.deltaspike.core.api.provider.BeanProvider.getBeanDefinitions(BeanProvider.java:385)
    at org.apache.camel.cdi.CdiBeanRegistry.findByTypeWithName(CdiBeanRegistry.java:60)
    at org.apache.camel.impl.CompositeRegistry.findByTypeWithName(CompositeRegistry.java:91)
    at org.apache.camel.impl.PropertyPlaceholderDelegateRegistry.findByTypeWithName(PropertyPlaceholderDelegateRegistry.java:70)
    at org.apache.camel.impl.PropertyPlaceholderDelegateRegistry.lookupByType(PropertyPlaceholderDelegateRegistry.java:86)
    at org.switchyard.bus.camel.processors.InterceptProcessor.<init>(InterceptProcessor.java:62)
    at org.switchyard.bus.camel.processors.Processors$10.create(Processors.java:122)
    at org.switchyard.bus.camel.CamelExchangeBus.init(CamelExchangeBus.java:61)
    at org.switchyard.internal.DomainImpl.init(DomainImpl.java:215)
    at org.switchyard.deploy.ServiceDomainManager.createDomain(ServiceDomainManager.java:124)
    at org.switchyard.as7.extension.deployment.SwitchYardDeployment.start(SwitchYardDeployment.java:109)
    at org.switchyard.as7.extension.services.SwitchYardService.start(SwitchYardService.java:77)
    ... 5 more

Environment

  • Red Hat JBoss Fuse Service Works
    • 6.2.1

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content