[jboss-user] [JBoss Portal] - Re: Access UserModule from a portlet when not authenticated

indyJones do-not-reply at jboss.com
Fri Aug 3 10:24:41 EDT 2007


Here is the code....


  | 
  | User test = userModule.findUserByUserName("admin");
  | 
  | 

Here is the error


  | 
  | java.lang.ClassCastException: org.hibernate.hql.ast.HqlToken cannot be cast to org.hibernate.hql.ast.HqlToken
  | 
  | 

I do not get that error running the exact same code when the user is authenticated...

Any ideas?

Thanks

Indy

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

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



More information about the jboss-user mailing list