10 Replies Latest reply on Jun 22, 2007 12:55 PM by Jim Johnson

    NameNotFoundException in simple seam proof of concept

    Jim Johnson Newbie

      Hi, I'm using JBoss AS4.2.0 with Seam 1.1.0 and Facelets. I've been trying to write a very simple proof of concept app. I have a simple index.xhtml that has a form on it. The form takes in 2 inputs to a backing bean. The form submits to "#{updater.add}". I have an action bean defined as follows:

      public class PocAction implements IPocAction{
      public String add() { ... }


      Whenever I try to invoke this action I get an exception:
      javax.servlet.ServletException: Could not instantiate Seam component: updater

      which stems from:
      javax.naming.NameNotFoundException: PocAction not bound

      As soon as I remove the 'Stateless' annotation everything works fine. I've checked every configuration I can think of and compared against known working examples from the seam examples directory. Everything as far as I can tell looks correct. Does anyone have any ideas as to what my problem might be? Is this an incompatibility between the newest JBoss AS and the older version of Seam?

      Thanks for your time.