1 Reply Latest reply on Jan 18, 2006 2:06 AM by ben.wang

    DummyTransactionManager: Context is read only error on Tomca

    joereger

      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)


      In my replSync-service.xml I have:

      <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>


      Then, later in the process, when a member of the cluster fails to respond, for example, I get this error:

      javax.transaction.RollbackException
       at org.jboss.cache.transaction.DummyTransaction.commit(DummyTransaction.java:67)
       at org.jboss.cache.transaction.DummyBaseTransactionManager.commit(DummyBaseTransactionManager.java:60)


      So I'm wondering if this is normal or if I've got something misconfigured. I was thinking that it may be the jboss:service=TransactionManager line... I'm not running jboss.

      Thanks for any help. Best,

      Joe