I am trying to enable infinispan cache in Wildfly 9
. I modified standalone-full.xml under:
<subsystem xmlns="urn:jboss:domain:infinispan:3.0">
<cache-container name="myCache" jndi-name="java:jboss/infinispan/container/myCache">
<local-cache name="cachedb"/>
</cache-container>
Started server using bellow command:
standalone --server-config=standalone-full.xml -b 0.0.0.0
And getting following error:
Context initialization failed: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cacheController': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [org.infinispan.manager.CacheContainer] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@javax.annotation.Resource(shareable=true, lookup=java:jboss/infinispan/container/myCache, name=, description=, authenticationType=CONTAINER, type=class java.lang.Object, mappedName=)}