• Post Reply Bookmark Topic Watch Topic
  • New Topic

ejb home method doubt plz help  RSS feed

 
devender
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
{

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

return null;
}

}






the relevant part of my ejb-jar.xml file
-----------------------------------------

<query>
<query-method>
<method-name>ejbSelectUsers</method-name>
<method-params>
<method-param>int</method-param>
<method-param>int</method-param>
<method-param>int</method-param>
</method-params>
</query-method>
<ejb-ql><![CDATA[
SELECT user.userName
FROM UserTable user
WHERE user.controlUsersFlag = ?1
AND user.controlCasesFlag = ?2
AND user.createModeratorFlag = ?3]]>
</ejb-ql>
</query>




Thanks in advance!
alex
 
Jeanne Boyarsky
author & internet detective
Sheriff
Posts: 36453
459
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"devender",
As pointed out in your last post, you need to change your display name. Your name is still only one word. Alex is a good first name (per you other post). Just add a last name to that and you will compliant with our policy.

Just a note: some people including myself will not answer a post that has an invalid display name. That might explain why nobody answered your question last time.

Jeanne
Bartender
 
Vinod Subramaniam
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I feel in your bean you need to change the name from ejbHomegetselectedusers() to ejbHomeGetselectedusers(). Try out and let me know if you any further problems.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!