3 Replies Latest reply on Jun 23, 2003 9:25 AM by Stefan Schubert

    Please help! CMP Deploy Error. Container doesnt find findByP

    Stefan Schubert Newbie

      Hello,

      I have a strange problem here with one of my CMP EJBs.

      On deployment (JBoss3.2) I got the following Errors:

      18:05:46,750 ERROR [EntityContainer] Starting failed
      org.jboss.deployment.DeploymentException: Local home interface does not have the method findByPrimaryKey(java.math.BigDecimal)
      .....
      18:05:46,760 WARN [ServiceController] Problem starting service jboss.j2ee:jndiName=local/RueckbauEJB,service=EJB
      org.jboss.deployment.DeploymentException: Local home interface does not have the method findByPrimaryKey(java.math.BigDecimal)

      However my Local Home Interface does have the method. Some sniplets for references:

      ejb-jar.xml:
      ========


      RUECKBAU CMP EJB
      <display-name>RUECKBAU_EB</display-name>
      <ejb-name>RueckbauEJB</ejb-name>

      <local-home>aurelis.arems.coco.LocalRueckbauEJBHome</local-home>
      aurelis.arems.coco.LocalRueckbauEJB
      <ejb-class>aurelis.arems.coco.RueckbauEJB</ejb-class>

      <persistence-type>Container</persistence-type>
      <prim-key-class>java.math.BigDecimal</prim-key-class>
      False
      <cmp-version>2.x</cmp-version>
      <abstract-schema-name>RUECKBAU</abstract-schema-name>


      <cmp-field>
      <field-name>ID</field-name>
      </cmp-field>

      <primkey-field>ID</primkey-field>


      LocalRueckbauEJBHome.java:
      ==========================

      public interface LocalRueckbauEJBHome extends javax.ejb.EJBLocalHome {

      public aurelis.arems.coco.LocalRueckbauEJB findByPrimaryKey(java.math.BigDecimal aKey)
      throws javax.ejb.FinderException;

      }


      So why does the container tell me that my Home-Interface does not contains an findByPrimaryKey method????

      What am I doing wrong?