我正在尝试更改ejb连接领域以使用Jaas。但在此之前,我尝试了这个简单测试并停止工作(下图)。任何的想法?
创建这个领域:
<security-realm name="SherlockRealm">
<authentication>
<properties path="application-users.properties" relative-to="jboss.server.config.dir"/>
</authentication>
<authorization>
<properties path="application-roles.properties" relative-to="jboss.server.config.dir"/>
</authorization>
</security-realm>
它等于ApplicationRealm 和替换
<connector name="remoting-connector" socket-binding="remoting" security-realm="ApplicationRealm"/>
通过
<connector name="remoting-connector" socket-binding="remoting" security-realm="SherlockRealm"/>
当我这样做时,我不能通过远程客户端调用EJB。它抛出了这个错误:
Remote connection failed: javax.security.sasl.SaslException: Authentication failed: all available authentication mechanisms failed
Jun 25, 2014 10:27:59 AM org.jboss.ejb.client.remoting.ConfigBasedEJBClientContextSelector setupEJBReceivers
WARN: Could not register a EJB receiver for connection to remote://localhost:4447
java.lang.RuntimeException: javax.security.sasl.SaslException: Authentication failed: all available authentication mechanisms failed
at org.jboss.ejb.client.remoting.IoFutureHelper.get(IoFutureHelper.java:91)
at org.jboss.ejb.client.remoting.ConfigBasedEJBClientContextSelector.setupEJBReceivers(ConfigBasedEJBClientContextSelector.java:121)
at org.jboss.ejb.client.remoting.ConfigBasedEJBClientContextSelector.<init>(ConfigBasedEJBClientContextSelector.java:78)
at br.ufmg.lcc.sherlock.view.login.LoginDialog$3.run(LoginDialog.java:140)
Caused by: javax.security.sasl.SaslException: Authentication failed: all available authentication mechanisms failed
感谢您的帮助!