0 Replies Latest reply on Jul 30, 2018 1:56 PM by Carlos Lima

    Jboss Arquillian to tests with Jboss 4.2.3 GA

    Carlos Lima Newbie

      Hi guys!

      I've tried adding the test configuration for my project and I need to use the JBoss 4.2.3 GA in my tests.

       

      In my pom.xml I have:

       

      1. <dependencyManagement> 
      2.    <dependencies> 
      3.       <dependency> 
      4.          <groupId>org.jboss.arquillian</groupId> 
      5.          <artifactId>arquillian-bom</artifactId> 
      6.          <version>1.4.0.Final</version> 
      7.          <scope>import</scope> 
      8.          <type>pom</type> 
      9.       </dependency> 
      10.    </dependencies> 
      11. </dependencyManagement> 

       

      ...

       

      1. <dependency> 
      2.   <groupId>org.jboss.arquillian.junit</groupId> 
      3.   <artifactId>arquillian-junit-container</artifactId> 
      4.   <scope>test</scope> 
      5. </dependency> 

      ...

      And the profile:

      1. <profiles> 
      2.    <profile> 
      3.       <id>arquillian-jbossas-managed</id> 
      4.       <activation> 
      5.          <activeByDefault>true</activeByDefault> 
      6.       </activation> 
      7.       <dependencies> 
      8.          <dependency> 
      9.             <groupId>org.jboss.spec</groupId> 
      10.             <artifactId>jboss-javaee-6.0</artifactId> 
      11.             <version>1.0.0.Final</version> 
      12.             <type>pom</type> 
      13.             <scope>provided</scope> 
      14.          </dependency> 
      15.          <dependency> 
      16.             <groupId>org.jboss.client</groupId> 
      17.             <artifactId>jbossall-client</artifactId> 
      18.             <version>4.2.3.GA</version> 
      19.             <scope>provided</scope> 
      20.          </dependency> 
      21.          <dependency> 
      22.             <groupId>org.jboss.jbossas</groupId> 
      23.             <artifactId>jboss-server-manager</artifactId> 
      24.             <version>1.0.3.GA</version> 
      25.          </dependency> 
      26.          <dependency> 
      27.             <groupId>org.jboss.arquillian.container</groupId> 
      28.             <artifactId>arquillian-jbossas-managed-4.2</artifactId> 
      29.             <version>1.0.0.CR3</version> 
      30.          </dependency> 
      31.          <dependency> 
      32.             <groupId>org.jboss.arquillian.protocol</groupId> 
      33.             <artifactId>arquillian-protocol-servlet</artifactId> 
      34.             <scope>test</scope> 
      35.          </dependency> 
      36.       </dependencies> 
      37.       <build> 
      38.          <plugins> 
      39.             <plugin> 
      40.                <artifactId>maven-dependency-plugin</artifactId> 
      41.                <executions> 
      42.                   <execution> 
      43.                      <id>unpack</id> 
      44.                      <phase>process-test-classes</phase> 
      45.                      <goals> 
      46.                         <goal>unpack</goal> 
      47.                      </goals> 
      48.                      <configuration> 
      49.                         <artifactItems> 
      50.                            <artifactItem> 
      51.                               <groupId>org.jboss.jbossas</groupId> 
      52.                               <artifactId>jboss-as-dist</artifactId> 
      53.                               <version>4.2.3.GA</version> 
      54.                               <type>zip</type> 
      55.                               <overWrite>false</overWrite> 
      56.                               <outputDirectory>target</outputDirectory> 
      57.                            </artifactItem> 
      58.                         </artifactItems> 
      59.                      </configuration> 
      60.                   </execution> 
      61.                </executions> 
      62.             </plugin> 
      63.          </plugins> 
      64.       </build> 
      65.    </profile> 
      66. </profiles> 


      And an arquillian.xml too:

      1. <?xml version="1.0" encoding="UTF-8"?> 
      2. <arquillian xmlns="http://jboss.org/schema/arquillian" 
      3.             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
      4.             xsi:schemaLocation=" 
      5.         http://jboss.org/schema/arquillian 
      6.         http://jboss.org/schema/arquillian/arquillian_1_0.xsd"> 
      7.  
      8.  
      9.     <container qualifier="jbossas-managed" default="true"> 
      10.         <configuration> 
      11.             <!-- If you want to use an existing JBoss AS installation, change the value of this property to that path --> 
      12.             <!-- If you've already set the JBOSS_HOME environment variable, you can remove this configuration block --> 
      13.             <property name="jbossHome">target/jboss-4.2.3.GA</property> 
      14.         </configuration> 
      15.     </container> 
      16.  
      17.  
      18. </arquillian> 


      Then, when I try to run the tests I have the following error:

      1. Connected to the target VM, address: '127.0.0.1:58687', transport: 'socket' 
      2. 26/07/2018 11:49:26 org.jboss.arquillian.container.impl.MapObject populate 
      3. AVISO: Configuration contain properties not supported by the backing object org.jboss.arquillian.container.jbossas.managed_4_2.JBossASConfiguration 
      4. Unused property entries: {outputToConsole=true} 
      5. Supported property names: [shutdownTimeoutInSeconds, javaVmArguments, javaHome, partition, jbossHome, bindAddress, urlPkgPrefix, httpPort, startupTimeoutInSeconds, useRmiPortForAliveCheck, profileName, rmiPort] 
      6. Starting server "default", with command (start timeout is 120 seconds ):  
      7. C:\Program Files (x86)\Java\jdk1.6.0_45\bin\java -cp C:\Users\carlos.lima\Development\persi\target\jboss-4.2.3.GA\bin\run.jar;C:\Program Files (x86)\Java\jdk1.6.0_45\lib\tools.jar -Xmx512m -XX:MaxPermSize=128m -Djbosstest.udp.ip_ttl=0 -Djava.endorsed.dirs=C:\Users\carlos.lima\Development\persi\target\jboss-4.2.3.GA\lib\endorsed -Djboss.server.log.threshold=DEBUG -Djava.endorsed.dirs=C:\Users\carlos.lima\Development\persi\target\jboss-4.2.3.GA/lib/endorsed/ -Dxb.builder.useUnorderedSequence=true org.jboss.Main -c default -b localhost -g 164d710e8b7  
      8.  
      9.  
      10. org.jboss.arquillian.container.spi.client.container.LifecycleException: Could not connect to container 
      11.  
      12.  
      13. at org.jboss.arquillian.container.jbossas.managed_4_2.JBossASLocalContainer.start(JBossASLocalContainer.java:116) 
      14. at org.jboss.arquillian.container.impl.ContainerImpl.start(ContainerImpl.java:199) 
      15. at org.jboss.arquillian.container.impl.client.container.ContainerLifecycleController$8.perform(ContainerLifecycleController.java:163) 
      16. at org.jboss.arquillian.container.impl.client.container.ContainerLifecycleController$8.perform(ContainerLifecycleController.java:157) 
      17. at org.jboss.arquillian.container.impl.client.container.ContainerLifecycleController.forContainer(ContainerLifecycleController.java:255) 
      18. at org.jboss.arquillian.container.impl.client.container.ContainerLifecycleController.startContainer(ContainerLifecycleController.java:156) 
      19. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
      20. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 
      21. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 
      22. at java.lang.reflect.Method.invoke(Method.java:597) 
      23. at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:96) 
      24. at org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContextImpl.java:103) 
      25. at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:85) 
      26. at org.jboss.arquillian.container.impl.client.ContainerDeploymentContextHandler.createContainerContext(ContainerDeploymentContextHandler.java:57) 
      27. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
      28. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 
      29. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 
      30. at java.lang.reflect.Method.invoke(Method.java:597) 
      31. at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:96) 
      32. at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:92) 
      33. at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:143) 
      34. at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:114) 
      35. at org.jboss.arquillian.core.impl.EventImpl.fire(EventImpl.java:67) 
      36. at org.jboss.arquillian.container.impl.client.container.ContainerLifecycleController$2.perform(ContainerLifecycleController.java:77) 
      37. at org.jboss.arquillian.container.impl.client.container.ContainerLifecycleController$2.perform(ContainerLifecycleController.java:70) 
      38. at org.jboss.arquillian.container.impl.client.container.ContainerLifecycleController.forEachSuiteContainer(ContainerLifecycleController.java:221) 
      39. at org.jboss.arquillian.container.impl.client.container.ContainerLifecycleController.startSuiteContainers(ContainerLifecycleController.java:69) 
      40. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
      41. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 
      42. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 
      43. at java.lang.reflect.Method.invoke(Method.java:597) 
      44. at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:96) 
      45. at org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContextImpl.java:103) 
      46. at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:85) 
      47. at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:143) 
      48. at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:114) 
      49. at org.jboss.arquillian.core.impl.EventImpl.fire(EventImpl.java:67) 
      50. at org.jboss.arquillian.container.test.impl.client.ContainerEventController.execute(ContainerEventController.java:86) 
      51. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
      52. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 
      53. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 
      54. at java.lang.reflect.Method.invoke(Method.java:597) 
      55. at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:96) 
      56. at org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContextImpl.java:103) 
      57. at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:85) 
      58. at org.jboss.arquillian.test.impl.TestContextHandler.createSuiteContext(TestContextHandler.java:73) 
      59. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
      60. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 
      61. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 
      62. at java.lang.reflect.Method.invoke(Method.java:597) 
      63. at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:96) 
      64. at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:92) 
      65. at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:143) 
      66. at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:114) 
      67. at org.jboss.arquillian.test.impl.EventTestRunnerAdaptor.beforeSuite(EventTestRunnerAdaptor.java:75) 
      68. at org.jboss.arquillian.junit.Arquillian.run(Arquillian.java:116) 
      69. at org.junit.runner.JUnitCore.run(JUnitCore.java:137) 
      70. at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:68) 
      71. at com.intellij.rt.execution.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:47) 
      72. at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:242) 
      73. at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:70) 
      74. Caused by: java.io.IOException: Cannot run program "C:\Program" (in directory "C:\Users\carlos.lima\Development\persi\target\jboss-4.2.3.GA\bin"): CreateProcess error=2, O sistema não pode encontrar o arquivo especificado 
      75. at java.lang.ProcessBuilder.start(ProcessBuilder.java:470) 
      76. at java.lang.Runtime.exec(Runtime.java:593) 
      77. at java.lang.Runtime.exec(Runtime.java:431) 
      78. at org.jboss.jbossas.servermanager.ServerController.startServer(ServerController.java:106) 
      79. at org.jboss.jbossas.servermanager.ServerManager.startServer(ServerManager.java:163) 
      80. at org.jboss.arquillian.container.jbossas.managed_4_2.JBossASLocalContainer.start(JBossASLocalContainer.java:109) 
      81. ... 60 more 
      82. Caused by: java.io.IOException: CreateProcess error=2, O sistema não pode encontrar o arquivo especificado 
      83. at java.lang.ProcessImpl.create(Native Method) 
      84. at java.lang.ProcessImpl.<init>(ProcessImpl.java:177) 
      85. at java.lang.ProcessImpl.start(ProcessImpl.java:28) 
      86. at java.lang.ProcessBuilder.start(ProcessBuilder.java:452) 
      87. ... 65 more 
      88.  
      89.  
      90.  
      91.  
      92. Test ignored. 
      93. Disconnected from the target VM, address: '127.0.0.1:58687', transport: 'socket' 
      94.  
      95.  
      96. Process finished with exit code -1 


      Can someone help me?

       

      Hi guys! Apparently, the problem is when Arquillian executes the method startServer of ServerController class of jboss-server-manager dependency. In resume, if my javaHome contains white spaces it's a problem.

       

      Ok, I resolved this problem for now, but, I came across with other problem:

       

      Caused by: javax.enterprise.deploy.spi.exceptions.DeploymentManagerCreationException: No deployment manager for uri=jnp://localhost:1099  
      at javax.enterprise.deploy.shared.factories.DeploymentFactoryManager.getDeploymentManager(DeploymentFactoryManager.java:120)  
      at org.jboss.arquillian.container.jbossas.managed_4_2.JBossASLocalContainer.createDeploymentManager(JBossASLocalContainer.java:264)  
      at org.jboss.arquillian.container.jbossas.managed_4_2.JBossASLocalContainer.start(JBossASLocalContainer.java:112)  

       

      So, guys, I resolved this problem too.

      For this I removed the following dependency:

       

           dom4j
           dom4j
           1.6.1
           provided
      
      
      

       

      and added the dependency:

       

       

           org.jboss.spec
           jboss-javaee-6.0
           1.0.0.Final
           pom
           provided
      
      

       

       

      but, I came across with other problem:

       

      java.lang.RuntimeException: cannot obtain module type  
        
        
      at org.jboss.deployment.spi.DeploymentManagerImpl.createDeployment(DeploymentManagerImpl.java:491)  
      at org.jboss.deployment.spi.DeploymentManagerImpl.distribute(DeploymentManagerImpl.java:350)  
      at org.jboss.deployment.spi.DeploymentManagerImpl.distribute(DeploymentManagerImpl.java:316)  
      at org.jboss.arquillian.container.jbossas.managed_4_2.JBossASLocalContainer.deploy(JBossASLocalContainer.java:168)  
      at org.jboss.arquillian.container.jbossas.managed_4_2.JBossASLocalContainer.deploy(JBossASLocalContainer.java:136)  
      at org.jboss.arquillian.container.impl.client.container.ContainerDeployController$3.call(ContainerDeployController.java:151)  
      at org.jboss.arquillian.container.impl.client.container.ContainerDeployController$3.call(ContainerDeployController.java:118)  
      at org.jboss.arquillian.container.impl.client.container.ContainerDeployController.executeOperation(ContainerDeployController.java:239)  
      at org.jboss.arquillian.container.impl.client.container.ContainerDeployController.deploy(ContainerDeployController.java:118)  
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)  
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)  
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)  
      at java.lang.reflect.Method.invoke(Method.java:597)  
      at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:86)  
      at org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContextImpl.java:103)  
      at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:90)  
      at org.jboss.arquillian.container.impl.client.ContainerDeploymentContextHandler.createDeploymentContext(ContainerDeploymentContextHandler.java:71)  
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)  
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)  
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)  
      at java.lang.reflect.Method.invoke(Method.java:597)  
      at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:86)  
      at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:95)  
      at org.jboss.arquillian.container.impl.client.ContainerDeploymentContextHandler.createContainerContext(ContainerDeploymentContextHandler.java:54)  
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)  
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)  
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)  
      at java.lang.reflect.Method.invoke(Method.java:597)  
      at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:86)  
      at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:95)  
      at org.jboss.arquillian.container.impl.client.container.DeploymentExceptionHandler.verifyExpectedExceptionDuringDeploy(DeploymentExceptionHandler.java:47)  
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)  
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)  
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)  
      at java.lang.reflect.Method.invoke(Method.java:597)  
      at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:86)  
      at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:95)  
      at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:133)  
      at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:105)  
      at org.jboss.arquillian.core.impl.EventImpl.fire(EventImpl.java:62)  
      at org.jboss.arquillian.container.impl.client.container.ContainerDeployController$1.perform(ContainerDeployController.java:92)  
      at org.jboss.arquillian.container.impl.client.container.ContainerDeployController$1.perform(ContainerDeployController.java:77)  
      at org.jboss.arquillian.container.impl.client.container.ContainerDeployController.forEachDeployment(ContainerDeployController.java:232)  
      at org.jboss.arquillian.container.impl.client.container.ContainerDeployController.forEachManagedDeployment(ContainerDeployController.java:212)  
      at org.jboss.arquillian.container.impl.client.container.ContainerDeployController.deployManaged(ContainerDeployController.java:77)  
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)  
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)  
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)  
      at java.lang.reflect.Method.invoke(Method.java:597)  
      at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:86)  
      at org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContextImpl.java:103)  
      at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:90)  
      at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:133)  
      at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:105)  
      at org.jboss.arquillian.core.impl.EventImpl.fire(EventImpl.java:62)  
      at org.jboss.arquillian.container.test.impl.client.ContainerEventController.execute(ContainerEventController.java:96)  
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)  
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)  
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)  
      at java.lang.reflect.Method.invoke(Method.java:597)  
      at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:86)  
      at org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContextImpl.java:103)  
      at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:90)  
      at org.jboss.arquillian.test.impl.TestContextHandler.createClassContext(TestContextHandler.java:83)  
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)  
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)  
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)  
      at java.lang.reflect.Method.invoke(Method.java:597)  
      at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:86)  
      at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:95)  
      at org.jboss.arquillian.test.impl.TestContextHandler.createSuiteContext(TestContextHandler.java:69)  
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)  
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)  
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)  
      at java.lang.reflect.Method.invoke(Method.java:597)  
      at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:86)  
      at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:95)  
      at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:133)  
      at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:105)  
      at org.jboss.arquillian.test.impl.EventTestRunnerAdaptor.beforeClass(EventTestRunnerAdaptor.java:89)  
      at org.jboss.arquillian.junit.Arquillian$2.evaluate(Arquillian.java:163)  
      at org.jboss.arquillian.junit.Arquillian.multiExecute(Arquillian.java:350)  
      at org.jboss.arquillian.junit.Arquillian.access$200(Arquillian.java:54)  
      at org.jboss.arquillian.junit.Arquillian$3.evaluate(Arquillian.java:177)  
      at org.junit.runners.ParentRunner.run(ParentRunner.java:363)  
      at org.jboss.arquillian.junit.Arquillian.run(Arquillian.java:115)  
      at org.junit.runner.JUnitCore.run(JUnitCore.java:137)  
      at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:68)  
      at com.intellij.rt.execution.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:47)  
      at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:242)  
      at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:70)  

       

      I created my deployment archive this way:

       

      • @Deployment
      • public static Archive createDeployment() { 
      • final JavaArchive javaArchive = ShrinkWrap.create(JavaArchive.class, "test.jar"
      •                 .addPackages(Boolean.TRUE, "mypackage"
      •                 .addAsManifestResource("META-INF/ejb-jar.xml", "ejb-jar.xml"
      •                 .addAsManifestResource("META-INF/persistence.xml", "persistence.xml"
      •                 .addAsManifestResource(EmptyAsset.INSTANCE, "beans.xml"); 
      •         System.out.println(javaArchive.toString(true)); 
      • return javaArchive; 
      •     }