2 Replies Latest reply on Dec 21, 2007 11:28 AM by Felix Khazin

    Seam EJB not binding

    Felix Khazin Newbie


      I'm new to Seam and i'm running into a problem. I've created a Seam project using seam gen (eclipse plugin), and created a new Action called TestAction which implements an interface called test.

      Here is my Test Action class:

      public class TestAction implements Test
       @Logger private Log log;
       @In FacesMessages facesMessages;
       private EntityManager em;
       public void test()
       //implement your business logic here
       log.info("Test.test() action called");
       List resellerList = em.createQuery("from Reseller").getResultList();
       facesMessages.add("test + " + resellerList.size());
       //add additional action methods

      When I try to execute test() in a JSF I keep getting the following exceptions:

      Caused by javax.servlet.ServletException with message: "Could not instantiate Seam component: test"
      Caused by javax.naming.NameNotFoundException with message: "Test not bound"

      Anyone have any ideas what I can be doing wrong?