Arquillian Wildfly远程域测试:不工作:java.lang.UnsupportedOperationException:无法直接从域控制器

时间:2016-11-18 11:29:47

标签: jboss jboss-arquillian wildfly-10

我试图在域模式下在远程JBoss EAP 7上运行Arquillian测试。我的配置在arquillian.xml中:

 <group qualifier="jbosseap-integration-domain" default="false">
        <container qualifier="jbosseap-integration-int1" default="false">
            <protocol type="Servlet 3.0">
                <property name="executionType">REMOTE</property>
            </protocol>
            <configuration>
                <property name="managementAddress">XXXXXXXXX1.xarxa.interna</property>
                <property name="managementPort">9999</property>
                <property name="username">XXXXX</property>
                <property name="password">XXXXXX</property>
                <property name="serverGroupOperationTimeoutInSeconds">3600</property>
                <property name="serverOperationTimeoutInSeconds">3600</property>
            </configuration>
        </container>
         <container qualifier="jbosseap-integration-int2" default="false">
            <protocol type="Servlet 3.0">
                <property name="executionType">REMOTE</property>
            </protocol>
            <configuration>
                <property name="managementAddress">XXXXXX2.xarxa.interna</property>
                <property name="managementPort">9999</property>
                <property name="username">XXXXX</property>
                <property name="password">XXXXXX</property>
                <property name="serverGroupOperationTimeoutInSeconds">3600</property>
                <property name="serverOperationTimeoutInSeconds">3600</property>

            </configuration>
        </container>
    </group>

在maven中:

&#13;
&#13;
<profile>
			<id>int</id>
			<properties>
				<cdi.project.stage>Staging</cdi.project.stage>
				<jsf.project.stage>Production</jsf.project.stage>
				<!-- Arquillian config -->
				<arquillian.container.name>jbosseap-integration-domain</arquillian.container.name>
				<!-- Logging -->
				<logging.level>INFO</logging.level>
				<!--Environment name for war name generation and resource filtering -->
				<environmentName>int</environmentName>
			</properties>
			<dependencies>
				<!-- The integration tests are done on the integration standalone server, 
					as configured in arquillian.xml -->
				<dependency>
				  <groupId>org.wildfly.arquillian</groupId>
				  <artifactId>wildfly-arquillian-container-domain-remote</artifactId>
				  <version>1.1.0.Final</version>
				  <scope>test</scope>
				</dependency>
			</dependencies>
			<build>
				<plugins>
					<!-- JBoss AS Domain deploy configuration, on integration server group. 
						This server is used by the final user to make it's manual tests, so the DATA 
						MUST BE PRESERVED at all costs. -->
					<plugin>
						<groupId>org.wildfly.plugins</groupId>
                		<artifactId>wildfly-maven-plugin</artifactId>
						<configuration>
							<filename>XXXXXXXXXXXXXXXXx-${project.version}-${environmentName}.war</filename>
							<hostname>XXXXXXX.xarxa.interna</hostname>
							<port>9999</port>
							<username>XXXX</username>
							<password>XXXXXXXXXXXx</password>
							<domain>
								<server-groups>
									<server-group>servergroup-integracio</server-group>
								</server-groups>
								<profiles>
									<profile>full-ha-int</profile>
								</profiles>
							</domain>
						</configuration>
					</plugin>
				</plugins>
			</build>
		</profile>
&#13;
&#13;
&#13;

我收到以下错误:引起:java.lang.UnsupportedOperationException:无法直接从域控制器部署

0 个答案:

没有答案