Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/364.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 运行arquillian测试的间歇性故障_Java_Jboss_Jboss Arquillian - Fatal编程技术网

Java 运行arquillian测试的间歇性故障

Java 运行arquillian测试的间歇性故障,java,jboss,jboss-arquillian,Java,Jboss,Jboss Arquillian,我在Red Hat EAP 6.4(JBoss AS 7)上运行arquillian测试,但我遇到间歇性故障。大约有一半的时间,一切都如预期的那样贯穿始终。另一半时间我注意到“arquillian服务”没有部署到应用服务器,这导致在部署war时出现以下错误: {"JBAS014771: Services with missing/unavailable dependencies" => [ "jboss.module.service.\"deployment.myapp.war\".mai

我在Red Hat EAP 6.4(JBoss AS 7)上运行arquillian测试,但我遇到间歇性故障。大约有一半的时间,一切都如预期的那样贯穿始终。另一半时间我注意到“arquillian服务”没有部署到应用服务器,这导致在部署war时出现以下错误:

{"JBAS014771: Services with missing/unavailable dependencies" => [
"jboss.module.service.\"deployment.myapp.war\".main is missing [jboss.module.spec.service.\"deployment.arquillian-service\".main, module.resolved.service.\"deployment.myapp.war\".main]",
"jboss.module.resolve.phase.\"deployment.myapp.war\".main.1 is missing [jboss.module.spec.service.\"deployment.arquillian-service\".main]"]}
环境

  • 视窗7
  • EAP 6.4在docker容器中运行
  • Oracle Java 1.8
相关依赖项(Arquillian容器版本7.2.0.Final)


org.jboss.as
jboss作为arquillian容器远程
测试
org.jboss.arquillian.protocol
arquillian协议servlet
测试
arquillian.xml:

<arquillian xmlns="http://jboss.org/schema/arquillian" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://jboss.org/schema/arquillian http://jboss.org/schema/arquillian/arquillian_1_0.xsd">

  <container qualifier="jboss-remote" default="true">
    <configuration>
      <property name="managementAddress">${jboss.host}</property>
      <property name="username">${jboss.admin.user}</property>
      <property name="password">${jboss.admin.password}</property>

      <!-- Management port must be 9999 -->
      <property name="managementPort">9999</property>
    </configuration>
    <protocol type="Servlet 3.0">
      <property name="host">${jboss.host}</property>
      <property name="port">${jboss.host.port}</property>
    </protocol>

  </container>

</arquillian>

${jboss.host}
${jboss.admin.user}
${jboss.admin.password}
9999
${jboss.host}
${jboss.host.port}

在相关依赖项列表中,没有最重要的依赖项:


org.jboss.arquillian.junit
arquillian junit容器


你忘了把它添加到那里了吗?

这在Windows上似乎是个问题,我还没能在Linux上复制它

谢谢你的回复,就在那里
<arquillian xmlns="http://jboss.org/schema/arquillian" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://jboss.org/schema/arquillian http://jboss.org/schema/arquillian/arquillian_1_0.xsd">

  <container qualifier="jboss-remote" default="true">
    <configuration>
      <property name="managementAddress">${jboss.host}</property>
      <property name="username">${jboss.admin.user}</property>
      <property name="password">${jboss.admin.password}</property>

      <!-- Management port must be 9999 -->
      <property name="managementPort">9999</property>
    </configuration>
    <protocol type="Servlet 3.0">
      <property name="host">${jboss.host}</property>
      <property name="port">${jboss.host.port}</property>
    </protocol>

  </container>

</arquillian>