0 Replies Latest reply on Oct 17, 2003 4:51 AM by Xavier MOGHRABI

    Query method not found

    Xavier MOGHRABI Newbie


      I began to use JBoss and I've got a problem to deploy a CMP EJB with a finder method. I thought I'd written correctly the code but when I deploy it I get the following error message :

      "Packages waiting for a deployer:

      Incompletely deployed packages:

      MBeans waiting for classes:

      MBeans waiting for other MBeans:
      [ObjectName: jboss.j2ee:jndiName=HumainBean,service=EJB
      state: FAILED
      I Depend On:
      Depends On Me: org.jboss.deployment.DeploymentException: Query method not found
      : findByNom(java.lang.String)]"

      i've created the Finder method FindByNom by myself. It's in my Home and Local Home interfaces with the following signature :

      public java.util.Collection findByNom(java.lang.String nom) throws javax.ejb.FinderException;

      I've created in ejb-jar.xml the following code under the other query method finAll() :

      <ejb-ql><![CDATA[SELECT OBJECT(a) FROM mySchema as a WHERE a.nom = ?1]]></ejb-ql>

      But it doesn't work. Any Ideas ?

      Thanks for your further help.