0 Replies Latest reply on May 11, 2010 5:46 AM by jssteux

    Portlet Bridge and jboss transaction

    jssteux

      Hi,

       

      I use portlet-bridge 2.0 FINAL and JBoss Portal 2.7.2.

       

      When I set the transaction-required attribute in jboss-portlet.xml (to access portal pages from portlet), the transaction seems to be commited by the portlet.

       

      So, the Seam portlet runs with no error but the page can't be displayed in the portal (see the stack trace below)

       

      Is there a specific parameter to set ?

       

      Thank you

       

      Jean-Sébastien

       

      jboss-portlet.xml >>

      ------------------------

      <portlet>
              <portlet-name>testPortlet</portlet-name>
             <transaction>
                  <trans-attribute>Required</trans-attribute>           
              </transaction>        
                <header-content>
                 <script src="/faces/rfRes/org/ajax4jsf/framework.pack.js" type="text/javascript" ></script>
                 <script src="/faces/rfRes/org/richfaces/ui.pack.js" type="text/javascript" ></script>
                 <link rel="stylesheet" type="text/css" href="/css/screen.css" media="screen"/>
               </header-content>
          </portlet>

       

       

       

      StackTrace in Jboss Portal >>

      --------------------------------------

       

      11:28:51,706 ERROR [TxPolicy] IllegalStateException while setting transaction fo
      r rollback only
      java.lang.IllegalStateException: [com.arjuna.ats.internal.jta.transaction.arjuna
      core.inactive] [com.arjuna.ats.internal.jta.transaction.arjunacore.inactive] The
      transaction is not active!