1 Reply Latest reply on Apr 27, 2009 7:52 AM by Nico Ziegenhals

    UserModule: hibernate problem

    Christelle Heritier Newbie


      I would like to use UserModule into a portlet that allow administrator to create new user.

      In my portlet I have tested this:
      UserModule userModule = (UserModule)getPortletContext().getAttribute("UserModule");
      User user = userModule.createUser('toto','toto','toto@test.com');

      In descriptor jboss-portlet I have put:


      I have this error:
      ERROR [UserModuleImpl] Cannot create user toto
      org.hibernate.HibernateException: Unable to locate current JTA transaction

      Can somebody tell me if I miss something or if I do something wrong?