Hi there! I'm getting the following error the first time I use jbosscache AOP on Tomcat 5.5.
109 [http-127.0.0.1-80-2] ERROR org.jboss.cache.transaction.DummyTransactionManager - binding of DummyTransactionManager failed javax.naming.NamingException: Context is read only at org.apache.naming.NamingContext.checkWritable(NamingContext.java:902) at org.apache.naming.NamingContext.bind(NamingContext.java:830) at org.apache.naming.NamingContext.bind(NamingContext.java:170) at org.apache.naming.NamingContext.bind(NamingContext.java:186) at org.apache.naming.SelectorContext.bind(SelectorContext.java:170) at javax.naming.InitialContext.bind(Unknown Source) at org.jboss.cache.transaction.DummyTransactionManager.getInstance(DummyTransactionManager.java:32) at org.jboss.cache.DummyTransactionManagerLookup.getTransactionManager(DummyTransactionManagerLookup.java:17)
<mbean code="org.jboss.cache.TreeCacheAop" name="jboss.cache:service=TreeCacheAop"> <depends>jboss:service=Naming</depends> <depends>jboss:service=TransactionManager</depends> <attribute name="TransactionManagerLookupClass">org.jboss.cache.DummyTransactionManagerLookup</attribute>
javax.transaction.RollbackException at org.jboss.cache.transaction.DummyTransaction.commit(DummyTransaction.java:67) at org.jboss.cache.transaction.DummyBaseTransactionManager.commit(DummyBaseTransactionManager.java:60)
What happens if you leave the TransactionManagerLookupCLass empty?