【发布时间】:2015-09-14 08:31:18
【问题描述】:
在开发过程中,我希望能够在我的 web 应用程序打开时运行我的 arquillian 测试。两者都使用不同的 WildFly 实例:
- 我的 Arquillian 测试使用托管(甚至是嵌入式)wildfly 容器
- 为了手动测试我的 web 应用,我将其从 IntelliJ 部署到 WildFly。
我希望能够并行执行这 2 个操作,但是当我这样做时,我得到:
Address localhost:9990 is already in use.
或
org.jboss.arquillian.container.spi.client.container.LifecycleException: The server is already running! Managed containers do not support connecting to running server instances due to the possible harmful effect of connecting to the wrong server. Please stop server before running or change to another type of container.
To disable this check and allow Arquillian to connect to a running server, set allowConnectingToRunningServer to true in the container configuration
要解决此问题,我想更改arquillian.xml,以便测试使用不同的端口。我该怎么做?
<container qualifier="jboss" default="true">
<configuration>
<property name="jbossHome">target/wildfly-${version.org.wildfly}</property>
<property name="javaVmArguments">-Xms512m -Xmx1024m -XX:MaxPermSize=512m</property>
</configuration>
</container>
【问题讨论】: