Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Jboss login module - how to analysis exception

 
avihai marchiano
Ranch Hand
Posts: 342
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does the EJBAccessException wrap your LoginException?
 
avihai marchiano
Ranch Hand
Posts: 342
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No.
I look in their sources and i think they throw new exception. dont know why.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic