File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JBoss and the fly likes Jboss login module - how to analysis exception Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Products » JBoss
Reply 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: 8142
    
  52

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://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Jboss login module - how to analysis exception
 
Similar Threads
JBOSS LdapLoginModule authentication. Help needed for code to use LoginContext
Jaas, DatabaseServerLoginModule, Client, auth.conf
simple EJB question
JAAS Implementation with JBOSS
Why i need the file auth.conf?