3 Replies Latest reply on Dec 4, 2006 11:56 AM by M K

    Almost identical session beans, one works one fails

    M K Newbie

      The failing one is looked up like this, and I get a "not bound" exception when activating the servlet it's called from.

      Context context = new InitialContext();
       Object listRef = context.lookup("java:comp/env/ejb/ListApplicants");

      The working one is looked up the same way, except that it's called Applicant instead of ListApplicants. All the configurations look the same.

      Home interface
      package ejb;
       * Home interface for ListApplicants.
      public interface ListApplicantsHome
       extends javax.ejb.EJBHome
       public static final String COMP_NAME="java:comp/env/ejb/ListApplicants";
       public static final String JNDI_NAME="ejb/ListApplicants";
       public ejb.ListApplicants create(java.lang.String param)
       throws javax.ejb.CreateException,java.rmi.RemoteException;


      <session >
       <description><![CDATA[Description for ListApplicants]]></description>
       <display-name>Name for ListApplicants</display-name>

      This looks exactly the same for my ApplicantBean, with the names changed accordingly, and that one works! This one doesn't. Anyone have a clue about what's wrong?