Jboss 对Wildfly 10的远程EJB调用进行身份验证时遇到问题

Jboss 对Wildfly 10的远程EJB调用进行身份验证时遇到问题,jboss,ejb,wildfly-10,Jboss,Ejb,Wildfly 10,我试图对我的Wildfly 10/JBoss 7 EAP服务器进行远程EJB调用,但在我的Wildfly服务器上不断收到无效的用户错误消息(我的EJB称为LoginManager): 我已经使用add-user.sh/bat脚本将我的用户添加到application-users.properties文件中 我已经尝试在第54行的SecurityContextInterceptor类中的Wildfly服务器本身中插入断点,并查看主体是否为空: if (holder.

我试图对我的Wildfly 10/JBoss 7 EAP服务器进行远程EJB调用,但在我的Wildfly服务器上不断收到无效的用户错误消息(我的EJB称为LoginManager):

我已经使用add-user.sh/bat脚本将我的用户添加到application-users.properties文件中

我已经尝试在第54行的
SecurityContextInterceptor
类中的Wildfly服务器本身中插入断点,并查看主体是否为空:

                if (holder.skipAuthentication == false) {
                    holder.securityManager.authenticate(holder.runAs, holder.runAsPrincipal, holder.extraRoles);
我不完全确定这
runAs
runAsPrincipal
是否是远程EJB调用传递的主体/凭据,但我怀疑这可能是我的问题的原因

我将远程ejb称为:

    Properties p = new Properties();
    p.setProperty(Context.URL_PKG_PREFIXES, "org.jboss.ejb.client.naming");

    final Context context = new InitialContext(p);
    LoginManagerRemote ejb = (LoginManagerRemote) context.lookup("ejb:ear-1.0/ejbs-1.0//LoginManager!ejbs.LoginManagerRemote");

    return ejb.echo("test");
将我的jboss-ejb-client.properties设置为:

remote.connectionprovider.create.options.org.xnio.Options.SSL_ENABLED=false

remote.connections=default

remote.connection.default.host=localhost
remote.connection.default.port=8080
remote.connection.default.connect.options.org.xnio.Options.SASL_POLICY_NOANONYMOUS=false
remote.conncetion.default.connect.options.org.xnio.Options.SASL_DISALLOWED_MECHANISMS=JBOSS-LOCAL-USER
remote.connection.default.username=test
remote.connection.default.password=test

我做错什么了吗?我是不是遗漏了什么明显的东西?要成功调用远程EJB,我需要做什么?

您的jboss-EJB-client.properties中有一个输入错误

remote.conception.default.connect.options.org.xnio.options.SASL_DISALLOWED_mechanism=JBOSS-LOCAL-USER


应该是remote.connection.default.connect.options等

您解决了这个问题吗?
remote.connectionprovider.create.options.org.xnio.Options.SSL_ENABLED=false

remote.connections=default

remote.connection.default.host=localhost
remote.connection.default.port=8080
remote.connection.default.connect.options.org.xnio.Options.SASL_POLICY_NOANONYMOUS=false
remote.conncetion.default.connect.options.org.xnio.Options.SASL_DISALLOWED_MECHANISMS=JBOSS-LOCAL-USER
remote.connection.default.username=test
remote.connection.default.password=test