title: JBOSS - The transaction is not active error
body: <p>I get transaction timeout error as follow, when I run my JBOSS.</p>
  
  <pre><code>SystemException The following problem occured: null; nested exception is:
          java.lang.IllegalStateException: [com.arjuna.ats.internal.jta.transaction.arjunacore.inactive] [com.arjuna.ats.internal.jta.transaction.a
  rjunacore.inactive] The transaction is not active!; - nested throwable: (java.lang.IllegalStateException: [com.arjuna.ats.internal.jta.transactio
  n.arjunacore.inactive] [com.arjuna.ats.internal.jta.transaction.arjunacore.inactive] The transaction is not active!): null; nested exception is:
  
          java.lang.IllegalStateException: [com.arjuna.ats.internal.jta.transaction.arjunacore.inactive] [com.arjuna.ats.internal.jta.transaction.a
  rjunacore.inactive] The transaction is not active!; - nested throwable: (java.lang.IllegalStateException: [com.arjuna.ats.internal.jta.transactio
  n.arjunacore.inactive] [com.arjuna.ats.internal.jta.transaction.arjunacore.inactive] The transaction is not active!): [com.arjuna.ats.internal.jt
  a.transaction.arjunacore.inactive] [com.arjuna.ats.internal.jta.transaction.arjunacore.inactive] The transaction is not active! called at com.jco
  ffee.base.global.ExceptionMapper.handleException(ExceptionMapper.java:240)
  </code></pre>
  
  <p>I googled the error and came across a solution which involves changing the transaction timeout from 300 to a higher value and I did so,</p>
  
  <pre><code>   &lt;mbean code="com.arjuna.ats.jbossatx.jta.TransactionManagerService"
        name="jboss:service=TransactionManager"&gt;
        &lt;attribute name="TransactionTimeout"&gt;3000&lt;/attribute&gt;
        &lt;attribute name="ObjectStoreDir"&gt;${jboss.server.data.dir}/tx-object-store&lt;/attribute&gt; 
     &lt;/mbean&gt;
  </code></pre>
  
  <p>but still the error persist.</p>
  
  <p>My heapsizes are as follow: </p>
  
  <pre><code>-Xms2000m  
  -Xmx2000m
  -XX:PermSize=256M
  -XX:MaxPermSize=256m
  </code></pre>
  
  <p>Before the error occurs, Garbage collector unloads a large number of classes and the RAM is left only with few MB of free space. I have aroung 6GB of RAM + 3GB of pagefiles</p>
  
  <p>Any help will be really appreciated.</p>
  
  <p>Thanks a lot in advance. </p>