Deployment JBoss 6中部署Seam应用程序时出现问题

Deployment JBoss 6中部署Seam应用程序时出现问题,deployment,jboss,seam,web.xml,jboss6.x,Deployment,Jboss,Seam,Web.xml,Jboss6.x,我试图在JBoss 6上部署一个简单的“hello world”Seam应用程序,我在日志中发现了以下错误: Deployment "jboss.ejb3:application=helloworld,component=TimerServiceDispatcher,module=jboss-seam,service=EjbEncFactory" is in error due to the following reason(s): Described Deployment "org.jboss

我试图在JBoss 6上部署一个简单的“hello world”Seam应用程序,我在日志中发现了以下错误:

Deployment "jboss.ejb3:application=helloworld,component=TimerServiceDispatcher,module=jboss-seam,service=EjbEncFactory" is in error due to the following reason(s): Described
Deployment "org.jboss.ejb.bean.instantiator/helloworld/jboss-seam/TimerServiceDispatcher" is in error due to the following reason(s): ** NOT FOUND Depends on 'org.jboss.ejb.bean.instantiator/helloworld/jboss-seam/TimerServiceDispatcher' **
Deployment "jboss.naming:application=helloworld,component=TimerServiceDispatcher,module=jboss-seam" is in error due to the following reason(s): ** NOT FOUND Depends on 'jboss.naming:application=helloworld,component=TimerServiceDispatcher,module=jboss-seam' **
Deployment "org.jboss.ejb.bean.instantiator/helloworld/jboss-seam/EjbSynchronizations" is in error due to the following reason(s): ** NOT FOUND Depends on 'org.jboss.ejb.bean.instantiator/helloworld/jboss-seam/EjbSynchronizations' **
Deployment "jboss.ejb3:application=helloworld,component=EjbSynchronizations,module=jboss-seam,service=EjbEncFactory" is in error due to the following reason(s): Described
Deployment "jboss.naming:application=helloworld,component=EjbSynchronizations,module=jboss-seam" is in error due to the following reason(s): ** NOT FOUND Depends on 'jboss.naming:application=helloworld,component=EjbSynchronizations,module=jboss-seam' **
显然,部署过程找不到
TimerServiceDispatcher
EjbSynchronizations
,但我在
web.xml
中注册了它们:

 <ejb-local-ref>
    <ejb-ref-name>helloworld/EjbSynchronizations/local</ejb-ref-name>
    <ejb-ref-type>Session</ejb-ref-type>
    <local>org.jboss.seam.transaction.LocalEjbSynchronizations</local>
    <ejb-link>EjbSynchronizations</ejb-link>
  </ejb-local-ref>

  <ejb-local-ref>
    <ejb-ref-name>helloworld/TimerServiceDispatcher/local</ejb-ref-name>
    <ejb-ref-type>Session</ejb-ref-type>
    <local>org.jboss.seam.async.LocalTimerServiceDispatcher</local>
    <ejb-link>TimerServiceDispatcher</ejb-link>
  </ejb-local-ref>

helloworld/EJB同步/本地
一场
org.jboss.seam.transaction.LocalEjbSynchronizations
ejb同步
helloworld/TimerServiceDispatcher/local
一场
org.jboss.seam.async.LocalTimerServiceDispatcher
时间服务调度器

我做错了什么,或者我错过了什么?请注意,部署人员正在
/helloworld/jboss seam/TimerServiceDispatcher
中查找组件,而不是在
/helloworld/TimerServiceDispatcher
中查找组件(与
EjbSynchronizations
相同)

找到了解决方案,这是一个打包问题。
jbossseam.jar
库位于项目的
.ear
文件中的lib目录中;这在JBoss6中不再有效,因为该文件现在必须位于
.ear
中的根级别。另外,必须相应地调整
application.xml
jboss seam.jar
的位置。

您正在运行哪个版本的seam?它是seam 2.2.1.Final。我试图运行《Seam框架:体验JavaEE的发展,第二版》一书中的helloworld示例,该书是从该书的