[SEAM] 请教:找不到component的问题

ningshuihan 2008-09-19
本人刚开始学seam,看了一些资料,也跑了seam自带的registration例子。
问题是这样的:
我用ant直接发布registration到jboss as下跑没有问题,在注册页面输入数据可以跳到成功页面,但是我在eclipse里面新建了一个工程,并把registration的源文件都拷贝过去,发布到jboss as运行就有问题了,打开注册页面,输入数据提交,出现如下错误:
Exception during request processing: 
Caused by javax.servlet.ServletException with message: "Could not instantiate Seam component: register" 

Caused by org.jboss.seam.InstantiationException with message: "Could not instantiate Seam component: register" 

Caused by javax.naming.NameNotFoundException with message: "RegisterAction not bound"

我只拷贝了主要的错误信息,但是启动日志显示register组件已经创建成功了
10:42:04,109 INFO  [Component] Component: register, scope: STATELESS, type: STATELESS_SESSION_BEAN, class: org.jboss.seam.example.registration.RegisterAction, JNDI: RegisterAction/local


配置文件里的配置都是默认的,为什么会找不到组件?
哪位有经验的请指点下,谢谢!
ningshuihan 2008-09-22
原因是war不支持ejb组件,幼稚的问题,自己汗一个,看书不认真
herane 2009-04-09
    汗! 小弟初学,还是不知道问题出在哪里?还望指教,敬谢!yeherian@gmail.com
Global site tag (gtag.js) - Google Analytics