[jboss-user] [JBoss Seam] - NameNotFoundException in simple seam proof of concept
jamesjoh
do-not-reply at jboss.com
Thu Jun 21 12:49:02 EDT 2007
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:
@Stateless
@Name("updater")
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.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4056589#4056589
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4056589
More information about the jboss-user
mailing list