我已经设置了一个新的 JBoss 服务器,并且能够使用“jboss-cli.bat”远程访问它。
但是,当我的 Hudson 作业运行并尝试使用 jboss-as-maven-plugin 向服务器部署战争时,它被拒绝访问并出现以下错误;
错误:JBREM000200:远程连接失败:javax.security.sasl.SaslException:身份验证失败:所有可用的身份验证机制都失败
我在跑步;
- 视窗服务器 2008 R2
- JBoss AS 7.1.1.Final
- 哈德逊 3.0.0
- 雄猫 7.0.35
- JBoss-AS-Maven-Plugin 7.4.Final
我的 POM 包含;
<plugin>
<groupId>org.jboss.as.plugins</groupId>
<artifactId>jboss-as-maven-plugin</artifactId>
<version>7.4.Final</version>
<executions>
<execution>
<id>Dev_Deploy</id>
<phase>install</phase>
<goals>
<goal>deploy</goal>
</goals>
<configuration>
<force>true</force>
<hostname>??.??.??.??</hostname>
<port>9999</port>
<name>admin</name>
<password>password</password>
</configuration>
</execution>
</executions>
</plugin>
我的standalone.xml 包含;
<interfaces>
<interface name="ManagementRealm">
<any-ipv4-address/>
</interface>
<interface name="management">
<any-ipv4-address/>
</interface>
<interface name="public">
<any-ipv4-address/>
</interface>
<interface name="unsecure">
<inet-address value="${jboss.bind.address.unsecure:127.0.0.1}"/>
</interface>
</interfaces>
<socket-binding-group name="standard-sockets" default-interface="public" port-offset="${jboss.socket.binding.port-offset:0}">
<socket-binding name="management-native" interface="management" port="${jboss.management.native.port:9999}"/>
<socket-binding name="management-http" interface="management" port="${jboss.management.http.port:902}"/>
<socket-binding name="management-https" interface="management" port="${jboss.management.https.port:9443}"/>
<socket-binding name="ajp" port="8009"/>
<socket-binding name="http" port="8080"/>
<socket-binding name="https" port="443"/>
<socket-binding name="osgi-http" interface="management" port="8090"/>
<socket-binding name="remoting" port="4447"/>
<socket-binding name="txn-recovery-environment" port="4712"/>
<socket-binding name="txn-status-manager" port="4713"/>
<outbound-socket-binding name="mail-smtp">
<remote-destination host="localhost" port="25"/>
</outbound-socket-binding>
</socket-binding-group>
谁能让我正确地解决这个问题。非常感谢,
斯图尔特