3 Replies Latest reply on May 14, 2002 7:53 AM by Stephen Coy

    CMP Deployment exception in RC1

    Anakin Newbie

      Hi Guys,

      I get following errors whenever i deploy my CMP jar.

      Exception in service lifecyle operation: create
      org.jboss.deployment.DeploymentException: expected one row-locking-template tag.


      but this jar works perfectly fine in jboss3 alpha.
      i went throught the updated cmp docs but still couldnt resolve it.

      can anyone help me with this as this is urgent.


      following is the code for jbosscmp-jdbc.xml:

      <?xml version="1.0" encoding="UTF-8"?>
      <jbosscmp-jdbc>
      <enterprise-beans>

      <ejb-name>CmpBean</ejb-name>
      <create-table>false</create-table>
      <row-locking>false</row-locking>
      <table-name>info</table-name>
      <cmp-field>
      <field-name>id</field-name>
      <column-name>id</column-name>
      </cmp-field>
      <cmp-field>
      <field-name>firstName</field-name>
      <column-name>FirstName</column-name>
      </cmp-field>
      <cmp-field>
      <field-name>lastName</field-name>
      <column-name>LastName</column-name>
      </cmp-field>
      <cmp-field>
      <field-name>balance</field-name>
      <column-name>balance</column-name>
      </cmp-field>

      </enterprise-beans>
      </jbosscmp-jdbc>


      Thanks in advance