aspose file tools*
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
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: 10266
    
168

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Jboss login module - how to analysis exception