0 Replies Latest reply on Feb 19, 2002 12:14 AM by stealth00

    CMP and no resource manager found?

    stealth00

      Hi all I am having problem with deploying CMP to JBoss 2.4.4. When Jboss starts, it complains 'no resource manager found for MyDataSource'. The jboss.xml worked fine with another module that contains a BMP bean, I made some modification to jboss.xml and used it package and deploy the CMP bean, the datasource and resource manager definition are all the same. I also added the corresponding cmp-field to jaws.xml. The META-INF folder of the deployed mycmp.jar has three files ejb-jar.xml, jboss.xml, and jaws.xml. The part related with CMP bean in jboss.xml is like below, which didn't bring the 'no resource manager found for mydatasource' exception:
      <resource-managers>
      <resource-manager res-class="org.jboss.ejb.deployment.JDBCResource">
      <res-name>jdbc/Sun_EJBProjectPool</res-name>
      <res-jndi-name>java:/Sun_EJBProjectPool</res-jndi-name>
      </resource-manager>
      </resource-managers>
      <enterprise-beans>

      <ejb-name>Sun_CMPEntity</ejb-name>
      <jdni-name>Sun_CMPEntity</jdni-name>
      <configuration-name>Standard CMP EntityBean</configuration-name>
      <resource-ref>
      <res-ref-name>jdbc/Sun_EJBProjectPool</res-ref-name>
      <resource-name>Sun_EJBProjectPool</resource-name>
      <jndi-name>Sun_EJBProjectPool</jndi-name>
      </resource-ref>


      can someone help me to figure what went wrong? thank you very much.

      Allen