Arquil tests fail on JBoss eap 6.1 (but work on JBoss 7.1.1)

I have a problem with my Arkillian tests (started by the jenkins job) on a JBoss eap 6.1 server. You should not run tests on the JBoss 7.1.1 server, but when I switch to eap 6.1, I get the following exception for all tests:

  java.lang.IllegalStateException: Error launching test at http://0.0.0.0:8080/test/ArquillianServletRunner?outputMode=serializedObject&className=testClass&methodName=testMethod&cmd=event.  Got 503 (Service Unavailable)
     at org.jboss.arquillian.protocol.servlet.ServletMethodExecutor.execute (ServletMethodExecutor.java:214)
     at org.jboss.arquillian.protocol.servlet.ServletMethodExecutor $ 1.run (ServletMethodExecutor.java:243)
     at java.util.TimerThread.mainLoop (Timer.java∗55)
     at java.util.TimerThread.run (Timer.java:505)

If I run the tests on the EAP 6.1 server on my local computer, everything works fine (this is the same configuration as it might not be a problem).

Does anyone have an idea what might be the problem?

Arkilian dependencies:

<dependency> <groupId>org.jboss.spec</groupId> <artifactId>jboss-javaee6-specs-bom</artifactId> <version>2.0.0.Final</version> <type>pom</type> <scope>test</scope> </dependency> <dependency> <groupId>org.jboss.arquillian.junit</groupId> <artifactId>arquillian-junit-container</artifactId> <version>1.1.1.Final</version> <scope>test</scope> </dependency> <dependency> <groupId>org.jboss.arquillian.protocol</groupId> <artifactId>arquillian-protocol-servlet</artifactId> <version>1.1.1.Final</version> <scope>test</scope> </dependency> <dependency> <groupId>org.jboss.as</groupId> <artifactId>jboss-as-arquillian-container-managed</artifactId> <version>${version.org.jboss.jbossas}</version> <scope>test</scope> </dependency> <dependency> <groupId>org.jboss.as</groupId> <artifactId>jboss-as-arquillian-container-remote</artifactId> <version>${version.org.jboss.jbossas}</version> <scope>test</scope> </dependency> <dependency> <groupId>org.jboss.arquillian.extension</groupId> <artifactId>arquillian-persistence-impl</artifactId> <version>1.0.0.Alpha5</version> <scope>test</scope> </dependency> <dependency> <groupId>org.jboss.shrinkwrap.resolver</groupId> <artifactId>shrinkwrap-resolver-bom</artifactId> <version>2.0.0</version> <scope>test</scope> <type>pom</type> </dependency> <dependency> <groupId>org.jboss.shrinkwrap</groupId> <artifactId>shrinkwrap-api</artifactId> <version>1.2.0</version> </dependency> 
0
source share
1 answer

I found that removing <defaultProtocol type="Servlet 3.0"/> from arquillian.xml would fix this problem.

0
source

Source: https://habr.com/ru/post/970346/


All Articles