[jboss-user] [JBoss Portal] - UserModule.findUserByUserName problem

glarenzie do-not-reply at jboss.com
Tue Jun 12 10:58:30 EDT 2007


I am doing the following in a portlet:
UserModule um = (UserModule)new InitialContext().lookup("java:portal/UserModule");
	System.out.println("UM: " + um);
	User u = um.findUserByUserName("fred");

and I get this output and error:

UM: org.jboss.portal.identity.db.HibernateUserModuleImpl at 965003
2007-06-12 10:34:34,137 ERROR [org.jboss.portal.identity.db.HibernateUserModuleImpl] Cannot find user by name fred
org.hibernate.HibernateException: Unable to locate current JTA transaction

What is this error trying to tell me?

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4053603#4053603

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4053603



More information about the jboss-user mailing list