-
1. Re: get UserModule via lookup exception
den74 Mar 6, 2008 12:19 PM (in response to den74)i solved, sorry my mistake.
i was exporting in my portlet war some libraries that generated conflicts with the portal ones -
2. Re: get UserModule via lookup exception
nareshshah Mar 9, 2008 4:59 AM (in response to den74)I am using JBoss-portal2.6.3GA. while getting UserProfile i am getting Hibernate exception.
Caused by: 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.findUserByUserName(HibernateUserModuleImpl.java:90)
Is there separately i need to do hibernate configuration ??? -
3. Re: get UserModule via lookup exception
bdaw Mar 9, 2008 6:16 AM (in response to den74)You need to set this in jboss-portlet.xml:
<portlet> <portlet-name>MyPortlet</portlet-name> <trans-attribute>Required</trans-attribute> </portlet>
-
4. Re: get UserModule via lookup exception
den74 Mar 10, 2008 4:05 AM (in response to den74)if you are using a library method like me a working way is to open an identity session like described here
http://www.jboss.com/index.html?module=bb&op=viewtopic&t=115399
it works for me -
5. Re: get UserModule via lookup exception
nareshshah Mar 10, 2008 6:07 AM (in response to den74)
Thankx for help.. it worked... after defining at jboss-portlet.xml...
<portlet-name>yourPortletName</portlet-name>
<trans-attribute>Required</trans-attribute>