0 Replies Latest reply on Jun 29, 2002 1:27 PM by Kris A

    [CMPFieldMetaData] ERROR : Nested Field does not have a get

    Kris A Newbie

      I am using JBoss 2.4.4 and PostgreSQL 7.2 (under cygwin) with CMP 1.1 Entity beans.

      When i deploy my entity beans for every field i have in the bean i recieve the error below

      [CMPFieldMetaData] ERROR : Nested Field does not have a get method

      What is the cause of this type of problem?

      Example deployment descriptors are follows :-

      (from ejb-jar)

      <ejb-name>ejb/WMCostTypeEB</ejb-name>
      org.blashyrkh.workflow.management.WMCostTypeEBHome
      org.blashyrkh.workflow.management.WMCostTypeEB
      <ejb-class>org.blashyrkh.workflow.management.WMCostTypeEBBean</ejb-class>
      <persistence-type>Container</persistence-type>
      false
      <prim-key-class>org.blashyrkh.workflow.management.WMCostTypePK</prim-key-class>
      <cmp-field>
      <field-name>iId_i</field-name>
      </cmp-field>
      <cmp-field>
      <field-name>sDescription_i</field-name>
      </cmp-field>
      <resource-ref>
      <res-ref-name>workflowDS</res-ref-name>
      <res-type>javax.sql.DataSource</res-type>
      <res-auth>Container</res-auth>
      </resource-ref>



      (from jaws)

      <ejb-name>ejb/WMCostTypeEB</ejb-name>
      <table-name>wm_cost_type</table-name>
      <create-table>false</create-table>
      <cmp-field>
      <field-name>iId_i</field-name>
      <column-name>id</column-name>
      </cmp-field>
      <cmp-field>
      <field-name>sDescription_i</field-name>
      <column-name>description</column-name>
      </cmp-field>


      (from jboss.xml)

      <ejb-name>ejb/WMCostTypeEB</ejb-name>
      <resource-ref>
      <res-ref-name>workflowDS</res-ref-name>
      <jndi-name>java:/workflowDS</jndi-name>
      </resource-ref>