JBAS014771: Services with missing/unavailable dependencies... Validator is missing .. when trying to specify the start order of sub deployments of an EAR and using @DependsOn
Issue
- We are using @DependsOn to ensure some EJB Singletons & Stateless EJBs start in the order we need, our application is failing to deploy with messages such as shown below. Our EJBs / Singletons are contained is sub deployments of an ear with the
application.xmlsuch as shown below:
<application xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/application_6.xsd"
version="6">
<module>
<ejb>first.jar</ejb>
</module>
<module>
<ejb>second.jar</ejb>
</module>
<initialize-in-order>true</initialize-in-order>
</application>
17:38:41,677 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) JBAS014612: Operation ("deploy") failed - address: ([("deployment" => "start-order.ear")]) - failure description: {"JBAS014771: Services with missing/unavailable dependencies" => [
"jboss.naming.context.java.comp.start-order.second.SecondSingleton.Validator is missing [jboss.naming.context.java.comp.start-order.second.SecondSingleton]",
"jboss.deployment.unit.\"start-order.ear\".deploymentCompleteService is missing [jboss.deployment.subunit.\"start-order.ear\".\"second.jar\".deploymentCompleteService]",
"jboss.deployment.subunit.\"start-order.ear\".\"first.jar\".component.FirstSingleton.START is missing [jboss.deployment.subunit.\"start-order.ear\".\"second.jar\".component.SecondSingleton.START]",
"jboss.naming.context.java.comp.start-order.second.SecondSingleton.ValidatorFactory is missing [jboss.naming.context.java.comp.start-order.second.SecondSingleton]"
]}
JBAS014775: New missing/unsatisfied dependencies:
service jboss.deployment.subunit."start-order.ear"."second.jar".component.SecondSingleton.START (missing) dependents: [service jboss.deployment.subunit."start-order.ear"."first.jar".component.FirstSingleton.START]
service jboss.deployment.subunit."start-order.ear"."second.jar".deploymentCompleteService (missing) dependents: [service jboss.deployment.unit."start-order.ear".deploymentCompleteService]
service jboss.naming.context.java.comp.start-order.second.SecondSingleton (missing) dependents: [service jboss.naming.context.java.comp.start-order.second.SecondSingleton.Validator, service jboss.naming.context.java.comp.start-order.second.SecondSingleton.ValidatorFactory]
JBAS014775: New missing/unsatisfied dependencies:
service jboss.deployment.subunit."start-order.ear"."first.jar".INSTALL (missing) dependents: [service jboss.deployment.subunit."start-order.ear"."second.jar".INSTALL]
service jboss.deployment.subunit."start-order.ear"."first.jar".component.FirstSingleton.CREATE (missing) dependents: [service jboss.deployment.subunit."start-order.ear"."first.jar".component.FirstSingleton.START]
service jboss.deployment.subunit."start-order.ear"."first.jar".component.FirstSingleton.START (missing) dependents: [service jboss.deployment.subunit."start-order.ear"."first.jar".deploymentCompleteService, service jboss.deployment.subunit."start-order.ear"."first.jar".moduleDeploymentRuntimeInformationStart]
service jboss.deployment.subunit."start-order.ear"."first.jar".component.FirstSingleton.VIEW."com.jboss.examples.ee6.ejb.FirstSingleton".LOCAL (missing) dependents: [service jboss.deployment.subunit."start-order.ear"."first.jar".component.FirstSingleton.START]
service jboss.deployment.subunit."start-order.ear"."first.jar".deploymentCompleteService (missing) dependents: [service jboss.deployment.subunit."start-order.ear"."second.jar".INSTALL, service jboss.deployment.unit."start-order.ear".deploymentCompleteService]
service jboss.deployment.subunit."start-order.ear"."first.jar".jndiDependencyService (missing) dependents: [service jboss.deployment.subunit."start-order.ear"."first.jar".component.FirstSingleton.START]
service jboss.deployment.subunit."start-order.ear"."first.jar".moduleDeploymentRuntimeInformation (missing) dependents: [service jboss.deployment.subunit."start-order.ear"."first.jar".component.FirstSingleton.START, service jboss.deployment.subunit."start-order.ear"."first.jar".moduleDeploymentRuntimeInformationStart]
service jboss.naming.context.java.comp.start-order.first.FirstSingleton (missing) dependents: [service jboss.deployment.subunit."start-order.ear"."first.jar".component.FirstSingleton.START]
service jboss.naming.context.java.module.start-order.second (missing) dependents: [service jboss.deployment.subunit."start-order.ear"."second.jar".INSTALL]
Environment
Red Hat JBoss Enterprise Application Platform (EAP) 6.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
