1 Reply Latest reply on Jul 21, 2004 12:06 PM by Adrian Brock

    No Resource Manager Found For jdbc/MyDataBase

    Eldrid Rensburg Newbie

      When I start JBoss 3.2.3 the ff warning & error occur:

      406 WARN [org.jboss.ejb.EntityContainer] No resource manager found for jdbc/MyDataBase
      140 ERROR [org.jboss.ejb.EntityContainer] Starting failed
      org.jboss.deployment.DeploymentException: Error: can't find data source: java:/comp/env/jdbc/MyDataBase; - nested throwable: (javax.naming.NameNotFoundException: jdbc not bound)
      at org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCEntityBridge.init(JDBCEntityBridge.java:143)

      The following - my configuration:
      server\default\conf\standardjbosscmp-jdbc.xml has:
      <jbosscmp-jdbc>
      java:/MyOwnMySqlDS
      <datasource-mapping>mySQL</datasource-mapping>
      ......

      server\default\deploy\mysql-ds.xml has:
      <local-tx-datasource>
      <jndi-name>MyOwnMySqlDS</jndi-name>
      <connection-url>jdbc:mysql://localhost:8080/assets</connection-url>
      <driver-class>com.mysql.jdbc.Driver</driver-class>
      <user-name>root</user-name>

      </local-tx-datasource>

      MyApp.jar has jbosscmp-jdbc.xml with:
      java:/comp/env/jdbc/MyDataBase
      .......

      MyApp.war has jboss-web.xml with:
      <resource-ref>
      <res-ref-name>jdbc/MyDataBase</res-ref-name>
      <jndi-name>java:comp/env/jdbc/MyDataBase</jndi-name>
      </resource-ref>

      MyApp.war also has struts-config.xml with:
      <data-source>
      <set-property property="description" value="MyDataBase Config"/>
      <set-property property="driverClass" value="com.mysql.jdbc.Driver"/>
      <set-property property="url"
      value="jdbc:mysql://localhost/MyDataBase"/>
      <set-property property="user" value="root"/>
      <set-property property="password" value=""/>
      ......