How do you run this?
The arquillian-service should be undeployed inbetween runs.
I'm using the remote container.
No, i mean do you ru nit from IDE or Maven?
Maven pre 2.09 if I remember correctly has a bug that prevents calling TestResultFinished (which triggeres the event Arquillian is listning to to do the shutdown.)
Then the deployed service is not undeployed, and the old version will be available next time you run.
I'm running maven from the command line. I've noticed for some time (~June 2012) that the arquillian-service deployment block hangs around after running a remote test.
mvn -version Apache Maven 3.0.3 (r1075438; 2011-02-28 17:31:09+0000) Maven home: /usr/share/maven Java version: 1.6.0_37, vendor: Apple Inc. Java home: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home Default locale: en_US, platform encoding: MacRoman OS name: "mac os x", version: "10.8.2", arch: "x86_64", family: "mac"
Also, here's the deployment block that hangs around:
<deployments> <deployment name="arquillian-service" runtime-name="arquillian-service" enabled="true"> <content sha1="913888051416fd791d4dfdb2297767229cd1584f"/> </deployment> </deployments>
which version of the maven surefire plugin are you using?
I was using the default. However, when i specify the latest version (2.12.4) the arquillian service *is* undeployed when the tests completes. I can also confirm that this solves the original issue of not being able to switch Transaction Extension implementations.