使用Arquillian的集成测试不适用于Linux上的JBoss EAP 6 Remote

时间:2015-09-15 21:01:12

标签: jboss jboss-arquillian

当我尝试在linux上使用arquillian和jboss eap 6 remote执行集成测试时,现在返回

  

:org.jboss.arquillian.container.spi.client.container.DeploymentException:无法部署到容器:身份验证失败:所有可用的身份验证机制都失败

在Windows上工作非常好,就像localhost一样。

这是我的配置:

文件arquillian.xml

<defaultProtocol type="Servlet 3.0" />

 <container qualifier="jboss7" default="true">
    <configuration>
        <property name="managementAddress">127.0.0.1</property>
        <property name="managementPort">9999</property>
        <property name="username">deploy</property>
        <property name="password">xxxx</property>
    </configuration>

</container>

pom.xm:

    <profile>
        <id>test-int</id>
        <dependencies>
            <dependency>
                <groupId>org.jboss.arquillian.junit</groupId>
                <artifactId>arquillian-junit-container</artifactId>
                <scope>test</scope>
            </dependency>
            <dependency>
                <groupId>org.jboss.as</groupId>
                <artifactId>jboss-as-arquillian-container-remote</artifactId>
                <version>7.1.2.Final</version>
                <scope>test</scope>
            </dependency>
            <dependency>
                <groupId>org.jboss.arquillian.protocol</groupId>
                <artifactId>arquillian-protocol-servlet</artifactId>
                <scope>test</scope>
            </dependency>
        </dependencies>
    </profile>

standalone.xml = jboss eap 6.0

<interfaces>
    <interface name="management">
        <inet-address value="${jboss.bind.address.management:0.0.0.0}"/>
    </interface>
    <interface name="public">
        <inet-address value="${jboss.bind.address:0.0.0.0}"/>
    </interface>
    <!-- TODO - only show this if the jacorb subsystem is added  -->
    <interface name="unsecure">
        <!--
          ~  Used for IIOP sockets in the standard configuration.
          ~                  To secure JacORB you need to setup SSL 
          -->
        <inet-address value="${jboss.bind.address.unsecure:0.0.0.0}"/>
    </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:9990}"/>
    <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="8443"/>
    <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>

任何人都可以帮助我?

1 个答案:

答案 0 :(得分:0)

尝试在您的远程实例中添加管理用户:

用户部署/