title: Wildfly 10 Deployment Error WFLYCTL0184: New missing/unsatisfied dependencies
body: <p>We are migrating JBoss AS 7.0.2 to Wildfly-10.0.0.Final. We have faced some of the dependencies problem while deploying the web application.</p>
  
  <p>When I start deploying my app, it return me the error specified in the title with the following...</p>
  
  <p>Jboss Log :-</p>
  
  <pre><code>12:45:27,151 INFO  [org.jboss.as.repository] (management task-10) WFLYDR0001: Content added at location /apps/app/jboss/standalone/data/content/ae/706772b622ad784903380eafdc9cd93c25afd3/content 
  12:45:28,252 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-4) WFLYSRV0027: Starting deployment of "app-8.20.war" (runtime-name: "app-xxx.war")
  12:45:40,074 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-7) WFLYSRV0059: Class Path entry jaxb-api.jar in /content/app-xxx.war/WEB-INF/lib/jaxb-impl-2.1.12.jar  does not point to a valid jar for a Class-Path reference.
  12:45:40,075 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-7) WFLYSRV0059: Class Path entry activation.jar in /content/app-xxx.war/WEB-INF/lib/jaxb-impl-2.1.12.jar  does not point to a valid jar for a Class-Path reference.
  12:45:40,075 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-7) WFLYSRV0059: Class Path entry jsr173_1.0_api.jar in /content/app-xxx.war/WEB-INF/lib/jaxb-impl-2.1.12.jar  does not point to a valid jar for a Class-Path reference.
  12:45:40,075 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-7) WFLYSRV0059: Class Path entry jaxb1-impl.jar in /content/app-xxx.war/WEB-INF/lib/jaxb-impl-2.1.12.jar  does not point to a valid jar for a Class-Path reference.
  12:45:40,125 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-7) WFLYSRV0059: Class Path entry slf4j-api-1.5.6.jar in /content/app-xxx.war/WEB-INF/lib/jacorb-2.3.1jboss.patch01-brew.jar  does not point to a valid jar for a Class-Path reference.
  12:45:40,126 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-7) WFLYSRV0059: Class Path entry slf4j-jdk14-1.5.6.jar in /content/app-xxx.war/WEB-INF/lib/jacorb-2.3.1jboss.patch01-brew.jar  does not point to a valid jar for a Class-Path reference.
  12:45:40,126 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-7) WFLYSRV0059: Class Path entry concurrent-1.3.2.jar in /content/app-xxx.war/WEB-INF/lib/jacorb-2.3.1jboss.patch01-brew.jar  does not point to a valid jar for a Class-Path reference.
  12:45:40,126 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-7) WFLYSRV0059: Class Path entry antlr-2.7.2.jar in /content/app-xxx.war/WEB-INF/lib/jacorb-2.3.1jboss.patch01-brew.jar  does not point to a valid jar for a Class-Path reference.
  12:45:40,155 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-7) WFLYSRV0059: Class Path entry activation.jar in /content/app-xxx.war/WEB-INF/lib/mail-1.4.jar  does not point to a valid jar for a Class-Path reference.
  12:45:40,168 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-7) WFLYSRV0059: Class Path entry jaxb-api.jar in /content/app-xxx.war/WEB-INF/lib/jaxb-xjc-2.1.12.jar  does not point to a valid jar for a Class-Path reference.
  12:45:40,168 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-7) WFLYSRV0059: Class Path entry jaxb-impl.jar in /content/app-xxx.war/WEB-INF/lib/jaxb-xjc-2.1.12.jar  does not point to a valid jar for a Class-Path reference.
  12:45:40,168 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-7) WFLYSRV0059: Class Path entry jsr173_1.0_api.jar in /content/app-xxx.war/WEB-INF/lib/jaxb-xjc-2.1.12.jar  does not point to a valid jar for a Class-Path reference.
  12:45:40,168 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-7) WFLYSRV0059: Class Path entry activation.jar in /content/app-xxx.war/WEB-INF/lib/jaxb-xjc-2.1.12.jar  does not point to a valid jar for a Class-Path reference.
  12:45:40,363 INFO  [org.jboss.as.pojo] (MSC service thread 1-1) WFLYPOJO0001: Found legacy bean/pojo namespace: urn:jboss:bean-deployer:2.0 - might be missing some xml features (potential exceptions).
  12:45:40,526 INFO  [org.jboss.as.jpa] (MSC service thread 1-1) WFLYJPA0002: Read persistence.xml for org.jbpm.persistence.jpa.xxx
  12:45:40,526 INFO  [org.jboss.as.jpa] (MSC service thread 1-1) WFLYJPA0002: Read persistence.xml for org.jbpm.task.xxx
  12:45:41,214 INFO  [org.jboss.as.jpa] (ServerService Thread Pool -- 73) WFLYJPA0010: Starting Persistence Unit (phase 1 of 2) Service 'app-xxx.war#org.jbpm.task.xxx'
  12:45:41,215 INFO  [org.jboss.as.jpa] (ServerService Thread Pool -- 74) WFLYJPA0010: Starting Persistence Unit (phase 1 of 2) Service 'app-xxx.war#org.jbpm.persistence.jpa.xxx'
  12:45:41,243 INFO  [org.hibernate.jpa.internal.util.LogHelper] (ServerService Thread Pool -- 73) HHH000204: Processing PersistenceUnitInfo [
  name: org.jbpm.task.xxx
  ...]
  12:45:41,250 INFO  [org.hibernate.jpa.internal.util.LogHelper] (ServerService Thread Pool -- 74) HHH000204: Processing PersistenceUnitInfo [
  name: org.jbpm.persistence.jpa.xxx
  ...]
  12:45:41,532 INFO  [org.hibernate.Version] (ServerService Thread Pool -- 75) HHH000412: Hibernate Core {5.0.7.Final}
  12:45:41,534 INFO  [org.hibernate.cfg.Environment] (ServerService Thread Pool -- 75) HHH000206: hibernate.properties not found
  12:45:41,536 INFO  [org.hibernate.cfg.Environment] (ServerService Thread Pool -- 75) HHH000021: Bytecode provider name : javassist
  12:45:41,666 INFO  [org.hibernate.orm.deprecation] (ServerService Thread Pool -- 68) HHH90000001: Found usage of deprecated setting for specifying Scanner [hibernate.ejb.resource_scanner]; use [hibernate.archive.scanner] instead
  12:45:41,670 INFO  [org.hibernate.orm.deprecation] (ServerService Thread Pool -- 62) HHH90000001: Found usage of deprecated setting for specifying Scanner [hibernate.ejb.resource_scanner]; use [hibernate.archive.scanner] instead
  12:45:41,681 INFO  [org.hibernate.annotations.common.Version] (ServerService Thread Pool -- 76) HCANN000001: Hibernate Commons Annotations {5.0.1.Final}
  12:45:43,549 WARN  [org.hibernate.orm.deprecation] (ServerService Thread Pool -- 70) HHH90000012: Recognized obsolete hibernate namespace http://hibernate.sourceforge.net/hibernate-mapping. Use namespace http://www.hibernate.org/dtd/hibernate-mapping instead.  Support for obsolete DTD/XSD namespaces may be removed at any time.
  12:45:46,294 ERROR [org.jboss.as.controller.management-operation] (management task-10) WFLYCTL0013: Operation ("add") failed - address: ([("deployment" =&gt; "app-8.20.war")]) - failure description: {"WFLYCTL0180: Services with missing/unavailable dependencies" =&gt; [
  "jboss.persistenceunit.\"app-xxx.war#org.jbpm.persistence.jpa.xxx\".__FIRST_PHASE__ is missing [jboss.naming.context.java.jboss.datasources.appDS]",]}
  12:45:46,309 INFO  [org.jboss.as.jpa] (ServerService Thread Pool -- 71) WFLYJPA0011: Stopping Persistence Unit (phase 1 of 2) Service 'app-xxx.war#org.jbpm.task.xxx'
  12:45:46,308 INFO  [org.jboss.as.jpa] (ServerService Thread Pool -- 73) WFLYJPA0011: Stopping Persistence Unit (phase 1 of 2) Service 'app-xxx.war#org.jbpm.persistence.jpa.xxx'
  12:45:46,407 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-1) WFLYSRV0028: Stopped deployment app-8.20.war (runtime-name: app-xxx.war) in 109ms
  12:45:46,412 INFO  [org.jboss.as.controller] (management task-10) WFLYCTL0183: Service status report
  WFLYCTL0184:    New missing/unsatisfied dependencies:
    service jboss.naming.context.java.jboss.datasources.appDS (missing) dependents: [service jboss.persistenceunit."app-xxx.war#org.jbpm.task.xxx".__FIRST_PHASE__, service jboss.persistenceunit."app-xxx.war#org.jbpm.persistence.jpa.xxx".__FIRST_PHASE__, service jboss.persistenceunit."app-xxx.war#org.jbpm.persistence.jpa.xxx".__FIRST_PHASE__] 
    service jboss.persistenceunit."app-xxx.war#org.jbpm.persistence.jpa.xxx".__FIRST_PHASE__ (missing) dependents: [service jboss.deployment.unit."app-xxx.war".POST_MODULE] 
  
  INFO  [org.jboss.as.repository] (ServerService Thread Pool -- 60) WFLYDR0009: Content /tnq/apps/jboss/standalone/data/content/ae/706772b622ad784903380eafdc9cd93c25afd3 is obsolete and will be removed
  INFO  [org.jboss.as.repository] (ServerService Thread Pool -- 60) WFLYDR0002: Content removed from location /tnq/apps/jboss/standalone/data/content/ae/706772b622ad784903380eafdc9cd93c25afd3/content
  </code></pre>
  
  <p>Persistence file :-</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8" standalone="yes"?&gt;
  &lt;persistence version="1.0"
           xsi:schemaLocation="http://java.sun.com/xml/ns/persistence
                               http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd
                               http://java.sun.com/xml/ns/persistence/orm 
                               http://java.sun.com/xml/ns/persistence/orm_1_0.xsd"
           xmlns:orm="http://java.sun.com/xml/ns/persistence/orm"
           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
           xmlns="http://java.sun.com/xml/ns/persistence"&gt;
  
  
  
           &lt;persistence-unit name="org.jbpm.persistence.jpa.xxxx" transaction-type="JTA"&gt;
      &lt;provider&gt;org.hibernate.ejb.HibernatePersistence&lt;/provider&gt;
      &lt;jta-data-source&gt;java:jboss/datasources/appDS&lt;/jta-data-source&gt;
      &lt;mapping-file&gt;META-INF/JBPMorm.xml&lt;/mapping-file&gt;
      &lt;mapping-file&gt;META-INF/ProcessInstanceInfo.hbm.xml&lt;/mapping-file&gt;
      &lt;class&gt;org.jbpm.persistence.processinstance.ProcessInstanceInfo&lt;/class&gt;
      &lt;class&gt;org.drools.persistence.info.SessionInfo&lt;/class&gt;
      &lt;class&gt;org.drools.persistence.info.WorkItemInfo&lt;/class&gt;
  &lt;/persistence-unit&gt;
  &lt;persistence-unit name="org.jbpm.task.xxx"&gt;
      &lt;provider&gt;org.hibernate.ejb.HibernatePersistence&lt;/provider&gt;
      &lt;mapping-file&gt;META-INF/Taskorm.xml&lt;/mapping-file&gt;
      &lt;class&gt;org.jbpm.task.Attachment&lt;/class&gt;
      &lt;class&gt;org.jbpm.task.Content&lt;/class&gt;
      &lt;class&gt;org.jbpm.task.BooleanExpression&lt;/class&gt;
      &lt;class&gt;org.jbpm.task.Comment&lt;/class&gt;
   &lt;/persistence-unit&gt;
  &lt;/persistence&gt;    
  </code></pre>
  
  <p>Standalone.xml :-</p>
  
  <pre><code>&lt;datasource jndi-name="java:jboss/datasources/appDS" pool-name="MySqlDS1" enabled="true" jta="true" use-java-context="true" use-ccm="true"&gt;
                  &lt;connection-url&gt;
                      jdbc:mysql://172.16.73.78:3306/sampleDB
                  &lt;/connection-url&gt;
                  &lt;driver&gt;
                      com.mysql
                  &lt;/driver&gt;
                  &lt;transaction-isolation&gt;
                      TRANSACTION_READ_COMMITTED
                  &lt;/transaction-isolation&gt;
                  &lt;pool&gt;
                      &lt;min-pool-size&gt;
                          10
                      &lt;/min-pool-size&gt;
                      &lt;max-pool-size&gt;
                          100
                      &lt;/max-pool-size&gt;
                      &lt;prefill&gt;
                          false
                      &lt;/prefill&gt;
                      &lt;use-strict-min&gt;
                          false
                      &lt;/use-strict-min&gt;
                      &lt;flush-strategy&gt;
                          FailingConnectionOnly
                      &lt;/flush-strategy&gt;
                  &lt;/pool&gt;
                  &lt;security&gt;
                      &lt;user-name&gt;
                          test
                      &lt;/user-name&gt;
                      &lt;password&gt;
                          test
                      &lt;/password&gt;
                  &lt;/security&gt;
                  &lt;validation&gt;
                      &lt;check-valid-connection-sql&gt;
                          select 1
                      &lt;/check-valid-connection-sql&gt;
                      &lt;validate-on-match&gt;
                          true
                      &lt;/validate-on-match&gt;
                      &lt;background-validation&gt;
                          false
                      &lt;/background-validation&gt;
                      &lt;use-fast-fail&gt;
                          false
                      &lt;/use-fast-fail&gt;
                  &lt;/validation&gt;
                  &lt;timeout&gt;
                      &lt;blocking-timeout-millis&gt;
                          5000
                      &lt;/blocking-timeout-millis&gt;
                      &lt;idle-timeout-minutes&gt;
                          60000
                      &lt;/idle-timeout-minutes&gt;
                      &lt;set-tx-query-timeout/&gt;
                  &lt;/timeout&gt;
                  &lt;statement&gt;
                      &lt;prepared-statement-cache-size&gt;
                          0
                      &lt;/prepared-statement-cache-size&gt;
                  &lt;/statement&gt;
              &lt;/datasource&gt;
              &lt;drivers&gt;
                  &lt;driver name="com.mysql" module="com.mysql"&gt;
                      &lt;xa-datasource-class&gt;
                          com.mysql.jdbc.jdbc2.optional.MysqlXADataSource
                      &lt;/xa-datasource-class&gt;
                  &lt;/driver&gt;
                  &lt;driver name="h2" module="com.h2database.h2"&gt;
                      &lt;xa-datasource-class&gt;org.h2.jdbcx.JdbcDataSource&lt;/xa-datasource-class&gt;
                  &lt;/driver&gt;
              &lt;/drivers&gt;
  </code></pre>
  
  <p>I would like to resolve that dependencies. Any suggestions ?</p>