[jboss-user] [JBoss Portal] - Re: Calling JAAS

indyJones do-not-reply at jboss.com
Wed Aug 8 15:45:55 EDT 2007


ok....i cant even get authenticated...


  | 
  | try{
  | 		
  |   UsernamePasswordHandler handler = new     
  |                UsernamePasswordHandler("admin", "admin".toCharArray());
  | 		
  |   LoginContext lgnctx = new LoginContext("portal", handler);
  | 			
  |   lgnctx.login();
  | 			
  | }catch(Exception e){
  | 			
  | }
  | 
  | 

Gives the following error...


  | 
  | org.jboss.portal.common.transaction.NestedException: javax.security.auth.login.LoginException: java.lang.ClassCastException: org.hibernate.hql.ast.HqlToken cannot be cast to org.hibernate.hql.ast.HqlToken
  | 
  | 

i have no idea how this throws a Hibernate error....but it does...

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

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



More information about the jboss-user mailing list