After trying to launch the built-in war and running it offline, Wildfly managed to narrow the problem down to Arkillian, after I tested Arquillian + Glassfish without any problems, I realized that the problem was Arquillian + Wildfly, and I found similar problems related using the Wildfly built into Arquillian and that Wildfly works with Arquillian works well, the reason I really canβt say seems like some kind of mistake, but it also seems like general advice online to use managed or remote containers for dough Arquillian instead built.
So the solution is really simple, just deleted this:
<dependency> <groupId>org.wildfly</groupId> <artifactId>wildfly-arquillian-container-embedded</artifactId> <version>8.2.0.Final</version> <scope>test</scope> </dependency> <dependency> <groupId>org.wildfly</groupId> <artifactId>wildfly-embedded</artifactId> <version>8.2.0.Final</version> <scope>provided</scope> </dependency>
and added the following:
<dependency> <groupId>org.wildfly</groupId> <artifactId>wildfly-arquillian-container-managed</artifactId> <version>8.2.0.Final</version> <scope>test</scope> </dependency>
The solution ends up not using Wildfly built-in with Arquillian, but managed instead.
source share