This week's book giveaway is in the Game Development forum.
We're giving away four copies of Badass: Making Users Awesome and have Kathy Sierra on-line!
See this thread for details.
The moose likes JBoss/WildFly and the fly likes Jboss login module - how to analysis exception Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Badass: Making Users Awesome this week in the Game Development forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Jboss login module - how to analysis exception" Watch "Jboss login module - how to analysis exception" New topic
Author

Jboss login module - how to analysis exception

avihai marchiano
Ranch Hand

Joined: Jan 10, 2007
Posts: 342
Hey,

I have a java client that work against stateless facade , deployed in jboss4.2.

i write a custom login module and in some cases i throw exception like this this -
Code:
throw new LoginException("was failed due to expired password");


The problem that in the client i dont get the exception i throw.
i get - EJBAccessException instead of the exception i throw.

so in the client i dont know waht is the reason that authetication was failed.

Any solution please?
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10403
    
174

Does the EJBAccessException wrap your LoginException?


[My Blog] [JavaRanch Journal]
avihai marchiano
Ranch Hand

Joined: Jan 10, 2007
Posts: 342
No.
I look in their sources and i think they throw new exception. dont know why.
 
jQuery in Action, 2nd edition
 
subject: Jboss login module - how to analysis exception