简体   繁体   English

Maven Wildfly远程部署

[英]Maven Wildfly remote deploy

Maven deploy error: Maven部署错误:

ERROR: JBREM000200: Remote connection failed: javax.security.sasl.SaslException: Authentication failed: the server presented no authentication mechanisms 错误:JBREM000200:远程连接失败:javax.security.sasl.SaslException:身份验证失败:服务器未提供身份验证机制

--- wildfly-maven-plugin:1.0.1.Final:deploy (default-cli) @ API --- --- wildfly-maven-plugin:1.0.1.Final:deploy(default-cli)@API ---

Apr 09, 2014 10:31:42 PM org.xnio.Xnio 2014年4月9日下午10:31:42 org.xnio.Xnio

INFO: XNIO version 3.2.0.Final 信息:XNIO版本3.2.0.Final

Apr 09, 2014 10:31:42 PM org.xnio.nio.NioXnio 2014年4月9日下午10:31:42 org.xnio.nio.NioXnio

INFO: XNIO NIO Implementation Version 3.2.0.Final 信息:XNIO NIO实施版本3.2.0.Final

Apr 09, 2014 10:31:42 PM org.jboss.remoting3.EndpointImpl 2014年4月9日10:31:42 org.jboss.remoting3.EndpointImpl

INFO: JBoss Remoting version 4.0.0.Final (I'm use Wildfly 8.0.0.Final ) 信息:JBoss Remoting版本4.0.0.Final (我使用Wildfly 8.0.0.Final

Authenticating against security realm: ManagementRealm 针对安全领域进行身份验证:ManagementRealm

Maven config: Maven配置:

<plugin>
    <groupId>org.wildfly.plugins</groupId>
    <artifactId>wildfly-maven-plugin</artifactId>
    <version>${version.wildfly.maven.plugin}</version>
    <configuration>
        <hostname>192.168.57.114</hostname>
        <port>9990</port>
        <name>user</name>
        <password>passwd</password>
    </configuration>
</plugin>

lsof -i results (from server 192.168.57.114): lsof -i结果(来自服务器192.168.57.1​​14):

java      5123       jboss  294u  IPv4  12006      0t0  TCP localhost:http-alt (LISTEN)
java      5123       jboss  322u  IPv4  12011      0t0  TCP 192.168.57.114:9990 (LISTEN)

How to fix this? 如何解决这个问题?

Resolve: 解决:

Change 更改

 <name>user</name>

to

 <username>user</username>

from maven configuration. 来自maven配置。

Have you configured the native Management Interface for your Server? 您是否为服务器配置了本机管理界面? For 8.0.0.Final this Interface is no longer Part of the Standard configuration. 对于8.0.0.Final,此接口不再是标准配置的一部分。

I ran into the same problem since the maven Plugin requires the native interface, I think. 我认为,由于maven插件需要本机接口,我遇到了同样的问题。

@Alexey Savchuk is right <username> is the correct config. @Alexey Savchuk是对的<username>是正确的配置。 While deploying remotely you need to make sure that you have Management Realm. 在远程部署时,您需要确保拥有Management Realm。 And it can be created using add-user.sh/bat script located in your <wildfly installation>/bin. 它可以使用位于<wildfly安装> / bin中的add-user.sh/bat脚本创建。 Run through console instructions to add management user. 运行控制台指令以添加管理用户。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM