2 Replies Latest reply on Oct 24, 2004 10:50 PM by alexanderpetrous

    ejb home method doubt -- plz help

    alexanderpetrous Newbie

      Dear friends, i get the following error when i try to deploy my .ear file on jboss 3.0 & tomcat!

      org.jboss.deployment.DeploymentException: Could not find matching method for public abstract java.util.Collection
      com.bussa.entities.interfaces.UserRemoteHome.getselectedusers() throws java.rmi.RemoteException

      the following is my home interface...please look at the home method getselectedusers()

      public interface UserRemoteHome
      extends EJBHome

      public UserRemote create(String s, String s1, String s2, int i, int j, int k)
      throws CreateException, RemoteException;

      public UserRemote findByPrimaryKey(String s)
      throws FinderException, RemoteException;

      public UserRemote findByIdentity(String s)
      throws FinderException, RemoteException;

      public Collection getselectedusers()
      throws RemoteException;


      The relevant part of my bean implementation class

      public Collection ejbHomegetselectedusers()
      throws RemoteException

      Collection collection = ejbSelectUsers(1, 1, 1);
      return collection;
      catch(FinderException fe)

      return null;


      the relevant part of my ejb-jar.xml file

      SELECT user.userName
      FROM UserTable user
      WHERE user.controlUsersFlag = ?1
      AND user.controlCasesFlag = ?2
      AND user.createModeratorFlag = ?3]]>

      Thanks in advance!