8 Replies Latest reply on Jul 21, 2004 1:29 PM by mkotsbak

    Query method not found:

    caesarkim

      I have a local EJB. here is a deployment descriptor.

      <abstract-schema-name>MAIN_PROJECT</abstract-schema-name>
      <cmp-field><field-name>id</field-name></cmp-field>
      <cmp-field><field-name>projectName</field-name></cmp-field>
      ....
      ....

      getting all project names
      <query-method>
      <method-name>findByProjectNames</method-name>
      <method-params>
      <method-param>java.lang.String</method-param>
      </method-params>
      </query-method>
      <ejb-ql>select object(m) from MAIN_PROJECT as m where m.projectName = ?1</ejb-ql>





      and here is my local object.

      public MainProjectLocal findByPrimaryKey(Integer pk)throws FinderException;

      public Collection findByProjectNames(String project_name) throws FinderException;

      even though i have "findByProjectNames" method, I keep getting an error message like this... can't figure it out.. please help...

      Depends On Me: org.jboss.deployment.DeploymentException: Query method not found: findByProjectNames(java.lang.String), ObjectName: jboss.j2ee:jndiName=jndi/LocalMainProject,service=EJB
      state: FAILED
      I Depend On:
      Depends On Me: org.jboss.deployment.DeploymentException: Query method not found: findByProjectNames(java.lang.String)]





      thanks...