is your EJB an entity EJB?  If so you will need a finder method in the home
class like this:

  public GestionnaireApe findByPrimaryKey(String primaryKey)
    throws FinderException, RemoteException;

and a reciprocal method in the implmentation class such as:

public String ejbFindByPrimaryKey(String pk)
    throws ObjectNotFoundException
  {

    // finder logic goes here

    return pk;
  }

look in the weblogic examples directory on how to implement a finder method

Hope this helps,

Myles


> -----Original Message-----
> From: Meissa Mbaye SAKHO [SMTP:[EMAIL PROTECTED]]
> Sent: 08 January 2001 11:06
> To:   [EMAIL PROTECTED]
> Subject:      no suitable home Class error message
>
> hi all,
>
> I receive the message below from the deployer tool of weblogic while try
> to
> create the ejb jar file.
>
> java.lang.ClassNotFoundException: No suitable home found for bean
> tableref.societe.ejb.GestionnaireApeBean
>
>  at weblogic.ejb.ui.jarbuilder.EJBJarSpec.findBeanHome(EJBJarSpec.java,
> Compiled Code)
>
>  at java.lang.Exception.<init>(Exception.java, Compiled Code)
>
> I don't understand, It seem like my ejb Home class is not correct. can
> someone tells me what's wrong
> in the code.
>
> package tableref.societe.ejb;
>
> import javax.ejb.CreateException;
> import java.rmi.RemoteException;
>
> public interface GestionnaireApeHome extends javax.ejb.EJBHome {
>
>
> GestionnaireApe create() throws RemoteException, CreateException;
> }
>
> thanks in advance
>
> ==========================================================================
> =
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
> body
> of the message "signoff EJB-INTEREST".  For general help, send email to
> [EMAIL PROTECTED] and include in the body of the message "help".

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to