5 Replies Latest reply on Dec 7, 2011 5:41 AM by abiya

    Datasource dependancy missing during ejb deployment AS 7.0.2

    abiya

      Hi,

       

      I get the below error while trying to deploy my ear,

       

         New missing/unsatisfied dependencies:
            service jboss.naming.context.java.jboss.resources.jdbc.demoPool (missing)

      ejb-jar.xml
      ---------------
              <resource-ref>
               <res-ref-name>jdbc/demoPool</res-ref-name>
               <res-type>javax.sql.DataSource</res-type>
               <res-auth>Container</res-auth>
              </resource-ref>

      jboss.xml
      ------------

                <resource-ref>
                    <res-ref-name>jdbc/demoPool</res-ref-name>
                    <jndi-name>java:jboss/datasources/weblogic.jdbc.jts.demopool</jndi-name>
                </resource-ref>

       

      My datasource is bound earlier to the  ejb deployment,
      00:46:10,747 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-2) Bound data source [java:jboss/datasources/weblogic.jdbc.jts.demopool]

       

      Please let me know what is wrong with my configuration.

       

      I also get NameNotFoundException when I try tpo connect to DB in my startup servlet/filter.
      00:46:10,747 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-2) Bound data source [java:jboss/datasources/weblogic.jdbc.jts.demopool]

       

      Thanks,

      Abiya