1 Reply Latest reply on Dec 27, 2004 2:47 PM by Olga

    JBoss 4.0.1RC1: "Home interface does not have a findByPrimar

    Ron Blom Newbie

      Hi,

      I'm trying to migrate from JBoss-3.2.3 to use JBoss-4.0.1RC1, but encountered a problem when deploying my EJB's. Although deploying and running these beans under 3.2.3 works fine, under 4.0.1RC1 JBoss says that the home interface is missing the findByPrimaryKey method. Though this method is just present like it always was. The console shows the following message:

      10:10:53,405 ERROR [EntityContainer] Starting failed jboss.j2ee:jndiName=Autorisatie,service=EJB
      org.jboss.deployment.DeploymentException: Home interface does not have a findByPrimaryKey method

      Does anyone know the reason for this or can give me a solution for this?

      Thanks in advance.

      Ron Blom

        • 1. Re: JBoss 4.0.1RC1:
          Olga Newbie

          I just had the same issue - the JBoss error message is not clear in this instance. One of my entity beans (random, not even the prior or next one) had the findByPrimaryKey method with a parameter (Object key). The ejb-jar.xml specified an actualy class name MyPrimaryKeyPK for this EJB. Correcting this discrepancy fixed the problem.

          Hope this helps.

          Olga.