I am getting the exception:
WELD-001408 Unsatisfied dependencies for type [EmbeddedCacheManager] with qualifiers [@Default] at injection point [[parameter 1] of [constructor] @Inject public org.jboss.jdf.example.ticketmonster.service.SeatAllocationService(EmbeddedCacheManager)].
Does anyone have some tip? I have already confirmed that beans.xml is in src\main\webapp\WEB-INF and I am not publishing more than one jar. It's only one project.
@Inject public SeatAllocationService(EmbeddedCacheManager manager) {
Configuration allocation = new ConfigurationBuilder()
.transaction()
.transactionMode(TransactionMode.TRANSACTIONAL)
.transactionManagerLookup(new JBossTransactionManagerLookup())
.lockingMode(LockingMode.PESSIMISTIC)
.loaders()
.addFileCacheStore()
.purgeOnStartup(true)
.build();
manager.defineConfiguration(ALLOCATIONS, allocation);
this.cache = manager.getCache(ALLOCATIONS);
}
POM snippet:
<dependencyManagement>
...
<artifactId>jboss-javaee-6.0-with-infinispan</artifactId>
...
</dependencyManagement>
<dependencies>
...
<artifactId>infinispan-core</artifactId>
...
</dependencies>