作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
在开发过程中,我希望能够在 Web 应用程序打开时运行我的 arquillian 测试。两者都使用不同的 WildFly 实例:
我希望能够并行执行这两个操作,但是当我这样做时,我得到:
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>
最佳答案
我认为你应该添加到 javaVmArguments
属性:-Djboss.socket.binding.port-offset=1000
并添加新属性<property name="managementPort">10990</property>
<container qualifier="jboss" default="true">
<configuration>
<property name="jbossHome">target/wildfly-${version.org.wildfly}</property>
<property name="managementPort">10990</property>
<property name="javaVmArguments">-Xms512m -Xmx1024m -XX:MaxPermSize=512m -Djboss.socket.binding.port-offset=1000</property>
</configuration>
</container>
关于wildfly - 阿奎利安 : use different port(s) for the managed WildFly container than a normal WildFly process,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32560358/
我是一名优秀的程序员,十分优秀!