6 Replies Latest reply on Oct 11, 2011 6:09 AM by kumaran d

    JBoss 7 AS  + JPA + missing [ jboss.naming.context.java.java:]

    kumaran d Newbie

      Missing JNDI for the Datasoure error occurs while deploying the application  which looks up the datasource from JPA Unit.


      Using SQL-server jdbc driver and created the datasource.


      Error message from the console



      18:11:25,222 INFO  [org.jboss.as.server.controller] (HttpManagementService-threads - 10) Deployment of "core-api-" was rolled back with failure message {"Services with missing/unavailable dependencies" => ["jboss.persistenceunit.\"core-api-\"

      ,"jboss.deployment.unit.\"core-api-\".jndiDependencyService missing [ jboss.naming.context.java.module.\"core-api-\".\"core-api-\".env/persistence/DKJpaUnit ]","jboss.persistenceunit.\"core-api-\" missing [ jboss.naming.context.java.java:DKDS ]"]}

      18:11:25,237 INFO  [org.jboss.weld] (MSC service thread 1-3) Stopping weld service

      18:11:34,472 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-1) Stopped deployment core-api- in 9257ms