1 Reply Latest reply on Jul 17, 2003 3:01 AM by Juha Lindfors

    Could not find matching method for public abstract

    Antonino Galletta Newbie

      Dear all,

      I am new of this forum, I am using jboss-3.0.0 and tomcat-4.0.3 and xdoclet 1.1.2. Until now I have been luky to use only container Finder like findAll and findBy.
      Now I am tryng to define a custom finder :
      * @ejb.finder
      * signature="java.util.Collection selPeriodo(java.sql.Date dataInizio, java.sql.Date dataFine)"
      * query="SELECT OBJECT (a) FROM ATTIVITA AS a WHERE a.DATA >= ?1 AND A.DATA <= ?2"
      In the bean class.

      In the home has been mapped as :
      public java.util.Collection selPeriodo(java.sql.Date dataInizio, java.sql.Date dataFine)
      throws java.rmi.RemoteException,javax.ejb.FinderException;

      In the ejb-jar as mapped as

      <query-method>
      <method-name>selPeriodo</method-name>
      <method-params>
      <method-param>java.sql.Date</method-param>
      <method-param>java.sql.Date</method-param>
      </method-params>
      </query-method>
      <ejb-ql><![CDATA[SELECT OBJECT (a) FROM ATTIVITA AS a WHERE a.DATA >= ?1 AND A.DATA <= ?2]]></ejb-ql>


      But when I deplpy the EJB I hava the following result:
      org.jboss.deployment.DeploymentException: Could not find matching method for public abstract java.util.Collection com.OpenVision.Briareos.ejb.entity.AttivitaHome.selPeriodo(java.sql.Date,java.sql.Dat
      ) throws java.rmi.RemoteException,javax.ejb.FinderException

      Where the container is missing the matching ?

      Please help me !

      Antoniog