Hallo!
With JBoss 3.2.7, JBoss Cache 1.2,
treecache-service.xml:
<server> <classpath codebase="lib" archives="jboss-cache.jar, jgroups.jar"/> <mbean code="org.jboss.cache.TreeCache" name="jboss.cache:service=TreeCache"> <depends>jboss:service=Naming</depends> <depends>jboss:service=TransactionManager</depends> <!-- Configure the TransactionManager --> <attribute name="TransactionManagerLookupClass">org.jboss.cache.DummyTransactionManagerLookup</attribute> <!-- Node locking level : SERIALIZABLE REPEATABLE_READ (default) READ_COMMITTED READ_UNCOMMITTED NONE --> <attribute name="IsolationLevel">REPEATABLE_READ</attribute> <!-- Valid modes are LOCAL REPL_ASYNC REPL_SYNC --> <attribute name="CacheMode">REPL_ASYNC</attribute> <!-- Name of cluster. Needs to be the same for all clusters, in order to find each other --> <attribute name="ClusterName">TreeCache-Cluster</attribute> ....
16:08:55,724 WARN [TreeCache] No transaction manager lookup class has been defined. Transactions cannot be used
<attribute name="TransactionManagerLookupClass">org.jboss.cache.JBossTransactionManagerLookup</attribute>instead of the DummyTransactionManagerLookup
13:20:35,493 ERROR [TreeCache] Starting failed jboss.cache:service=TreeCache java.lang.ClassNotFoundException: No ClassLoaders found for: org.jboss.cache.transaction.GenericTransactionManagerLookup at org.jboss.mx.loading.LoadMgr3.beginLoadTask(LoadMgr3.java:275)
The dummy TM is what ships with JBoss Cache for testing, tutorials, etc.
If you are running the cache in JBoss AS, use the JBossTransactionManagerLookup to get a hold of the TM that ships with JBoss AS.