Sealyu

--- 博客已迁移至: http://www.sealyu.com/blog

  BlogJava :: 首页 :: 新随笔 :: 联系 :: 聚合  :: 管理 ::
  618 随笔 :: 87 文章 :: 225 评论 :: 0 Trackbacks
今天一个问题让我困扰了很久,新建一个session bean后,执行程序一直报错:
org.jboss.seam.InstantiationException: Could not instantiate Seam component: xxxAction
找了好久,终于发现了错误原因,
原来是对应的@Stateful的session bean对应的接口没有标注:@Local
The devil's in the Details!果然如此啊
posted on 2009-07-17 09:53 seal 阅读(3155) 评论(1)  编辑  收藏 所属分类: Seam

评论

# re: Seam错误:org.jboss.seam.InstantiationException: Could not instantiate Seam component 2010-08-03 16:06 keven
我在seam中整合了jbpm4,但是在流程中取出Identity组件时有时候为空,有时候有错误,有时候又正确。。。但大多时候为空!。。
代码如下:
我是在jbpm的一个custom节点调用的方法中写的----
Identity identity = (Identity)Component.getInstance(Identity.class);
但是在后面使用identity时有时为空,有时数据有错(根本不是当前用户),有时候又正确。。
  回复  更多评论
  


只有注册用户登录后才能发表评论。


网站导航: