3 Replies Latest reply on Nov 25, 2016 2:44 AM by Gerrit Hohl

    WildFly & Arquillian & EclipseLink: jipijapa-eclipselink classes can't be found during deployment

    Gerrit Hohl Newbie

      Hello everyone,

       

      I'm currently working on some JUnit tests for our EJBs. We're using WildFly 10.1.0-Final. After some research I saw that tests can be implemented using the Arquillian framework.

      It took me really some time to get it running (somehow all examples in the Internet are outdated). But now I can test simply EJBs.

       

      pom.xml (not complete, only the important parts):

       

      <project>
          <properties>
              <wildFlyHome>${project.build.directory}/wildfly-10.1.0.Final</wildFlyHome>
              <arquillian.launch>arquillian-wildfly10-embedded</arquillian.launch>
          </properties>
          <dependencyManagement>
              <dependencies>
                  <!-- Needed for the tests -->
                  <dependency>
                      <groupId>org.jboss.arquillian</groupId>
                      <artifactId>arquillian-bom</artifactId>
                      <version>1.1.11.Final</version>
                      <scope>import</scope>
                      <type>pom</type>
                  </dependency>
                  <dependency>
                      <groupId>org.jboss.shrinkwrap.resolver</groupId>
                      <artifactId>shrinkwrap-resolver-bom</artifactId>
                      <version>2.2.4</version>
                      <scope>import</scope>
                      <type>pom</type>
                  </dependency>
              </dependencies>
          </dependencyManagement>
          <dependencies>
              <dependency>
                  <groupId>junit</groupId>
                  <artifactId>junit</artifactId>
                  <version>4.12</version>
                  <scope>test</scope>
              </dependency>
              <dependency>
                  <groupId>org.eclipse.persistence</groupId>
                  <artifactId>eclipselink</artifactId>
                  <version>2.6.4</version>
                  <scope>test</scope>
              </dependency>
              <dependency>
                  <groupId>org.wildfly</groupId>
                  <artifactId>jipijapa-eclipselink</artifactId>
                  <version>10.1.0.Final</version>
                  <scope>provided</scope>
              </dependency>
              <dependency>
                  <groupId>org.apache.derby</groupId>
                  <artifactId>derby</artifactId>
                  <version>10.13.1.1</version>
                  <scope>test</scope>
              </dependency>
              <dependency>
                  <groupId>org.jboss.arquillian.junit</groupId>
                  <artifactId>arquillian-junit-container</artifactId>
                  <scope>test</scope>
              </dependency>
              <dependency>
                  <groupId>org.jboss.shrinkwrap.resolver</groupId>
                  <artifactId>shrinkwrap-resolver-impl-maven</artifactId>
                  <scope>test</scope>
              </dependency>
              <dependency>
                  <groupId>org.wildfly.arquillian</groupId>
                  <artifactId>wildfly-arquillian-container-embedded</artifactId>
                  <version>2.0.0.Final</version>
                  <scope>test</scope>
              </dependency>
          </dependencies>
          <build>
              <plugins>
                  <plugin>
                      <groupId>org.apache.maven.plugins</groupId>
                      <artifactId>maven-dependency-plugin</artifactId>
                      <version>2.10</version>
                      <executions>
                          <execution>
                              <id>unpack-wildfly</id>
                              <phase>process-test-classes</phase>
                              <goals>
                                  <goal>unpack</goal>
                              </goals>
                              <configuration>
                                  <artifactItems>
                                      <artifactItem>
                                          <groupId>org.wildfly</groupId>
                                          <artifactId>wildfly-dist</artifactId>
                                          <version>10.1.0.Final</version>
                                          <type>zip</type>
                                          <overWrite>false</overWrite>
                                          <outputDirectory>target</outputDirectory>
                                      </artifactItem>
                                  </artifactItems>
                              </configuration>
                          </execution>
                      </executions>
                  </plugin>
                  <plugin>
                      <groupId>org.apache.maven.plugins</groupId>
                      <artifactId>maven-surefire-plugin</artifactId>
                      <version>2.19.1</version>
                      <configuration>
                          <!-- Fork every test because it will launch a separate AS instance -->
                          <forkMode>always</forkMode>
                          <systemPropertyVariables>
                              <java.util.logging.manager>org.jboss.logmanager.LogManager</java.util.logging.manager>
                              <logging.configuration>file:${project.basedir}/src/test/resources/logging.properties</logging.configuration>
                              <arquillian.launch>arquillian-wildfly10-embedded</arquillian.launch>
                              <jboss.home>${wildFlyHome}</jboss.home>
                              <module.path>${wildFlyHome}/modules</module.path>
                              <!-- Needed by jipijapa-eclipselink -->
                              <eclipselink.archive.factory>org.jipijapa.eclipselink.JBossArchiveFactoryImpl</eclipselink.archive.factory>
                          </systemPropertyVariables>
                          <redirectTestOutputToFile>false</redirectTestOutputToFile>
                      </configuration>
                  </plugin>
              </plugins>
          </build>
      </project>
      

       

      src/test/resources/arquillian.xml:

       

      <?xml version="1.0" encoding="UTF-8" standalone="no"?>
      <arquillian xmlns="http://jboss.org/schema/arquillian"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://jboss.org/schema/arquillian http://jboss.org/schema/arquillian/arquillian_1_0.xsd">
      
          <container qualifier="arquillian-wildfly10-embedded" default="true">
              <configuration>
                  <property name="jbossHome">target/wildfly-10.1.0.Final</property>
              </configuration>
          </container>
      
      </arquillian>
      

       

      src/test/resources/META-INF/persistence-test.xml

       

      <?xml version="1.0" encoding="UTF-8"?>
      <persistence version="2.0"
          xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation=" http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd">
          
          <persistence-unit name="orderingManager" transaction-type="RESOURCE_LOCAL">
              <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>
              <class>com.sample.ejb.marketplace.ArticleEntity</class>
              <class>com.sample.ejb.marketplace.DealerEntity</class>
              <exclude-unlisted-classes>false</exclude-unlisted-classes>
              <properties>
                  <property name="javax.persistence.jdbc.driver" value="org.apache.derby.jdbc.EmbeddedDriver" />
                  <property name="javax.persistence.jdbc.url" value="jdbc:derby:memory:myDB;create=true" />
                  <property name="eclipselink.target-database" value="Derby" />
                  <property name="eclipselink.target-server" value="JBoss" />
                  <property name="eclipselink.logging.level.sql" value="FINE"/>
                  <property name="eclipselink.logging.parameters" value="true"/>
              </properties>
          </persistence-unit>
      </persistence>
      

       

      And finally the test (resolvePomDependencies just resolves the dependencies of the project using the pom.xml):

       

      public class SampleBeanRemoteImplTest extends AbstractBeanTest {
      
      
          /** The sample bean. */
          @EJB(beanName = "SampleBeanRemote")
          private SampleBeanRemote sampleBean;
      
      
          @Deployment()
          public static WebArchive createWebDeployment() {
              WebArchive archive;
              File[] files;
      
      
              files = resolvePomDependencies();
      
              archive = ShrinkWrap.create(WebArchive.class).addClass(CallContext.class)
                      .addClass(CallContextInterceptor.class).addClass(SampleBeanLocal.class)
                      .addClass(SampleBeanLocalImpl.class).addClass(SampleBeanRemote.class)
                      .addClass(SampleBeanRemoteImpl.class)
                      .addAsWebInfResource("META-INF/persistence-test.xml", "classes/META-INF/persistence.xml")
                      .addPackages(true, "com.sample.ejb.util")
                      .addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml").addAsLibraries(files);
              return archive;
          }
      
          @Test
          public void test() {
              String result;
      
      
              result = this.sampleBean.echo("Arquillian");
              Assert.assertEquals("Hello Arquillian", result);
          }
      
      
      }
      

       

      And if I executed the test right from Eclipse I'm using the following VM arguments:

       

      -Djboss.home=target/wildfly-10.1.0.Final -Djava.util.logging.manager=org.jboss.logmanager.LogManager -Dlogging.configuration=file:src/test/resources/logging.properties -Declipselink.archive.factory=org.jipijapa.eclipselink.JBossArchiveFactoryImpl
      

       

      The behaviour is the same in both cases (test performed by Maven and test performed by Eclipse): WildFly is started as an embedded server (I also see all the server threads if I start the test in debugging mode). At some point Arquillian calls the @Deployment annotated method of the test. The pseudo archive is created. After the method returns Arquillian deploys the result into the embedded WildFly. If I don't use no persistence / no EclipseLink the test is performed successfully (means all the persistence settings above have to be removed for that, of course). So far, so good.

       

      The problem starts when I try to use persistence (Derby in-memory plus EclipseLink). EclipseLink for some reasons goes into a loop and crashed at some point. But there is a solution which "patches" EclipseLink: jipijapa-eclipselink. If I add that I have the problem that WildFly doesn't find the corresponding classes from that package (E.g. the JBossArchiveFactoryImpl) also I put that JAR into the archive. As it didn't work I thought that maybe at the point WildFly initialized the persistence layer the libraries from the archive are not loaded. And I realized that exactly that jipijapa-eclipselink JAR in exact that version is already part of WildFly. It can be found at target\wildfly-10.1.0.Final\modules\system\layers\base\org\eclipse\persistence\main (jipijapa-eclipselink-10.1.0.Final.jar and module.xml). But somehow WildFly seems not to recognize that.

       

      Here the  output of the JUnit test if I execute it in Eclipse (the output is the same when I do this with Maven):

       

      09:25:39,855 INFO  [org.jboss.modules] (main) JBoss Modules version 1.5.1.Final
      09:25:41,744 INFO  [org.jboss.msc] (main) JBoss MSC version 1.2.6.Final
      09:25:43,149 INFO  [org.jboss.as] (MSC service thread 1-7) WFLYSRV0049: WildFly Full 10.1.0.Final (WildFly Core 2.2.0.Final) starting
      09:25:55,162 INFO  [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0039: Creating http management service using socket-binding (management-http)
      09:25:55,553 INFO  [org.xnio] (MSC service thread 1-2) XNIO version 3.4.0.Final
      09:25:55,693 INFO  [org.xnio.nio] (MSC service thread 1-2) XNIO NIO Implementation Version 3.4.0.Final
      09:25:56,068 WARN  [org.jboss.as.txn] (ServerService Thread Pool -- 54) WFLYTX0013: Node identifier property is set to the default value. Please make sure it is unique.
      09:25:56,068 INFO  [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 38) WFLYCLINF0001: Activating Infinispan subsystem.
      09:25:56,099 INFO  [org.jboss.as.jsf] (ServerService Thread Pool -- 44) WFLYJSF0007: Activated the following JSF Implementations: [main]
      09:25:56,114 INFO  [org.wildfly.extension.io] (ServerService Thread Pool -- 37) WFLYIO001: Worker 'default' has auto-configured to 8 core threads with 64 task threads based on your 4 available processors
      09:25:56,161 INFO  [org.jboss.as.security] (ServerService Thread Pool -- 53) WFLYSEC0002: Activating Security Subsystem
      09:25:56,286 INFO  [org.jboss.as.security] (MSC service thread 1-7) WFLYSEC0001: Current PicketBox version=4.9.6.Final
      09:25:56,490 INFO  [org.jboss.as.webservices] (ServerService Thread Pool -- 56) WFLYWS0002: Activating WebServices Extension
      09:25:56,786 INFO  [org.jboss.as.connector] (MSC service thread 1-5) WFLYJCA0009: Starting JCA Subsystem (WildFly/IronJacamar 1.3.4.Final)
      09:25:57,379 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-8) WFLYUT0003: Undertow 1.4.0.Final starting
      09:25:57,676 INFO  [org.jboss.as.naming] (ServerService Thread Pool -- 46) WFLYNAM0001: Activating Naming Subsystem
      09:25:59,299 INFO  [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 33) WFLYJCA0004: Deploying JDBC-compliant driver class org.h2.Driver (version 1.3)
      09:25:59,299 INFO  [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-8) WFLYJCA0018: Started Driver service with driver-name = h2
      09:26:01,265 INFO  [org.wildfly.extension.undertow] (ServerService Thread Pool -- 55) WFLYUT0014: Creating file handler for path 'C:\Users\g.hohl\workspace\Test\ejb-remote-server\target\wildfly-10.1.0.Final/welcome-content' with options [directory-listing: 'false', follow-symlink: 'false', case-sensitive: 'true', safe-symlink-paths: '[]']
      09:26:03,232 INFO  [org.jboss.as.naming] (MSC service thread 1-7) WFLYNAM0003: Starting Naming Service
      09:26:03,232 INFO  [org.jboss.as.mail.extension] (MSC service thread 1-7) WFLYMAIL0001: Bound mail session [java:jboss/mail/Default]
      09:26:04,028 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-4) WFLYUT0012: Started server default-server.
      09:26:04,060 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-7) WFLYUT0018: Host default-host starting
      09:26:04,325 INFO  [org.jboss.remoting] (MSC service thread 1-1) JBoss Remoting version 4.0.21.Final
      09:26:06,215 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-4) WFLYUT0006: Undertow HTTP listener default listening on 127.0.0.1:8080
      09:26:06,544 INFO  [org.jboss.as.ejb3] (MSC service thread 1-8) WFLYEJB0482: Strict pool mdb-strict-max-pool is using a max instance size of 16 (per class), which is derived from the number of CPUs on this host.
      09:26:06,544 INFO  [org.jboss.as.ejb3] (MSC service thread 1-3) WFLYEJB0481: Strict pool slsb-strict-max-pool is using a max instance size of 64 (per class), which is derived from thread worker pool sizing.
      09:26:07,371 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-2) WFLYJCA0001: Bound data source [java:jboss/datasources/ExampleDS]
      09:26:08,027 WARN  [org.jboss.as.domain.management.security] (MSC service thread 1-5) WFLYDM0111: Keystore C:\Users\g.hohl\workspace\Test\ejb-remote-server\target\wildfly-10.1.0.Final\standalone\configuration\application.keystore not found, it will be auto generated on first use with a self signed certificate for host localhost
      09:26:08,199 INFO  [org.jboss.as.server.deployment.scanner] (MSC service thread 1-3) WFLYDS0013: Started FileSystemDeploymentService for directory C:\Users\g.hohl\workspace\Test\ejb-remote-server\target\wildfly-10.1.0.Final\standalone\deployments
      09:26:10,273 INFO  [org.infinispan.factories.GlobalComponentRegistry] (MSC service thread 1-2) ISPN000128: Infinispan version: Infinispan 'Chakra' 8.2.4.Final
      09:26:10,633 INFO  [org.infinispan.configuration.cache.EvictionConfigurationBuilder] (ServerService Thread Pool -- 61) ISPN000152: Passivation configured without an eviction policy being selected. Only manually evicted entities will be passivated.
      09:26:10,633 INFO  [org.infinispan.configuration.cache.EvictionConfigurationBuilder] (ServerService Thread Pool -- 63) ISPN000152: Passivation configured without an eviction policy being selected. Only manually evicted entities will be passivated.
      09:26:10,633 INFO  [org.infinispan.configuration.cache.EvictionConfigurationBuilder] (ServerService Thread Pool -- 61) ISPN000152: Passivation configured without an eviction policy being selected. Only manually evicted entities will be passivated.
      09:26:10,633 INFO  [org.infinispan.configuration.cache.EvictionConfigurationBuilder] (ServerService Thread Pool -- 63) ISPN000152: Passivation configured without an eviction policy being selected. Only manually evicted entities will be passivated.
      09:26:10,633 INFO  [org.infinispan.configuration.cache.EvictionConfigurationBuilder] (ServerService Thread Pool -- 60) ISPN000152: Passivation configured without an eviction policy being selected. Only manually evicted entities will be passivated.
      09:26:10,633 INFO  [org.infinispan.configuration.cache.EvictionConfigurationBuilder] (ServerService Thread Pool -- 60) ISPN000152: Passivation configured without an eviction policy being selected. Only manually evicted entities will be passivated.
      09:26:11,569 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-5) WFLYUT0006: Undertow HTTPS listener https listening on 127.0.0.1:8443
      09:26:12,444 INFO  [org.jboss.ws.common.management] (MSC service thread 1-1) JBWS022052: Starting JBossWS 5.1.5.Final (Apache CXF 3.1.6) 
      09:26:12,740 INFO  [org.jboss.as] (Controller Boot Thread) WFLYSRV0060: Http management interface listening on http://127.0.0.1:9990/management
      09:26:12,740 INFO  [org.jboss.as] (Controller Boot Thread) WFLYSRV0051: Admin console listening on http://127.0.0.1:9990
      09:26:12,740 INFO  [org.jboss.as] (Controller Boot Thread) WFLYSRV0025: WildFly Full 10.1.0.Final (WildFly Core 2.2.0.Final) started in 32166ms - Started 331 of 577 services (393 services are lazy, passive or on-demand)
      09:26:18,608 INFO  [org.xnio] (main) XNIO version 3.3.4.Final
      09:26:18,655 INFO  [org.xnio.nio] (main) XNIO NIO Implementation Version 3.3.4.Final
      09:26:18,748 INFO  [org.jboss.remoting] (main) JBoss Remoting version 4.0.18.Final
      09:26:26,096 INFO  [org.jboss.as.repository] (management-handler-thread - 1) WFLYDR0001: Content added at location C:\Users\g.hohl\workspace\Test\ejb-remote-server\target\wildfly-10.1.0.Final\standalone\data\content\08\e1b361c7b181367a3fcb1bf922eb9e753ef23a\content
      09:26:26,268 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-7) WFLYSRV0027: Starting deployment of "07582f8f-b401-4a73-95ea-1d9fc55401b0.war" (runtime-name: "07582f8f-b401-4a73-95ea-1d9fc55401b0.war")
      09:26:35,644 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-7) WFLYSRV0059: Class Path entry derbyLocale_cs.jar in /C:/Users/g.hohl/workspace/Test/ejb-remote-server/content/07582f8f-b401-4a73-95ea-1d9fc55401b0.war/WEB-INF/lib/derby-10.13.1.1.jar  does not point to a valid jar for a Class-Path reference.
      09:26:35,644 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-7) WFLYSRV0059: Class Path entry derbyLocale_de_DE.jar in /C:/Users/g.hohl/workspace/Test/ejb-remote-server/content/07582f8f-b401-4a73-95ea-1d9fc55401b0.war/WEB-INF/lib/derby-10.13.1.1.jar  does not point to a valid jar for a Class-Path reference.
      09:26:35,644 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-7) WFLYSRV0059: Class Path entry derbyLocale_es.jar in /C:/Users/g.hohl/workspace/Test/ejb-remote-server/content/07582f8f-b401-4a73-95ea-1d9fc55401b0.war/WEB-INF/lib/derby-10.13.1.1.jar  does not point to a valid jar for a Class-Path reference.
      09:26:35,644 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-7) WFLYSRV0059: Class Path entry derbyLocale_fr.jar in /C:/Users/g.hohl/workspace/Test/ejb-remote-server/content/07582f8f-b401-4a73-95ea-1d9fc55401b0.war/WEB-INF/lib/derby-10.13.1.1.jar  does not point to a valid jar for a Class-Path reference.
      09:26:35,644 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-7) WFLYSRV0059: Class Path entry derbyLocale_hu.jar in /C:/Users/g.hohl/workspace/Test/ejb-remote-server/content/07582f8f-b401-4a73-95ea-1d9fc55401b0.war/WEB-INF/lib/derby-10.13.1.1.jar  does not point to a valid jar for a Class-Path reference.
      09:26:35,644 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-7) WFLYSRV0059: Class Path entry derbyLocale_it.jar in /C:/Users/g.hohl/workspace/Test/ejb-remote-server/content/07582f8f-b401-4a73-95ea-1d9fc55401b0.war/WEB-INF/lib/derby-10.13.1.1.jar  does not point to a valid jar for a Class-Path reference.
      09:26:35,644 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-7) WFLYSRV0059: Class Path entry derbyLocale_ja_JP.jar in /C:/Users/g.hohl/workspace/Test/ejb-remote-server/content/07582f8f-b401-4a73-95ea-1d9fc55401b0.war/WEB-INF/lib/derby-10.13.1.1.jar  does not point to a valid jar for a Class-Path reference.
      09:26:35,644 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-7) WFLYSRV0059: Class Path entry derbyLocale_ko_KR.jar in /C:/Users/g.hohl/workspace/Test/ejb-remote-server/content/07582f8f-b401-4a73-95ea-1d9fc55401b0.war/WEB-INF/lib/derby-10.13.1.1.jar  does not point to a valid jar for a Class-Path reference.
      09:26:35,644 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-7) WFLYSRV0059: Class Path entry derbyLocale_pl.jar in /C:/Users/g.hohl/workspace/Test/ejb-remote-server/content/07582f8f-b401-4a73-95ea-1d9fc55401b0.war/WEB-INF/lib/derby-10.13.1.1.jar  does not point to a valid jar for a Class-Path reference.
      09:26:35,644 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-7) WFLYSRV0059: Class Path entry derbyLocale_pt_BR.jar in /C:/Users/g.hohl/workspace/Test/ejb-remote-server/content/07582f8f-b401-4a73-95ea-1d9fc55401b0.war/WEB-INF/lib/derby-10.13.1.1.jar  does not point to a valid jar for a Class-Path reference.
      09:26:35,644 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-7) WFLYSRV0059: Class Path entry derbyLocale_ru.jar in /C:/Users/g.hohl/workspace/Test/ejb-remote-server/content/07582f8f-b401-4a73-95ea-1d9fc55401b0.war/WEB-INF/lib/derby-10.13.1.1.jar  does not point to a valid jar for a Class-Path reference.
      09:26:35,644 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-7) WFLYSRV0059: Class Path entry derbyLocale_zh_CN.jar in /C:/Users/g.hohl/workspace/Test/ejb-remote-server/content/07582f8f-b401-4a73-95ea-1d9fc55401b0.war/WEB-INF/lib/derby-10.13.1.1.jar  does not point to a valid jar for a Class-Path reference.
      09:26:35,644 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-7) WFLYSRV0059: Class Path entry derbyLocale_zh_TW.jar in /C:/Users/g.hohl/workspace/Test/ejb-remote-server/content/07582f8f-b401-4a73-95ea-1d9fc55401b0.war/WEB-INF/lib/derby-10.13.1.1.jar  does not point to a valid jar for a Class-Path reference.
      09:26:37,361 INFO  [org.jboss.as.jpa] (MSC service thread 1-7) WFLYJPA0002: Read persistence.xml for orderingManager
      09:26:37,736 INFO  [org.jboss.as.jpa] (ServerService Thread Pool -- 69) WFLYJPA0003: Starting Persistence Unit Service '07582f8f-b401-4a73-95ea-1d9fc55401b0.war#orderingManager'
      [EL Fine]: 2016-11-24 09:26:38.189--Thread(Thread[ServerService Thread Pool -- 69,5,ServerService ThreadGroup])--Configured server platform: org.eclipse.persistence.platform.server.jboss.JBossPlatform
      09:26:38,204 WARN  [org.jboss.modules] (ServerService Thread Pool -- 69) Failed to define class org.jipijapa.eclipselink.JBossArchiveFactoryImpl in Module "org.eclipse.persistence:main" from local module loader @643c31a8 (finder: local module finder @697cc7dd (roots: C:\Users\g.hohl\workspace\Test\ejb-remote-server\target\wildfly-10.1.0.Final\modules,C:\Users\g.hohl\workspace\Test\ejb-remote-server\target\wildfly-10.1.0.Final\modules\system\layers\base)): java.lang.NoClassDefFoundError: Failed to link org/jipijapa/eclipselink/JBossArchiveFactoryImpl (Module "org.eclipse.persistence:main" from local module loader @643c31a8 (finder: local module finder @697cc7dd (roots: C:\Users\g.hohl\workspace\Test\ejb-remote-server\target\wildfly-10.1.0.Final\modules,C:\Users\g.hohl\workspace\Test\ejb-remote-server\target\wildfly-10.1.0.Final\modules\system\layers\base))): org/eclipse/persistence/internal/jpa/deployment/ArchiveFactoryImpl
          at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) [rt.jar:1.8.0_112]
          at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) [rt.jar:1.8.0_112]
          at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) [rt.jar:1.8.0_112]
          at java.lang.reflect.Constructor.newInstance(Constructor.java:423) [rt.jar:1.8.0_112]
          at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:446) [jboss-modules-1.5.1.Final.jar:1.5.1.Final]
          at org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:274) [jboss-modules-1.5.1.Final.jar:1.5.1.Final]
          at org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:78) [jboss-modules-1.5.1.Final.jar:1.5.1.Final]
          at org.jboss.modules.Module.loadModuleClass(Module.java:605) [jboss-modules-1.5.1.Final.jar:1.5.1.Final]
          at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190) [jboss-modules-1.5.1.Final.jar:1.5.1.Final]
          at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:363) [jboss-modules-1.5.1.Final.jar:1.5.1.Final]
          at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:351) [jboss-modules-1.5.1.Final.jar:1.5.1.Final]
          at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:93) [jboss-modules-1.5.1.Final.jar:1.5.1.Final]
          at org.eclipse.persistence.internal.jpa.deployment.PersistenceUnitProcessor.getArchiveFactory(PersistenceUnitProcessor.java:426) [eclipselink-2.6.4.jar:2.6.4.v20160829-44060b6]
          at org.eclipse.persistence.internal.jpa.metadata.MetadataProcessor.loadStandardMappingFiles(MetadataProcessor.java:469) [eclipselink-2.6.4.jar:2.6.4.v20160829-44060b6]
          at org.eclipse.persistence.internal.jpa.metadata.MetadataProcessor.loadMappingFiles(MetadataProcessor.java:393) [eclipselink-2.6.4.jar:2.6.4.v20160829-44060b6]
          at org.eclipse.persistence.internal.jpa.deployment.PersistenceUnitProcessor.processORMetadata(PersistenceUnitProcessor.java:597) [eclipselink-2.6.4.jar:2.6.4.v20160829-44060b6]
          at org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.predeploy(EntityManagerSetupImpl.java:1948) [eclipselink-2.6.4.jar:2.6.4.v20160829-44060b6]
          at org.eclipse.persistence.jpa.PersistenceProvider.createContainerEntityManagerFactoryImpl(PersistenceProvider.java:347) [eclipselink-2.6.4.jar:2.6.4.v20160829-44060b6]
          at org.eclipse.persistence.jpa.PersistenceProvider.createContainerEntityManagerFactory(PersistenceProvider.java:313) [eclipselink-2.6.4.jar:2.6.4.v20160829-44060b6]
          at org.jboss.as.jpa.service.PersistenceUnitServiceImpl.createContainerEntityManagerFactory(PersistenceUnitServiceImpl.java:341) [wildfly-jpa-10.1.0.Final.jar:10.1.0.Final]
          at org.jboss.as.jpa.service.PersistenceUnitServiceImpl.access$1200(PersistenceUnitServiceImpl.java:69) [wildfly-jpa-10.1.0.Final.jar:10.1.0.Final]
          at org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1$1.run(PersistenceUnitServiceImpl.java:174) [wildfly-jpa-10.1.0.Final.jar:10.1.0.Final]
          at org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1$1.run(PersistenceUnitServiceImpl.java:121) [wildfly-jpa-10.1.0.Final.jar:10.1.0.Final]
          at org.wildfly.security.manager.WildFlySecurityManager.doChecked(WildFlySecurityManager.java:667) [wildfly-elytron-1.0.2.Final.jar:1.0.2.Final]
          at org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1.run(PersistenceUnitServiceImpl.java:193) [wildfly-jpa-10.1.0.Final.jar:10.1.0.Final]
          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [rt.jar:1.8.0_112]
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [rt.jar:1.8.0_112]
          at java.lang.Thread.run(Thread.java:745) [rt.jar:1.8.0_112]
          at org.jboss.threads.JBossThread.run(JBossThread.java:320) [jboss-threads-2.2.1.Final.jar:2.2.1.Final]
      
      09:26:38,220 ERROR [org.jboss.msc.service.fail] (ServerService Thread Pool -- 69) MSC000001: Failed to start service jboss.persistenceunit."07582f8f-b401-4a73-95ea-1d9fc55401b0.war#orderingManager": org.jboss.msc.service.StartException in service jboss.persistenceunit."07582f8f-b401-4a73-95ea-1d9fc55401b0.war#orderingManager": javax.persistence.PersistenceException: Exception [EclipseLink-28018] (Eclipse Persistence Services - 2.6.4.v20160829-44060b6): org.eclipse.persistence.exceptions.EntityManagerSetupException
      Exception Description: Predeployment of PersistenceUnit [orderingManager] failed.
      Internal Exception: java.lang.NoClassDefFoundError: Failed to link org/jipijapa/eclipselink/JBossArchiveFactoryImpl (Module "org.eclipse.persistence:main" from local module loader @643c31a8 (finder: local module finder @697cc7dd (roots: C:\Users\g.hohl\workspace\Test\ejb-remote-server\target\wildfly-10.1.0.Final\modules,C:\Users\g.hohl\workspace\Test\ejb-remote-server\target\wildfly-10.1.0.Final\modules\system\layers\base))): org/eclipse/persistence/internal/jpa/deployment/ArchiveFactoryImpl
          at org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1$1.run(PersistenceUnitServiceImpl.java:179) [wildfly-jpa-10.1.0.Final.jar:10.1.0.Final]
          at org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1$1.run(PersistenceUnitServiceImpl.java:121) [wildfly-jpa-10.1.0.Final.jar:10.1.0.Final]
          at org.wildfly.security.manager.WildFlySecurityManager.doChecked(WildFlySecurityManager.java:667) [wildfly-elytron-1.0.2.Final.jar:1.0.2.Final]
          at org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1.run(PersistenceUnitServiceImpl.java:193) [wildfly-jpa-10.1.0.Final.jar:10.1.0.Final]
          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [rt.jar:1.8.0_112]
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [rt.jar:1.8.0_112]
          at java.lang.Thread.run(Thread.java:745) [rt.jar:1.8.0_112]
          at org.jboss.threads.JBossThread.run(JBossThread.java:320) [jboss-threads-2.2.1.Final.jar:2.2.1.Final]
      Caused by: javax.persistence.PersistenceException: Exception [EclipseLink-28018] (Eclipse Persistence Services - 2.6.4.v20160829-44060b6): org.eclipse.persistence.exceptions.EntityManagerSetupException
      Exception Description: Predeployment of PersistenceUnit [orderingManager] failed.
      Internal Exception: java.lang.NoClassDefFoundError: Failed to link org/jipijapa/eclipselink/JBossArchiveFactoryImpl (Module "org.eclipse.persistence:main" from local module loader @643c31a8 (finder: local module finder @697cc7dd (roots: C:\Users\g.hohl\workspace\Test\ejb-remote-server\target\wildfly-10.1.0.Final\modules,C:\Users\g.hohl\workspace\Test\ejb-remote-server\target\wildfly-10.1.0.Final\modules\system\layers\base))): org/eclipse/persistence/internal/jpa/deployment/ArchiveFactoryImpl
          at org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.createPredeployFailedPersistenceException(EntityManagerSetupImpl.java:2035) [eclipselink-2.6.4.jar:2.6.4.v20160829-44060b6]
          at org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.predeploy(EntityManagerSetupImpl.java:2026) [eclipselink-2.6.4.jar:2.6.4.v20160829-44060b6]
          at org.eclipse.persistence.jpa.PersistenceProvider.createContainerEntityManagerFactoryImpl(PersistenceProvider.java:347) [eclipselink-2.6.4.jar:2.6.4.v20160829-44060b6]
          at org.eclipse.persistence.jpa.PersistenceProvider.createContainerEntityManagerFactory(PersistenceProvider.java:313) [eclipselink-2.6.4.jar:2.6.4.v20160829-44060b6]
          at org.jboss.as.jpa.service.PersistenceUnitServiceImpl.createContainerEntityManagerFactory(PersistenceUnitServiceImpl.java:341) [wildfly-jpa-10.1.0.Final.jar:10.1.0.Final]
          at org.jboss.as.jpa.service.PersistenceUnitServiceImpl.access$1200(PersistenceUnitServiceImpl.java:69) [wildfly-jpa-10.1.0.Final.jar:10.1.0.Final]
          at org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1$1.run(PersistenceUnitServiceImpl.java:174) [wildfly-jpa-10.1.0.Final.jar:10.1.0.Final]
          ... 7 more
      Caused by: Exception [EclipseLink-28018] (Eclipse Persistence Services - 2.6.4.v20160829-44060b6): org.eclipse.persistence.exceptions.EntityManagerSetupException
      Exception Description: Predeployment of PersistenceUnit [orderingManager] failed.
      Internal Exception: java.lang.NoClassDefFoundError: Failed to link org/jipijapa/eclipselink/JBossArchiveFactoryImpl (Module "org.eclipse.persistence:main" from local module loader @643c31a8 (finder: local module finder @697cc7dd (roots: C:\Users\g.hohl\workspace\Test\ejb-remote-server\target\wildfly-10.1.0.Final\modules,C:\Users\g.hohl\workspace\Test\ejb-remote-server\target\wildfly-10.1.0.Final\modules\system\layers\base))): org/eclipse/persistence/internal/jpa/deployment/ArchiveFactoryImpl
          at org.eclipse.persistence.exceptions.EntityManagerSetupException.predeployFailed(EntityManagerSetupException.java:231) [eclipselink-2.6.4.jar:2.6.4.v20160829-44060b6]
          ... 14 more
      Caused by: java.lang.NoClassDefFoundError: Failed to link org/jipijapa/eclipselink/JBossArchiveFactoryImpl (Module "org.eclipse.persistence:main" from local module loader @643c31a8 (finder: local module finder @697cc7dd (roots: C:\Users\g.hohl\workspace\Test\ejb-remote-server\target\wildfly-10.1.0.Final\modules,C:\Users\g.hohl\workspace\Test\ejb-remote-server\target\wildfly-10.1.0.Final\modules\system\layers\base))): org/eclipse/persistence/internal/jpa/deployment/ArchiveFactoryImpl
          at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) [rt.jar:1.8.0_112]
          at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) [rt.jar:1.8.0_112]
          at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) [rt.jar:1.8.0_112]
          at java.lang.reflect.Constructor.newInstance(Constructor.java:423) [rt.jar:1.8.0_112]
          at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:446) [jboss-modules-1.5.1.Final.jar:1.5.1.Final]
          at org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:274) [jboss-modules-1.5.1.Final.jar:1.5.1.Final]
          at org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:78) [jboss-modules-1.5.1.Final.jar:1.5.1.Final]
          at org.jboss.modules.Module.loadModuleClass(Module.java:605) [jboss-modules-1.5.1.Final.jar:1.5.1.Final]
          at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190) [jboss-modules-1.5.1.Final.jar:1.5.1.Final]
          at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:363) [jboss-modules-1.5.1.Final.jar:1.5.1.Final]
          at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:351) [jboss-modules-1.5.1.Final.jar:1.5.1.Final]
          at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:93) [jboss-modules-1.5.1.Final.jar:1.5.1.Final]
          at org.eclipse.persistence.internal.jpa.deployment.PersistenceUnitProcessor.getArchiveFactory(PersistenceUnitProcessor.java:426) [eclipselink-2.6.4.jar:2.6.4.v20160829-44060b6]
          at org.eclipse.persistence.internal.jpa.metadata.MetadataProcessor.loadStandardMappingFiles(MetadataProcessor.java:469) [eclipselink-2.6.4.jar:2.6.4.v20160829-44060b6]
          at org.eclipse.persistence.internal.jpa.metadata.MetadataProcessor.loadMappingFiles(MetadataProcessor.java:393) [eclipselink-2.6.4.jar:2.6.4.v20160829-44060b6]
          at org.eclipse.persistence.internal.jpa.deployment.PersistenceUnitProcessor.processORMetadata(PersistenceUnitProcessor.java:597) [eclipselink-2.6.4.jar:2.6.4.v20160829-44060b6]
          at org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.predeploy(EntityManagerSetupImpl.java:1948) [eclipselink-2.6.4.jar:2.6.4.v20160829-44060b6]
          ... 12 more
      
      09:26:38,236 ERROR [org.jboss.as.controller.management-operation] (management-handler-thread - 1) WFLYCTL0013: Operation ("deploy") failed - address: ([("deployment" => "07582f8f-b401-4a73-95ea-1d9fc55401b0.war")]) - failure description: {
          "WFLYCTL0080: Failed services" => {"jboss.persistenceunit.\"07582f8f-b401-4a73-95ea-1d9fc55401b0.war#orderingManager\"" => "org.jboss.msc.service.StartException in service jboss.persistenceunit.\"07582f8f-b401-4a73-95ea-1d9fc55401b0.war#orderingManager\": javax.persistence.PersistenceException: Exception [EclipseLink-28018] (Eclipse Persistence Services - 2.6.4.v20160829-44060b6): org.eclipse.persistence.exceptions.EntityManagerSetupException
      Exception Description: Predeployment of PersistenceUnit [orderingManager] failed.
      Internal Exception: java.lang.NoClassDefFoundError: Failed to link org/jipijapa/eclipselink/JBossArchiveFactoryImpl (Module \"org.eclipse.persistence:main\" from local module loader @643c31a8 (finder: local module finder @697cc7dd (roots: C:\\Users\\g.hohl\\workspace\\Test\\ejb-remote-server\\target\\wildfly-10.1.0.Final\\modules,C:\\Users\\g.hohl\\workspace\\Test\\ejb-remote-server\\target\\wildfly-10.1.0.Final\\modules\\system\\layers\\base))): org/eclipse/persistence/internal/jpa/deployment/ArchiveFactoryImpl
          Caused by: javax.persistence.PersistenceException: Exception [EclipseLink-28018] (Eclipse Persistence Services - 2.6.4.v20160829-44060b6): org.eclipse.persistence.exceptions.EntityManagerSetupException
      Exception Description: Predeployment of PersistenceUnit [orderingManager] failed.
      Internal Exception: java.lang.NoClassDefFoundError: Failed to link org/jipijapa/eclipselink/JBossArchiveFactoryImpl (Module \"org.eclipse.persistence:main\" from local module loader @643c31a8 (finder: local module finder @697cc7dd (roots: C:\\Users\\g.hohl\\workspace\\Test\\ejb-remote-server\\target\\wildfly-10.1.0.Final\\modules,C:\\Users\\g.hohl\\workspace\\Test\\ejb-remote-server\\target\\wildfly-10.1.0.Final\\modules\\system\\layers\\base))): org/eclipse/persistence/internal/jpa/deployment/ArchiveFactoryImpl
          Caused by: Exception [EclipseLink-28018] (Eclipse Persistence Services - 2.6.4.v20160829-44060b6): org.eclipse.persistence.exceptions.EntityManagerSetupException
      Exception Description: Predeployment of PersistenceUnit [orderingManager] failed.
      Internal Exception: java.lang.NoClassDefFoundError: Failed to link org/jipijapa/eclipselink/JBossArchiveFactoryImpl (Module \"org.eclipse.persistence:main\" from local module loader @643c31a8 (finder: local module finder @697cc7dd (roots: C:\\Users\\g.hohl\\workspace\\Test\\ejb-remote-server\\target\\wildfly-10.1.0.Final\\modules,C:\\Users\\g.hohl\\workspace\\Test\\ejb-remote-server\\target\\wildfly-10.1.0.Final\\modules\\system\\layers\\base))): org/eclipse/persistence/internal/jpa/deployment/ArchiveFactoryImpl
          Caused by: java.lang.NoClassDefFoundError: Failed to link org/jipijapa/eclipselink/JBossArchiveFactoryImpl (Module \"org.eclipse.persistence:main\" from local module loader @643c31a8 (finder: local module finder @697cc7dd (roots: C:\\Users\\g.hohl\\workspace\\Test\\ejb-remote-server\\target\\wildfly-10.1.0.Final\\modules,C:\\Users\\g.hohl\\workspace\\Test\\ejb-remote-server\\target\\wildfly-10.1.0.Final\\modules\\system\\layers\\base))): org/eclipse/persistence/internal/jpa/deployment/ArchiveFactoryImpl"},
          "WFLYCTL0412: Required services that are not installed:" => ["jboss.persistenceunit.\"07582f8f-b401-4a73-95ea-1d9fc55401b0.war#orderingManager\""],
          "WFLYCTL0180: Services with missing/unavailable dependencies" => undefined
      }
      09:26:38,236 ERROR [org.jboss.as.server] (management-handler-thread - 1) WFLYSRV0021: Deploy of deployment "07582f8f-b401-4a73-95ea-1d9fc55401b0.war" was rolled back with the following failure message: 
      {
          "WFLYCTL0080: Failed services" => {"jboss.persistenceunit.\"07582f8f-b401-4a73-95ea-1d9fc55401b0.war#orderingManager\"" => "org.jboss.msc.service.StartException in service jboss.persistenceunit.\"07582f8f-b401-4a73-95ea-1d9fc55401b0.war#orderingManager\": javax.persistence.PersistenceException: Exception [EclipseLink-28018] (Eclipse Persistence Services - 2.6.4.v20160829-44060b6): org.eclipse.persistence.exceptions.EntityManagerSetupException
      Exception Description: Predeployment of PersistenceUnit [orderingManager] failed.
      Internal Exception: java.lang.NoClassDefFoundError: Failed to link org/jipijapa/eclipselink/JBossArchiveFactoryImpl (Module \"org.eclipse.persistence:main\" from local module loader @643c31a8 (finder: local module finder @697cc7dd (roots: C:\\Users\\g.hohl\\workspace\\Test\\ejb-remote-server\\target\\wildfly-10.1.0.Final\\modules,C:\\Users\\g.hohl\\workspace\\Test\\ejb-remote-server\\target\\wildfly-10.1.0.Final\\modules\\system\\layers\\base))): org/eclipse/persistence/internal/jpa/deployment/ArchiveFactoryImpl
          Caused by: javax.persistence.PersistenceException: Exception [EclipseLink-28018] (Eclipse Persistence Services - 2.6.4.v20160829-44060b6): org.eclipse.persistence.exceptions.EntityManagerSetupException
      Exception Description: Predeployment of PersistenceUnit [orderingManager] failed.
      Internal Exception: java.lang.NoClassDefFoundError: Failed to link org/jipijapa/eclipselink/JBossArchiveFactoryImpl (Module \"org.eclipse.persistence:main\" from local module loader @643c31a8 (finder: local module finder @697cc7dd (roots: C:\\Users\\g.hohl\\workspace\\Test\\ejb-remote-server\\target\\wildfly-10.1.0.Final\\modules,C:\\Users\\g.hohl\\workspace\\Test\\ejb-remote-server\\target\\wildfly-10.1.0.Final\\modules\\system\\layers\\base))): org/eclipse/persistence/internal/jpa/deployment/ArchiveFactoryImpl
          Caused by: Exception [EclipseLink-28018] (Eclipse Persistence Services - 2.6.4.v20160829-44060b6): org.eclipse.persistence.exceptions.EntityManagerSetupException
      Exception Description: Predeployment of PersistenceUnit [orderingManager] failed.
      Internal Exception: java.lang.NoClassDefFoundError: Failed to link org/jipijapa/eclipselink/JBossArchiveFactoryImpl (Module \"org.eclipse.persistence:main\" from local module loader @643c31a8 (finder: local module finder @697cc7dd (roots: C:\\Users\\g.hohl\\workspace\\Test\\ejb-remote-server\\target\\wildfly-10.1.0.Final\\modules,C:\\Users\\g.hohl\\workspace\\Test\\ejb-remote-server\\target\\wildfly-10.1.0.Final\\modules\\system\\layers\\base))): org/eclipse/persistence/internal/jpa/deployment/ArchiveFactoryImpl
          Caused by: java.lang.NoClassDefFoundError: Failed to link org/jipijapa/eclipselink/JBossArchiveFactoryImpl (Module \"org.eclipse.persistence:main\" from local module loader @643c31a8 (finder: local module finder @697cc7dd (roots: C:\\Users\\g.hohl\\workspace\\Test\\ejb-remote-server\\target\\wildfly-10.1.0.Final\\modules,C:\\Users\\g.hohl\\workspace\\Test\\ejb-remote-server\\target\\wildfly-10.1.0.Final\\modules\\system\\layers\\base))): org/eclipse/persistence/internal/jpa/deployment/ArchiveFactoryImpl"},
          "WFLYCTL0412: Required services that are not installed:" => ["jboss.persistenceunit.\"07582f8f-b401-4a73-95ea-1d9fc55401b0.war#orderingManager\""],
          "WFLYCTL0180: Services with missing/unavailable dependencies" => undefined
      }
      09:26:38,813 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-3) WFLYSRV0028: Stopped deployment 07582f8f-b401-4a73-95ea-1d9fc55401b0.war (runtime-name: 07582f8f-b401-4a73-95ea-1d9fc55401b0.war) in 570ms
      09:26:38,813 INFO  [org.jboss.as.controller] (management-handler-thread - 1) WFLYCTL0183: Service status report
      WFLYCTL0184:    New missing/unsatisfied dependencies:
            service jboss.persistenceunit."07582f8f-b401-4a73-95ea-1d9fc55401b0.war#orderingManager" (missing) dependents: [service jboss.deployment.unit."07582f8f-b401-4a73-95ea-1d9fc55401b0.war".POST_MODULE] 
      WFLYCTL0186:   Services which failed to start:      service jboss.persistenceunit."07582f8f-b401-4a73-95ea-1d9fc55401b0.war#orderingManager"
      
      09:26:38,845 WARN  [org.jboss.as.arquillian.container.ArchiveDeployer] (main) Cannot undeploy: 07582f8f-b401-4a73-95ea-1d9fc55401b0.war: org.jboss.as.controller.client.helpers.standalone.ServerDeploymentHelper$ServerDeploymentException: java.lang.Exception: "WFLYCTL0216: Management resource '[(\"deployment\" => \"07582f8f-b401-4a73-95ea-1d9fc55401b0.war\")]' not found"
          at org.jboss.as.controller.client.helpers.standalone.ServerDeploymentHelper.undeploy(ServerDeploymentHelper.java:114) [wildfly-controller-client-2.0.10.Final.jar:2.0.10.Final]
          at org.jboss.as.arquillian.container.ArchiveDeployer.undeploy(ArchiveDeployer.java:111) [wildfly-arquillian-common-2.0.0.Final.jar:2.0.0.Final]
          at org.jboss.as.arquillian.container.CommonDeployableContainer.undeploy(CommonDeployableContainer.java:242) [wildfly-arquillian-common-2.0.0.Final.jar:2.0.0.Final]
          at org.jboss.arquillian.container.impl.client.container.ContainerDeployController$4.call(ContainerDeployController.java:205) [arquillian-container-impl-base-1.1.11.Final.jar:1.1.11.Final]
          at org.jboss.arquillian.container.impl.client.container.ContainerDeployController$4.call(ContainerDeployController.java:185) [arquillian-container-impl-base-1.1.11.Final.jar:1.1.11.Final]
          at org.jboss.arquillian.container.impl.client.container.ContainerDeployController.executeOperation(ContainerDeployController.java:271) [arquillian-container-impl-base-1.1.11.Final.jar:1.1.11.Final]
          at org.jboss.arquillian.container.impl.client.container.ContainerDeployController.undeploy(ContainerDeployController.java:184) [arquillian-container-impl-base-1.1.11.Final.jar:1.1.11.Final]
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.8.0_112]
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) [rt.jar:1.8.0_112]
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.8.0_112]
          at java.lang.reflect.Method.invoke(Method.java:498) [rt.jar:1.8.0_112]
          at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94) [arquillian-core-impl-base-1.1.11.Final.jar:1.1.11.Final]
          at org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContextImpl.java:99) [arquillian-core-impl-base-1.1.11.Final.jar:1.1.11.Final]
          at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:81) [arquillian-core-impl-base-1.1.11.Final.jar:1.1.11.Final]
          at org.jboss.arquillian.container.impl.client.ContainerDeploymentContextHandler.createDeploymentContext(ContainerDeploymentContextHandler.java:78) [arquillian-container-impl-base-1.1.11.Final.jar:1.1.11.Final]
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.8.0_112]
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) [rt.jar:1.8.0_112]
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.8.0_112]
          at java.lang.reflect.Method.invoke(Method.java:498) [rt.jar:1.8.0_112]
          at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94) [arquillian-core-impl-base-1.1.11.Final.jar:1.1.11.Final]
          at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88) [arquillian-core-impl-base-1.1.11.Final.jar:1.1.11.Final]
          at org.jboss.arquillian.container.impl.client.ContainerDeploymentContextHandler.createContainerContext(ContainerDeploymentContextHandler.java:57) [arquillian-container-impl-base-1.1.11.Final.jar:1.1.11.Final]
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.8.0_112]
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) [rt.jar:1.8.0_112]
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.8.0_112]
          at java.lang.reflect.Method.invoke(Method.java:498) [rt.jar:1.8.0_112]
          at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94) [arquillian-core-impl-base-1.1.11.Final.jar:1.1.11.Final]
          at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88) [arquillian-core-impl-base-1.1.11.Final.jar:1.1.11.Final]
          at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:145) [arquillian-core-impl-base-1.1.11.Final.jar:1.1.11.Final]
          at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:116) [arquillian-core-impl-base-1.1.11.Final.jar:1.1.11.Final]
          at org.jboss.arquillian.core.impl.EventImpl.fire(EventImpl.java:67) [arquillian-core-impl-base-1.1.11.Final.jar:1.1.11.Final]
          at org.jboss.arquillian.container.impl.client.container.ContainerDeployController$2.perform(ContainerDeployController.java:119) [arquillian-container-impl-base-1.1.11.Final.jar:1.1.11.Final]
          at org.jboss.arquillian.container.impl.client.container.ContainerDeployController$2.perform(ContainerDeployController.java:110) [arquillian-container-impl-base-1.1.11.Final.jar:1.1.11.Final]
          at org.jboss.arquillian.container.impl.client.container.ContainerDeployController.forEachDeployment(ContainerDeployController.java:263) [arquillian-container-impl-base-1.1.11.Final.jar:1.1.11.Final]
          at org.jboss.arquillian.container.impl.client.container.ContainerDeployController.forEachDeployedDeployment(ContainerDeployController.java:249) [arquillian-container-impl-base-1.1.11.Final.jar:1.1.11.Final]
          at org.jboss.arquillian.container.impl.client.container.ContainerDeployController.undeployManaged(ContainerDeployController.java:109) [arquillian-container-impl-base-1.1.11.Final.jar:1.1.11.Final]
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.8.0_112]
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) [rt.jar:1.8.0_112]
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.8.0_112]
          at java.lang.reflect.Method.invoke(Method.java:498) [rt.jar:1.8.0_112]
          at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94) [arquillian-core-impl-base-1.1.11.Final.jar:1.1.11.Final]
          at org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContextImpl.java:99) [arquillian-core-impl-base-1.1.11.Final.jar:1.1.11.Final]
          at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:81) [arquillian-core-impl-base-1.1.11.Final.jar:1.1.11.Final]
          at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:145) [arquillian-core-impl-base-1.1.11.Final.jar:1.1.11.Final]
          at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:116) [arquillian-core-impl-base-1.1.11.Final.jar:1.1.11.Final]
          at org.jboss.arquillian.core.impl.EventImpl.fire(EventImpl.java:67) [arquillian-core-impl-base-1.1.11.Final.jar:1.1.11.Final]
          at org.jboss.arquillian.container.test.impl.client.ContainerEventController.execute(ContainerEventController.java:108) [arquillian-container-test-impl-base-1.1.11.Final.jar:1.1.11.Final]
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.8.0_112]
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) [rt.jar:1.8.0_112]
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.8.0_112]
          at java.lang.reflect.Method.invoke(Method.java:498) [rt.jar:1.8.0_112]
          at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94) [arquillian-core-impl-base-1.1.11.Final.jar:1.1.11.Final]
          at org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContextImpl.java:99) [arquillian-core-impl-base-1.1.11.Final.jar:1.1.11.Final]
          at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:81) [arquillian-core-impl-base-1.1.11.Final.jar:1.1.11.Final]
          at org.jboss.arquillian.test.impl.TestContextHandler.createClassContext(TestContextHandler.java:92) [arquillian-test-impl-base-1.1.11.Final.jar:1.1.11.Final]
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.8.0_112]
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) [rt.jar:1.8.0_112]
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.8.0_112]
          at java.lang.reflect.Method.invoke(Method.java:498) [rt.jar:1.8.0_112]
          at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94) [arquillian-core-impl-base-1.1.11.Final.jar:1.1.11.Final]
          at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88) [arquillian-core-impl-base-1.1.11.Final.jar:1.1.11.Final]
          at org.jboss.arquillian.test.impl.TestContextHandler.createSuiteContext(TestContextHandler.java:73) [arquillian-test-impl-base-1.1.11.Final.jar:1.1.11.Final]
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.8.0_112]
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) [rt.jar:1.8.0_112]
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.8.0_112]
          at java.lang.reflect.Method.invoke(Method.java:498) [rt.jar:1.8.0_112]
          at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94) [arquillian-core-impl-base-1.1.11.Final.jar:1.1.11.Final]
          at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88) [arquillian-core-impl-base-1.1.11.Final.jar:1.1.11.Final]
          at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:145) [arquillian-core-impl-base-1.1.11.Final.jar:1.1.11.Final]
          at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:116) [arquillian-core-impl-base-1.1.11.Final.jar:1.1.11.Final]
          at org.jboss.arquillian.test.impl.EventTestRunnerAdaptor.afterClass(EventTestRunnerAdaptor.java:94) [arquillian-test-impl-base-1.1.11.Final.jar:1.1.11.Final]
          at org.jboss.arquillian.junit.Arquillian$3$1.evaluate(Arquillian.java:223) [arquillian-junit-core-1.1.11.Final.jar:1.1.11.Final]
          at org.jboss.arquillian.junit.Arquillian.multiExecute(Arquillian.java:426) [arquillian-junit-core-1.1.11.Final.jar:1.1.11.Final]
          at org.jboss.arquillian.junit.Arquillian.access$200(Arquillian.java:54) [arquillian-junit-core-1.1.11.Final.jar:1.1.11.Final]
          at org.jboss.arquillian.junit.Arquillian$3.evaluate(Arquillian.java:218) [arquillian-junit-core-1.1.11.Final.jar:1.1.11.Final]
          at org.junit.runners.ParentRunner.run(ParentRunner.java:363) [junit-4.12.jar:4.12]
          at org.jboss.arquillian.junit.Arquillian.run(Arquillian.java:166) [arquillian-junit-core-1.1.11.Final.jar:1.1.11.Final]
          at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:86) [:]
          at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) [:]
          at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:459) [:]
          at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:678) [:]
          at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:382) [:]
          at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:192) [:]
      Caused by: java.lang.Exception: "WFLYCTL0216: Management resource '[(\"deployment\" => \"07582f8f-b401-4a73-95ea-1d9fc55401b0.war\")]' not found"
          at org.jboss.as.controller.client.helpers.standalone.impl.ServerDeploymentPlanResultFuture.getActionResult(ServerDeploymentPlanResultFuture.java:134) [wildfly-controller-client-2.0.10.Final.jar:2.0.10.Final]
          at org.jboss.as.controller.client.helpers.standalone.impl.ServerDeploymentPlanResultFuture.getResultFromNode(ServerDeploymentPlanResultFuture.java:123) [wildfly-controller-client-2.0.10.Final.jar:2.0.10.Final]
          at org.jboss.as.controller.client.helpers.standalone.impl.ServerDeploymentPlanResultFuture.get(ServerDeploymentPlanResultFuture.java:85) [wildfly-controller-client-2.0.10.Final.jar:2.0.10.Final]
          at org.jboss.as.controller.client.helpers.standalone.impl.ServerDeploymentPlanResultFuture.get(ServerDeploymentPlanResultFuture.java:42) [wildfly-controller-client-2.0.10.Final.jar:2.0.10.Final]
          at org.jboss.as.controller.client.helpers.standalone.ServerDeploymentHelper.undeploy(ServerDeploymentHelper.java:107) [wildfly-controller-client-2.0.10.Final.jar:2.0.10.Final]
          ... 82 more
      
      09:26:39,001 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-4) WFLYJCA0010: Unbound data source [java:jboss/datasources/ExampleDS]
      09:26:39,032 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-7) WFLYUT0008: Undertow HTTPS listener https suspending
      09:26:39,063 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-6) WFLYUT0019: Host default-host stopping
      09:26:39,063 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-7) WFLYUT0007: Undertow HTTPS listener https stopped, was bound to 127.0.0.1:8443
      09:26:39,079 INFO  [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-4) WFLYJCA0019: Stopped Driver service with driver-name = h2
      09:26:39,110 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-7) WFLYUT0008: Undertow HTTP listener default suspending
      09:26:39,110 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-7) WFLYUT0007: Undertow HTTP listener default stopped, was bound to 127.0.0.1:8080
      09:26:39,110 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-7) WFLYUT0004: Undertow 1.4.0.Final stopping
      09:26:39,126 INFO  [org.jboss.as] (MSC service thread 1-5) WFLYSRV0050: WildFly Full 10.1.0.Final (WildFly Core 2.2.0.Final) stopped in 178ms
      

       

      And here is the content of that JAR in the module folder:

      jipijapa-eclipselink-10.1.0.Final.jar Content.png

       

      Would be great if someone could tell me where my fault is.

       

      Regards

        • 1. Re: WildFly & Arquillian & EclipseLink: jipijapa-eclipselink classes can't be found during deployment
          Gerrit Hohl Newbie

          Seems I got it wrong - and maybe also the error message is misleading. The problem was not that the jipijapa-eclipselink classes couldn't be found, but the eclipselink classes.

          I simply followed - more or less - these instructions: https://docs.jboss.org/author/display/WFLY10/JPA+Reference+Guide#JPAReferenceGuide-UsingEclipseLink

          I downloaded the eclipselink-2.6.4.jar and put in the folder wildfly-10.1.0.Final\modules\system\layers\base\org\eclipse\persistence\main. Then I modified the module.xml in the same folder this way:

          <?xml version="1.0" encoding="UTF-8"?>
          <!-- Represents the EclipseLink module  -->
          <module xmlns="urn:jboss:module:1.3" name="org.eclipse.persistence">
              <properties>
                  <property name="jboss.api" value="private"/>
              </properties>
          
              <resources>
                  <resource-root path="jipijapa-eclipselink-10.1.0.Final.jar"/>
                  <resource-root path="eclipselink-2.6.4.jar">
                      <filter>
                          <exclude path="javax/**" />
                      </filter>
                  </resource-root>
              </resources>
          
              <dependencies>
                  <module name="asm.asm"/>
                  <module name="javax.api"/>
                  <module name="javax.annotation.api"/>
                  <module name="javax.enterprise.api"/>
                  <module name="javax.persistence.api"/>
                  <module name="javax.transaction.api"/>
                  <module name="javax.validation.api"/>
                  <module name="javax.xml.bind.api"/>
                  <module name="javax.ws.rs.api"/>
                  <module name="org.antlr"/>
                  <module name="org.apache.commons.collections"/>
                  <module name="org.dom4j"/>
                  <module name="org.jboss.as.jpa.spi"/>
                  <module name="org.jboss.logging"/>
                  <module name="org.jboss.vfs"/>
              </dependencies>
          </module>
          

           

          In my Maven project I switch both libraries, eclipselink and jipijapa-eclipselink to "provided". And then it worked.

           

          As WildFly seems to realize that I use EclipseLink instead of Hibernate, but I still have Hibernate classes used in my project, I had to add the Hibernate dependencies in my pseudo MANIFEST.MF by the following line (called on the WebArchive):

          .addAsManifestResource(new StringAsset("Dependencies: org.hibernate"), "MANIFEST.MF")
          

           

          Now I only have to figure how to modify the module.xml and add the JAR file before the WildFly embedded server is started...

          • 2. Re: WildFly & Arquillian & EclipseLink: jipijapa-eclipselink classes can't be found during deployment
            Hans-Christian Göranson Newbie

            Hi Gerrit,

             

            I think you need to instruct you WAR file to also consider to use the module org.eclipse.persistence to be aware of those dependencies.

            To do this, you can add the file jboss-deployment-structure.xml to your archive:

             

            archive = ShrinkWrap.create(WebArchive.class).addClass(CallContext.class) 

                    .addClass(CallContextInterceptor.class).addClass(SampleBeanLocal.class) 

                    .addClass(SampleBeanLocalImpl.class).addClass(SampleBeanRemote.class) 

                    .addClass(SampleBeanRemoteImpl.class) 

                    .addAsWebInfResource("META-INF/persistence-test.xml", "classes/META-INF/persistence.xml") 

                    .addPackages(true, "com.sample.ejb.util") 

                    .addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml").addAsLibraries(files)

                    .addAsManifestResource("test-jboss-deployment-structure.xml", "jboss-deployment-structure.xml"); 

             

            And create the file test-jboss-deployment-structure.xml in your resource folder with the content:

            <jboss-deployment-structure>

                <deployment>

                    <dependencies>

                        <module name="org.eclipse.persistence"/>

                    </dependencies>

                </deployment>

            </jboss-deployment-structure>

            • 3. Re: WildFly & Arquillian & EclipseLink: jipijapa-eclipselink classes can't be found during deployment
              Gerrit Hohl Newbie

              Thanks, Hans-Christian.

              But in the meantime I realized I'm facing also different problems using EclipseLink.

              So I'm currently trying to use WildFly & Arquillian without EclipseLink.

              That way I have to take care of the deployment of the JDBC driver and also about setting up the data source in WildFly during the tests (which is no problems thanks to the API which you could use programmatically).

              It's maybe a little bit more work, but at least I know that it works without any problems or shortcomings and it is also much closer to the productive environment.