Missing[jboss.naming.context.java.jboss.java:DefaultDS] in JBoss EAP 6

Solution Unverified - Updated -

Issue

  • When I deploy an ear containing an ejb which uses JPA and has a persistence.xml and also a war with a web service, the logs report a successful deployment. However, it does not seem to correctly inspect the EAR and find the web services inside of it.
INFO  [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS015870: Deploy of deployment "testEAR-1.0.ear" was rolled back with failure message {"JBAS014771: Services with missing/unavailable dependencies" => ["jboss.deployment.subunit.\"testEAR-1.0.ear\".\"testEJB-1.0.jar\".jndiDependencyService Missing[JBAS014861: <one or more transitive dependencies>]","jboss.persistenceunit.\"testEAR-1.0.ear/testEJB-1.0.jar#examplePersistenceContext\" Missing[jboss.naming.context.java.jboss.java:DefaultDS]","jboss.deployment.subunit.\"testEAR-1.0.ear\".\"testEJB-1.0.jar\".component.TestDAO.START Missing[JBAS014861: <one or more transitive dependencies>]","jboss.naming.context.java.comp.\"testEAR-1.0\".\"testEJB-1.0\".TestDAO.env.\"com.jboss.examples.service.dao.impl.TestDAOImpl\".examplePersistenceContext Missing[JBAS014861: <one or more transitive dependencies>]"]}
...
ERROR [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) {"JBAS014653: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"JBAS014771: Services with missing/unavailable dependencies" => ["jboss.deployment.subunit.\"testEAR-1.0.ear\".\"testEJB-1.0.jar\".jndiDependencyService Missing[JBAS014861: <one or more transitive dependencies>]","jboss.persistenceunit.\"testEAR-1.0.ear/testEJB-1.0.jar#examplePersistenceContext\" Missing[jboss.naming.context.java.jboss.java:DefaultDS]","jboss.deployment.subunit.\"testEAR-1.0.ear\".\"testEJB-1.0.jar\".component.TestDAO.START Missing[JBAS014861: <one or more transitive dependencies>]","jboss.naming.context.java.comp.\"testEAR-1.0\".\"testEJB-1.0\".TestDAO.env.\"com.jboss.examples.service.dao.impl.TestDAOImpl\".examplePersistenceContext Missing[JBAS014861: <one or more transitive dependencies>]"]}}}

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 6.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content