2 Replies Latest reply on May 1, 2008 12:00 PM by Mohit Mutha

    A4J and UserModule in a portlet

    Mohit Mutha Newbie

      I am trying to use A4J in a portlet. The functionality is to display the user details when the user clicks on the user row in the search results.

      I am using the identity modules to retrieve the user list (by role). This works fine. However when I use A4J to retrieve the user details in a managed bean action the UserModule.getUserById() gives the exception

      org.hibernate.HibernateException: Unable to locate current JTA transaction
      at org.hibernate.context.JTASessionContext.currentSession(JTASessionContext.java:61)
      at org.hibernate.impl.SessionFactoryImpl.getCurrentSession(SessionFactoryImpl.java:544)
      at org.jboss.portal.identity.db.HibernateUserModuleImpl.getCurrentSession(HibernateUserModuleImpl.java:298)
      at org.jboss.portal.identity.db.HibernateUserModuleImpl.findUserById(HibernateUserModuleImpl.java:136)
      at com.apple.ist.channelportal.admin.managedbeans.ManageUsersBean.retrive(ManageUsersBean.java:50)


      I have set the tran-attribute = required in jboss-portlet.xml

      Please help !!