首页 > 解决方案 > RH Developer Studio 到 JBoss EAP 服务器的连接

问题描述

我已经尝试过 Developer Studio 11.3.0 和 12.0.0。我已经尝试过 EAP 6.4.0 和 7.1.0。一切都给了我同样的错误。我已经在 AWS 上使用 RHEL 中的服务器和 Windows 10 或 Windows 7 中的 DevStudio 运行它。我在同一个 Fedora 系统上使用服务器和 DevStudio 运行它。当我尝试“启动”远程服务器时总是同样的错误:

The initialization produced an exception, which can occur due to incorrect security credentials. Please review the exception messages by clicking the Details button.
 * java.io.IOException: java.net.ConnectException: WFLYPRT0053: Could not connect to http-remoting://LOCALHOST:9990. The connection failed
 * java.net.ConnectException: WFLYPRT0053: Could not connect to http-remoting://LOCALHOST:9990. The connection failed
 * WFLYPRT0053: Could not connect to http-remoting://LOCALHOST:9990. The connection failed
 * Authentication failed: all available authentication mechanisms failed:
   JBOSS-LOCAL-USER: javax.security.sasl.SaslException: ELY05128: [JBOSS-LOCAL-USER] Failed to read challenge file [Caused by java.io.FileNotFoundException: /datavirt/jboss/EAP-7.1.0/standalone/tmp/auth/local3848441195962286340.challenge (Permission denied)]
   DIGEST-MD5: javax.security.sasl.SaslException: DIGEST-MD5: Server rejected authentication

下面是一些 server.log 文件,其中出现了问题。(在 6.4.0 中略有不同,但没有本质上的不同。)

2018-09-01 23:20:52,946 TRACE [org.jboss.remoting.endpoint] (management I/O-2) Allocated tick to 8 of endpoint "miramanee:MANAGEMENT" <68fb9f51> (opened org.jboss.remoting3.EndpointImpl$TrackingExecutor@18776914)
2018-09-01 23:20:52,946 TRACE [org.xnio.nio] (management I/O-2) Running task org.jboss.remoting3.remote.ServerConnectionOpenListener$2@228e4439
2018-09-01 23:20:52,946 TRACE [org.xnio.nio.selector] (management I/O-2) Beginning select on sun.nio.ch.EPollSelectorImpl@617c6bff (with timeout)
2018-09-01 23:20:52,946 TRACE [org.xnio.nio] (management I/O-2) Select, queue is empty
2018-09-01 23:20:52,946 TRACE [org.wildfly.security] (management task-7) Handling RealmCallback: selected = [ManagementRealm]
2018-09-01 23:20:52,946 TRACE [org.wildfly.security] (management task-7) Handling NameCallback: authenticationName = admin
2018-09-01 23:20:52,946 TRACE [org.wildfly.security] (management task-7) Principal assigning: [admin], pre-realm rewritten: [admin@ManagementRealm], realm name: [DIGEST], post-realm rewritten: [admin@ManagementRealm], realm rewritten: [admin@ManagementRealm]
2018-09-01 23:20:52,947 TRACE [org.wildfly.security] (management task-7) Handling CredentialCallback: obtained credential for correct realm "ManagementRealm"
2018-09-01 23:20:52,947 TRACE [org.wildfly.security] (management task-7) Handling CredentialCallback: obtained credential: org.wildfly.security.credential.PasswordCredential@b75f36fa
2018-09-01 23:20:52,947 TRACE [org.jboss.remoting.remote.server] (management task-7) Server sending authentication rejected: javax.security.sasl.SaslException: ELY05055: [DIGEST-MD5] Authentication rejected (invalid proof)
        at org.wildfly.security.sasl.digest.DigestSaslServer.validateDigestResponse(DigestSaslServer.java:281)
        at org.wildfly.security.sasl.digest.DigestSaslServer.evaluateMessage(DigestSaslServer.java:358)
        at org.wildfly.security.sasl.util.AbstractSaslParticipant.evaluateMessage(AbstractSaslParticipant.java:180)
        at org.wildfly.security.sasl.digest.DigestSaslServer.evaluateResponse(DigestSaslServer.java:331)
        at org.wildfly.security.sasl.util.AuthenticationCompleteCallbackSaslServerFactory$1.evaluateResponse(AuthenticationCompleteCallbackSaslServerFactory.java:58)
        at org.wildfly.security.sasl.util.AuthenticationTimeoutSaslServerFactory$DelegatingTimeoutSaslServer.evaluateResponse(AuthenticationTimeoutSaslServerFactory.java:106)

我一头雾水。

标签: jbossjboss7.xjboss-eap-7jboss-developer-studio

解决方案


如果你想让它快速学习/等,那么我可以说我在做什么。我有 RHEL 7 和 EAP 7.1。我在同一台机器上使用 dev studio 12。当我将服务器添加到开发工作室时,我可以选择本地或远程。我选择了本地并且从开发工作室开始没有问题。我正在运行开发工作室的用户也有权访问 EAP 主目录(我在您的错误中看到文件权限错误)。我还选择了管理选项与文件系统和 shell 操作。我也进行了测试,这也适用于选择遥控器。但同样,所有东西都使用相同的服务器/相同的本地主机。


推荐阅读