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...




View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3838254#3838254

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3838254


-------------------------------------------------------
This SF.Net email is sponsored by: GNOME Foundation
Hackers Unite!  GUADEC: The world's #1 Open Source Desktop Event.
GNOME Users and Developers European Conference, 28-30th June in Norway
http://2004/guadec.org
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to