2 Replies Latest reply on Mar 1, 2002 2:24 PM by sursha

    CMP in JBoss2.4.4

    sbpyari

      Hi Guys,
      I configured the datasource for Oracle in jboss.jcml file.

      oracle.jdbc.driver.OracleDriver



      OracleDB
      org.jboss.pool.jdbc.xa.wrapper.XADataSourceImpl
      jdbc:oracle:thin:@server:1521:spkl
      spk
      spk


      this is the only datasource i have. I created a cmp and while deploying am getting an error as

      [WARN,EntityContainer] No resource manager found for jdbc/OracleDB
      [ERROR,ContainerFactory] DeploymentError
      org.jboss.deployment.DeploymentException: DefaultDS not bound
      at org.jboss.ejb.plugins.jaws.metadata.JawsApplicationMetaData.init(Jaws
      ApplicationMetaData.java:154)

      Will u pls help me how to solve this problem.
      Thanking u in advance for ur valuable replies
      bye
      with cheers
      Pyari

        • 1. Re: CMP in JBoss2.4.4
          sursha

          you need to declare a resource manager in jboss.xml as given below


          false
          <container-configurations />
          <resource-managers>
          <resource-manager res-class="org.jboss.ejb.deployment.JDBCResource">
          <res-name>CSDataResourceManager</res-name>
          <res-jndi-name>java:/CloudScapeDS</res-jndi-name>
          </resource-manager>

          </resource-managers>
          <enterprise-beans>

          <ejb-name>UidBlockPool</ejb-name>
          <jndi-name>ejb/com/gtech/commerce/UidBlockPool</jndi-name>
          <configuration-name>Standard CMP EntityBean</configuration-name>
          <resource-ref>
          <res-ref-name>jdbc/esdb</res-ref-name>
          <resource-name>CSDataResourceManager</resource-name>
          </resource-ref>


          etc


          and bind your jdbc/esdb to the resource manager.

          Hope it helps

          • 2. Re: CMP in JBoss2.4.4
            sursha

            you need to declare a resource manager in jboss.xml as given below


            false
            <container-configurations />
            <resource-managers>
            <resource-manager res-class="org.jboss.ejb.deployment.JDBCResource">
            <res-name>CSDataResourceManager</res-name>
            <res-jndi-name>java:/CloudScapeDS</res-jndi-name>
            </resource-manager>

            </resource-managers>
            <enterprise-beans>

            <ejb-name>UidBlockPool</ejb-name>
            <jndi-name>ejb/com/gtech/commerce/UidBlockPool</jndi-name>
            <configuration-name>Standard CMP EntityBean</configuration-name>
            <resource-ref>
            <res-ref-name>jdbc/esdb</res-ref-name>
            <resource-name>CSDataResourceManager</resource-name>
            </resource-ref>


            etc


            and bind your jdbc/esdb to the resource manager.

            Hope it helps