简体   繁体   English

Arquillian测试在JBoss eap 6.1上失败(但在JBoss 7.1.1上工作)

[英]Arquillian tests fail on JBoss eap 6.1 (but working on JBoss 7.1.1)

I have a problem running my arquillian tests (started by a jenkins job) on a JBoss eap 6.1 server. 我在JBoss eap 6.1服务器上运行Arquillian测试(由jenkins作业启动)时遇到问题。 It's no problem to run the tests on a JBoss 7.1.1 server, but when I switch to the eap 6.1 I get the following exception for all tests: 在JBoss 7.1.1服务器上运行测试没问题,但是当我切换到eap 6.1时,对于所有测试,都会得到以下异常:

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:555)
    at java.util.TimerThread.run(Timer.java:505)

If I run the tests on a EAP 6.1 server on my local machine everything works fine (it's the same configuration so that can't be a problem). 如果我在本地计算机上的EAP 6.1服务器上运行测试,则一切工作正常(配置相同,因此不会出现问题)。

Does anyone have an idea what could be the problem? 有谁知道可能是什么问题?

arquillian dependencies: Arquillian依赖项:

  <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> 

我发现从arquillian.xml中删除<defaultProtocol type="Servlet 3.0"/>可以解决此问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM