I’m pulling and building the latest “camunda-bpm-examples”. When it gets to running “org.camunda.bpm.example.spring.servlet.pa.ArquillianTest” it appears that this starts a standalone JBoss instance, but that’s as far as the test and the build gets. It hangs there forever. The last line of output that appears is this:
15:07:45,807 INFO [org.jboss.as] (MSC service thread 1-5) JBAS015899: JBoss AS 7.2.0.Final “Janus” starting
It all exits when I press ^C. I’ve tested this multiple times.
I’m not a huge fan of the Arquillian test infrastructure. Though it’s convenient, I prefer starting an actual JBoss/Wildfly server first and then run my tests, typically via HTTP clients, against this server. My reasoning is that I first need to see a clean, error free server startup (first part of test). Then, after I get a clean startup, begin the regression run.
If your server “hangs”, I’m guessing you have a port conflict or some sort of firewall issue? You should see the port conflict in the logs.
NOTE: Another reason I test via HTTP-clients against a server instance is that this approach requires a lot less time to execute the test-suite. I use Eclipse setup with JBoss-tools, configured for “automatically publish” (i.e. “hot-deploy”).
I’m using JDK 8 for Wildfly 10.x and haven’t yet bumped into this sort of trouble. I ran a complete test-suite just a few days ago.
Though I don’t know if this is an actual bug… I have run into troubles when mixing JDK/JRE versions. I’d recommend verifying your test driver (and the platform you’re developing from) is fully aligned with your target platform JDK. I was getting a bunch of funky errors/hangs until I fixed this issue within my lab.
That’s why I explicitly wrote JBoss 7.2.0 and nothing about Wildfly.
See this thread in Jboss forum. The RedHat ppl never fixed the JDK 8 issue in JBoss 7.1 and 7.2 line.
It is fixed with EAP 6.3.3 and later as stated here, which features JBoss 7.3+. Those are only available for enterprise customers.
Wildfly isn’t affected by this because the fixes for JDK 8 went into it right away.
So I’m trying to understand the impact of this. Obviously Camunda itself works fine on Java8, it’s just that at least this “camunda-bpm-examples” repo won’t fully build/run on Java8. That is because the Arquillian test is using JBoss 7.2, which won’t run with Java8. However, I’m hearing here that recent versions of Wildfly will work on Java8. Is Arquillian limited to JBoss, or can Arquillian use Wildfly?
And… even when attempting to scope the test to WildFly10, I’m now also seeing the same Arquillian error. I’m sure Wildfly works with Arquillian… mostly sure.
here’s my error:
mvn clean test -Duser.timezone=CET -Denforcer.skip=true -Pengine-integration,wildfly,wildfly10,h2
Caused by: java.util.concurrent.TimeoutException: Managed server was not started within  s