Deployment Fails on JBoss EAP 7 with Missing Dependency: DefaultDataSource

Solution Verified - Updated -

Issue

  • Deployment fails with missing dependency jboss.naming.context.java.module.....DefaultDataSource:

    CLI

    {"WFLYCTL0062: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"WFLYCTL0412: Required services that are not installed:" => ["jboss.naming.context.java.module.DeploymentName.DeplomentName.DefaultDataSource"],"WFLYCTL0180: Services with missing/unavailable dependencies" => ["jboss.naming.context.java.module.DeploymentName.DeplomentName.DefaultDataSource.env.jdbc.DatasourceName is missing [jboss.naming.context.java.module.DeploymentName.DeplomentName.DefaultDataSource]"]}}}
    

    Version 7.2 Log

    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
    

    Version 7.0 and 7.1 Log

    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"]
    }}
    

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 7
  • During application deployment
  • Java Database Connectivity (JDBC)
  • Java Naming and Directory Interface™ (JNDI) datasource lookup

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