8 Replies Latest reply on Jan 20, 2012 11:25 AM by andersbohn

    AS 7 CR1 cache start eager fails..

    andersbohn

      on 7.1Beta1b I could set a cache to start="EAGER", but not on 7.1CR1:

       

      01:32:06,892 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-7) MSC00001: Failed to start service jboss.infinispan.hibernate.entity: org.jboss.msc.service.StartException in service jboss.infinispan.hibernate.entity: Failed to start service

                at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1780) [jboss-msc-1.0.1.GA.jar:1.0.1.GA]

                at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_29]

                at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_29]

                at java.lang.Thread.run(Thread.java:680) [:1.6.0_29]

      Caused by: org.infinispan.CacheException: This is transactional cache but no transaction manager could be found. Configure the transaction manager lookup properly.

                at org.infinispan.factories.TransactionManagerFactory.construct(TransactionManagerFactory.java:80)

                at org.infinispan.factories.AbstractComponentRegistry.getOrCreateComponent(AbstractComponentRegistry.java:278)

                at org.infinispan.factories.AbstractComponentRegistry.invokeInjectionMethod(AbstractComponentRegistry.java:218)

      <...>

      01:32:06,912 ERROR [org.jboss.as] (Controller Boot Thread) JBoss AS 7.1.0.CR1b "Flux Capacitor" started (with errors) in 2362ms - Started 127 of 197 services (1 services failed or missing dependencies, 67 services are passive or on-demand)

       

      Eg modify the default configuration/standardalone.xml by adding:

       

        <subsystem xmlns="urn:jboss:domain:infinispan:1.1" default-cache-container="hibernate">

                  <cache-container name="hibernate" default-cache="local-query">

                      <local-cache name="entity" start="EAGER">

                          <eviction strategy="LRU" max-entries="10000"/>

                          <expiration max-idle="100000"/>

                      </local-cache>

       

      I'm experimenting with infinispan-query (seperate question) and this setting would testing module-setup a lot easier..

       

      OSX,

      ava version "1.6.0_29"

      Java(TM) SE Runtime Environment (build 1.6.0_29-b11-402-11M3527)

      Java HotSpot(TM) 64-Bit Server VM (build 20.4-b02-402, mixed mode)