Discussions

EJB programming & troubleshooting: EJB create error

  1. EJB create error (2 messages)

    Hi

    I'm receiving the following error when I attempt to run my stateless session EJB:

    java.lang.NoSuchMethodError: java.lang.NoSuchMethodException: create

    and

    Exception in thread "main" java.lang.NoSuchMethodError: method create(); not found

    It says that it can't find my create method however, the code for my home interface is as follows:

    import javax.ejb.*;
    import java.rmi.RemoteException;

    public interface RequestSessionHome extends EJBHome
    {
      
      public RequestSession create() throws RemoteException, CreateException;
     
    }

    I have an ejbCreate() method in my Bean class that returns void and doesn't receive any arguments. Can anybody suggest a possible reason for why this error is occurring?

    Thanks

    Daniel

    Threaded Messages (2)

  2. EJB create error[ Go to top ]

    Hi,

    send all the three files...

    Rinku
  3. EJB create error[ Go to top ]

    Hi,

    Check the following things:

    Is u'r ejbCreate is public ?
    Is it throws only CreateException ?

    Regards
    Saran