0 Replies Latest reply on Apr 11, 2017 5:10 AM by meselfe

    arquillian-wls-embedded vs arquillian-wls-remote

    meselfe

      Hi All

       

      I tried running a test with the wls-remote adapter but although the war is deployed immediately the test itself (which is a very simple cdi injection test) doesnt run until after several minutes and it seems reporting the result back to junit takes another few miinutes, so now im trying the wls-embedded instead but getting the following error. Anyone know how to fix this?

       

      javax.ejb.EJBException: Could not determine the module name for C:\Users\dude\AppData\Local\Temp\arquillian6622258161391411009test.war\test.war

              at weblogic.ejb.embeddable.EJBContainerImpl.getEJBModuleName(EJBContainerImpl.java:545)

              at weblogic.ejb.embeddable.EJBContainerImpl.createFileSet(EJBContainerImpl.java:330)

              at weblogic.ejb.embeddable.EJBContainerImpl.getEJBModules(EJBContainerImpl.java:312)

              at weblogic.ejb.embeddable.EJBContainerImpl.<init>(EJBContainerImpl.java:85)

              at weblogic.ejb.embeddable.EJBContainerProvider.createEJBContainer(EJBContainerProvider.java:17)

              at javax.ejb.embeddable.EJBContainer.createEJBContainer(EJBContainer.java:102)

              at org.jboss.arquillian.container.wls.embedded_12_1.WebLogicContainer.deploy(WebLogicContainer.java:100)

       

      The war file that is deployed contains:

       

      test.war:

      /WEB-INF/

      /WEB-INF/classes/

      /WEB-INF/classes/Service.class

      /WEB-INF/beans.xml

       

      Using Arquillian 1.0.3.Final with arquillian-wls-embedded-12.1 1.0.1.Final and weblogic.jar from WLS 12.1.3 is added to classpath:

       

      <dependencies>

        <dependency>

        <groupId>org.jboss.arquillian.container</groupId>

        <artifactId>arquillian-wls-embedded-12.1</artifactId>

        <version>1.0.1.Final</version>

        <scope>test</scope>

        </dependency>

      </dependencies>

       

      <build>

        <plugins>

        <plugin>

        <groupId>org.apache.maven.plugins</groupId>

        <artifactId>maven-surefire-plugin</artifactId>

        <version>2.18</version>

        <configuration>

        <systemPropertyVariables>

        <arquillian.launch>weblogic-embedded</arquillian.launch>

        </systemPropertyVariables>

        <argLine>-Xmx256m</argLine>

        <enableAssertions>false</enableAssertions>

        <additionalClasspathElements>

        <additionalClasspathElement>${weblogic.jar.path}

        </additionalClasspathElement>

        </additionalClasspathElements>

        </configuration>

        </plugin>

        </plugins>

      </build>