【问题标题】:Problem deploying Seam application in JBoss 6在 JBoss 6 中部署 Seam 应用程序的问题
【发布时间】:2011-07-25 19:39:57
【问题描述】:

我正在尝试在 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' **

显然部署过程找不到TimerServiceDispatcherEjbSynchronizations,但我在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/jboss-seam/TimerServiceDispatcher 中的组件,而不是/helloworld/TimerServiceDispatcher 中的组件(与EjbSynchronizations 相同)

【问题讨论】:

  • 你运行的是哪个版本的接缝?
  • 这是Seam 2.2.1.Final。我正在尝试运行从本书的web site 下载的“Seam 框架:体验 Java EE 的演变,第 2 版”一书中的 helloworld 示例

标签: deployment jboss seam web.xml jboss6.x


【解决方案1】:

找到了解决办法,是包装有问题。 jboss-seam.jar 库位于项目的 .ear 文件内的 lib 目录中;这在 JBoss 6 中不再有效,因为该文件现在必须位于 .ear 内的根级别。此外,jboss-seam.jarapplication.xml 中的位置也必须相应调整。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-03-24
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-04-03
    • 1970-01-01
    相关资源
    最近更新 更多