使用JNDI查找在WildFly 10中远程调用EJB

时间:2017-09-12 04:23:29

标签: wildfly jndi ejb-3.0 wildfly-10

我试图使用JNDI查找从远程服务器调用EJB,我在WildFly 10中使用EJB3和Spring-MVC,并且在我的客户端和远程服务器中完成了本文档中指导的配置 https://docs.jboss.org/author/display/WFLY10/EJB+invocations+from+a+remote+client+using+JNDI

但我仍然无法获得远程服务器的连接。

1)在ApplicationRealm下创建了一个用户,并为远程EJB调用提供了主从设置的权限。

2)这是我的jboss-ejb-client.properties文件,这里我给出了wildfly User_Name和主机服务器密码。

endpoint.name=client-endpoint
remote.connections=one, two
remote.connection.one.host=172.16.25.26
remote.connection.one.port=8080
remote.connection.one.username=ABCD
remote.connection.one.password=ABCD@123
remote.connection.two.host=localhost
remote.connection.two.port=8080
remote.connection.two.username=guest
remote.connection.two.username=guest
# org.jboss.as.logging.per-deployment=true

我的例外是

javax.naming.AuthenticationException: Failed to connect to any server. Servers tried: 
[http-remoting://172.16.25.26:8080 (Authentication failed: all available authentication mechanisms failed:
   JBOSS-LOCAL-USER: javax.security.sasl.SaslException: Failed to read server challenge [Caused by 
java.io.FileNotFoundException: D:\wildfly-10.0.0.Final\standalone\tmp\auth\local3540175271681581878.challenge 
(The system cannot find the file specified)]
   DIGEST-MD5: javax.security.sasl.SaslException: DIGEST-MD5: Cannot perform callback to acquire realm, 
authentication ID or password [Caused by javax.security.auth.callback.UnsupportedCallbackException])] 
[Root exception is javax.security.sasl.SaslException: Authentication failed: all available authentication 
mechanisms failed:

请告诉我,我在这里错过了什么导致此异常,以及在wildfly中创建用户时生成的密钥的重要性以及在何处配置该密钥

0 个答案:

没有答案