Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Maven Wildfly remote deploy

Maven deploy error:

ERROR: JBREM000200: Remote connection failed: javax.security.sasl.SaslException: Authentication failed: the server presented no authentication mechanisms

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

Apr 09, 2014 10:31:42 PM org.xnio.Xnio

INFO: XNIO version 3.2.0.Final

Apr 09, 2014 10:31:42 PM org.xnio.nio.NioXnio

INFO: XNIO NIO Implementation Version 3.2.0.Final

Apr 09, 2014 10:31:42 PM org.jboss.remoting3.EndpointImpl

INFO: JBoss Remoting version 4.0.0.Final (I'm use Wildfly 8.0.0.Final)

Authenticating against security realm: ManagementRealm

Maven config:

<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):

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?

like image 631
Alexey Savchuk Avatar asked Feb 13 '23 06:02

Alexey Savchuk


1 Answers

Resolve:

Change

 <name>user</name>

to

 <username>user</username>

from maven configuration.

like image 98
Alexey Savchuk Avatar answered Feb 28 '23 14:02

Alexey Savchuk