Application failing to deploy in JBoss EAP 7 with missing dependencies jboss.naming.context.java.module.....DefaultDataSource

Solution Verified - Updated -

Issue

Our application is failing to deploy in JBoss EAP 7 with missing dependencies jboss.naming.context.java.module.....DefaultDataSource:

In EAP 7.0 / 7.1

14:41:39,137 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("deploy") failed - address: ([("deployment" => "app.ear")]) - failure description: {"WFLYCTL0288: One or more services were unable to start due to one or more indirect dependencies not being available." => {
    "Services that were unable to start:" => [
        "jboss.deployment.subunit.\"app.ear\".\"persistence.jar\".CdiValidatorFactoryService",
        "jboss.deployment.subunit.\"app.ear\".\"persistence.jar\".component.Persistence.START",
        "jboss.deployment.subunit.\"app.ear\".\"persistence.jar\".component.Persistence.WeldInstantiator",
        "jboss.deployment.subunit.\"app.ear\".\"persistence.jar\".component.Persistence.WeldInterceptorBindingsService",
        "jboss.deployment.subunit.\"app.ear\".\"persistence.jar\".deploymentCompleteService",
        "jboss.deployment.subunit.\"app.ear\".\"persistence.jar\".jndiDependencyService",
        "jboss.deployment.subunit.\"app.ear\".\"persistence.jar\".moduleDeploymentRuntimeInformationStart",
        "jboss.deployment.unit.\"app.ear\".CdiValidatorFactoryService",
        "jboss.deployment.unit.\"app.ear\".WeldStartService",
        "jboss.deployment.unit.\"app.ear\".deploymentCompleteService"
    ],
    "Services that may be the cause:" => ["jboss.naming.context.java.module.app.persistence.DefaultDataSource"]
}}

Or this in JBoss EAP 7.2

14:47:20,814 INFO  [org.jboss.as.controller] (Controller Boot Thread) WFLYCTL0183: Service status report
WFLYCTL0184:    New missing/unsatisfied dependencies:
      service jboss.naming.context.java.module.app.persistence.DefaultDataSource (missing) dependents: [service jboss.naming.context.java.jboss.java:refName.MyDataSource] 
WFLYCTL0448: 9 additional services are down due to their dependencies being missing or failed

Environment

Red Hat JBoss Enterprise Application Platform (EAP) 7

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In