将EJB3加载到JBoss 5.1中时出错

时间:2011-08-05 15:02:24

标签: dependencies seam jboss5.x ear

我已经和这个问题搏斗了两天,但仍然无法弄明白。我正在尝试部署一个使用Seam,JSF 2的J2EE项目,并且是一个EJB3项目。这是我得到的错误:

10:51:56,720 INFO  [TomcatDeployment] deploy, ctxPath=/tag
10:51:57,517 INFO  [config] Initializing Mojarra (1.2_13-b01-FCS) for context '/tag'
10:52:00,204 INFO  [ServletContextListener] Welcome to Seam 2.0.2-FP
10:52:03,673 WARN  [Component] Component class should be serializable: addressExtendedDataModel
10:52:03,689 WARN  [Component] Component class should be serializable: cbf
10:52:03,689 WARN  [Component] Component class should be serializable: exportBean
10:52:03,689 WARN  [Component] Component class should be serializable: importBean
10:52:03,860 WARN  [Component] Component class should be serializable: volumeBean
10:52:03,860 WARN  [Component] Component class should be serializable: wavePickerBean
10:52:03,970 WARN  [HDScanner] Failed to process changes
org.jboss.deployers.client.spi.IncompleteDeploymentException: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):

DEPLOYMENTS MISSING DEPENDENCIES:
  Deployment "jboss.j2ee:ear=TagTestAndCleanUp-ear.ear,jar=TagTestAndCleanUp-    ejb.jar,name=AddressDaoImpl,service=EJB3" is missing the following dependencies:
    Dependency "<UNKNOWN jboss.j2ee:ear=TagTestAndCleanUp-ear.ear,jar=TagTestAndCleanUp-ejb.jar,name=AddressDaoImpl,service=EJB3>" (should be in state "Installed", but is actually in state "** UNRESOLVED Demands 'persistence.unit:unitName=TagTestAndCleanUp-ear.ear/TagTestAndCleanUp-ejb.jar#TagEJB' **")
  Deployment "jboss.j2ee:ear=TagTestAndCleanUp-ear.ear,jar=TagTestAndCleanUp-ejb.jar,name=AddressDaoImpl,service=EJB3_endpoint" is missing the following dependencies:
   Dependency "jboss.j2ee:ear=TagTestAndCleanUp-ear.ear,jar=TagTestAndCleanUp-ejb.jar,name=AddressDaoImpl,service=EJB3" (should be in state "Installed", but is actually in state "PreInstall")
  Deployment "jboss.j2ee:ear=TagTestAndCleanUp-ear.ear,jar=TagTestAndCleanUp-ejb.jar,name=AddressServiceImpl,service=EJB3" is missing the following dependencies:
   Dependency "<UNKNOWN jboss.j2ee:ear=TagTestAndCleanUp-ear.ear,jar=TagTestAndCleanUp-ejb.jar,name=AddressServiceImpl,service=EJB3>" (should be in state "Installed", but is actually in state "** UNRESOLVED Demands 'jndi:TagTestAndCleanUp-ear/VolumeDaoImpl/local-com.pnc.conversion.tag.dao.VolumeDao' **")
    Dependency "<UNKNOWN jboss.j2ee:ear=TagTestAndCleanUp-ear.ear,jar=TagTestAndCleanUp-ejb.jar,name=AddressServiceImpl,service=EJB3>" (should be in state "Installed", but is actually in state "** UNRESOLVED Demands 'jndi:TagTestAndCleanUp-ear/AddressDaoImpl/local-com.pnc.conversion.tag.dao.AddressDao' **")
  Deployment "jboss.j2ee:ear=TagTestAndCleanUp-ear.ear,jar=TagTestAndCleanUp-ejb.jar,name=AddressServiceImpl,service=EJB3_endpoint" is missing the following dependencies:
    Dependency "jboss.j2ee:ear=TagTestAndCleanUp-ear.ear,jar=TagTestAndCleanUp-ejb.jar,name=AddressServiceImpl,service=EJB3" (should be in state "Installed", but is actually in state "PreInstall")
  Deployment "jboss.j2ee:ear=TagTestAndCleanUp-ear.ear,jar=TagTestAndCleanUp-ejb.jar,name=AddressServiceWrapper,service=EJB3" is missing the following dependencies:
    Dependency "<UNKNOWN jboss.j2ee:ear=TagTestAndCleanUp-ear.ear,jar=TagTestAndCleanUp-ejb.jar,name=AddressServiceWrapper,service=EJB3>" (should be in state "Installed", but is actually in state "** UNRESOLVED Demands 'jndi:TagTestAndCleanUp-ear/AddressServiceImpl/local-com.pnc.conversion.tag.services.AddressService' **")
  Deployment "jboss.j2ee:ear=TagTestAndCleanUp-ear.ear,jar=TagTestAndCleanUp-ejb.jar,name=AddressServiceWrapper,service=EJB3_endpoint" is missing the following dependencies:
    Dependency "jboss.j2ee:ear=TagTestAndCleanUp-ear.ear,jar=TagTestAndCleanUp-ejb.jar,name=AddressServiceWrapper,service=EJB3" (should be in state "Installed", but is actually in state "PreInstall")
  Deployment "jboss.j2ee:ear=TagTestAndCleanUp-ear.ear,jar=TagTestAndCleanUp-ejb.jar,name=MenuServiceImpl,service=EJB3" is missing the following dependencies:
    Dependency "<UNKNOWN jboss.j2ee:ear=TagTestAndCleanUp-ear.ear,jar=TagTestAndCleanUp-ejb.jar,name=MenuServiceImpl,service=EJB3>" (should be in state "Installed", but is actually in state "** UNRESOLVED Demands 'jndi:TagTestAndCleanUp-ear/WaveTestingPhaseDaoImpl/local-com.pnc.conversion.tag.dao.WaveTestingPhaseDao' **")
    Dependency "<UNKNOWN jboss.j2ee:ear=TagTestAndCleanUp-ear.ear,jar=TagTestAndCleanUp-ejb.jar,name=MenuServiceImpl,service=EJB3>" (should be in state "Installed", but is actually in state "** UNRESOLVED Demands 'jndi:TagTestAndCleanUp-ear/TagDaoImpl/local-com.pnc.conversion.tag.dao.TagDao' **")
  Deployment "jboss.j2ee:ear=TagTestAndCleanUp-ear.ear,jar=TagTestAndCleanUp-ejb.jar,name=MenuServiceImpl,service=EJB3_endpoint" is missing the following dependencies:
    Dependency "jboss.j2ee:ear=TagTestAndCleanUp-ear.ear,jar=TagTestAndCleanUp-ejb.jar,name=MenuServiceImpl,service=EJB3" (should be in state "Installed", but is actually in state "PreInstall")
  Deployment "jboss.j2ee:ear=TagTestAndCleanUp-ear.ear,jar=TagTestAndCleanUp-ejb.jar,name=MenuServiceWrapper,service=EJB3" is missing the following dependencies:
    Dependency "<UNKNOWN jboss.j2ee:ear=TagTestAndCleanUp-ear.ear,jar=TagTestAndCleanUp-ejb.jar,name=MenuServiceWrapper,service=EJB3>" (should be in state "Installed", but is actually in state "** UNRESOLVED Demands 'jndi:TagTestAndCleanUp-ear/MenuServiceImpl/local-com.pnc.conversion.tag.services.MenuService' **")
  Deployment "jboss.j2ee:ear=TagTestAndCleanUp-ear.ear,jar=TagTestAndCleanUp-ejb.jar,name=MenuServiceWrapper,service=EJB3_endpoint" is missing the following dependencies:
    Dependency "jboss.j2ee:ear=TagTestAndCleanUp-ear.ear,jar=TagTestAndCleanUp-ejb.jar,name=MenuServiceWrapper,service=EJB3" (should be in state "Installed", but is actually in state "PreInstall")
  Deployment "jboss.j2ee:ear=TagTestAndCleanUp-ear.ear,jar=TagTestAndCleanUp-ejb.jar,name=TagDaoImpl,service=EJB3" is missing the following dependencies:
    Dependency "<UNKNOWN jboss.j2ee:ear=TagTestAndCleanUp-ear.ear,jar=TagTestAndCleanUp-ejb.jar,name=TagDaoImpl,service=EJB3>" (should be in state "Installed", but is actually in state "** UNRESOLVED Demands 'persistence.unit:unitName=TagTestAndCleanUp-ear.ear/TagTestAndCleanUp-ejb.jar#TagEJB' **")
  Deployment "jboss.j2ee:ear=TagTestAndCleanUp-ear.ear,jar=TagTestAndCleanUp-ejb.jar,name=TagDaoImpl,service=EJB3_endpoint" is missing the following dependencies:
   Dependency "jboss.j2ee:ear=TagTestAndCleanUp-ear.ear,jar=TagTestAndCleanUp-ejb.jar,name=TagDaoImpl,service=EJB3" (should be in state "Installed", but is actually in state "PreInstall")
  Deployment "jboss.j2ee:ear=TagTestAndCleanUp-ear.ear,jar=TagTestAndCleanUp-ejb.jar,name=VolumeDaoImpl,service=EJB3" is missing the following dependencies:
    Dependency "<UNKNOWN jboss.j2ee:ear=TagTestAndCleanUp-ear.ear,jar=TagTestAndCleanUp-ejb.jar,name=VolumeDaoImpl,service=EJB3>" (should be in state "Installed", but is actually in state "** UNRESOLVED Demands 'persistence.unit:unitName=TagTestAndCleanUp-ear.ear/TagTestAndCleanUp-ejb.jar#TagEJB' **")
  Deployment "jboss.j2ee:ear=TagTestAndCleanUp-ear.ear,jar=TagTestAndCleanUp-ejb.jar,name=VolumeDaoImpl,service=EJB3_endpoint" is missing the following dependencies:
    Dependency "jboss.j2ee:ear=TagTestAndCleanUp-ear.ear,jar=TagTestAndCleanUp-ejb.jar,name=VolumeDaoImpl,service=EJB3" (should be in state "Installed", but is actually in state "PreInstall")
  Deployment "jboss.j2ee:ear=TagTestAndCleanUp-ear.ear,jar=TagTestAndCleanUp-ejb.jar,name=WaveTestingPhaseDaoImpl,service=EJB3" is missing the following dependencies:
    Dependency "<UNKNOWN jboss.j2ee:ear=TagTestAndCleanUp-ear.ear,jar=TagTestAndCleanUp-ejb.jar,name=WaveTestingPhaseDaoImpl,service=EJB3>" (should be in state "Installed", but is actually in state "** UNRESOLVED Demands 'persistence.unit:unitName=TagTestAndCleanUp-ear.ear/TagTestAndCleanUp-ejb.jar#TagEJB' **")
  Deployment "jboss.j2ee:ear=TagTestAndCleanUp-ear.ear,jar=TagTestAndCleanUp-ejb.jar,name=WaveTestingPhaseDaoImpl,service=EJB3_endpoint" is missing the following dependencies:
    Dependency "jboss.j2ee:ear=TagTestAndCleanUp-ear.ear,jar=TagTestAndCleanUp-ejb.jar,name=WaveTestingPhaseDaoImpl,service=EJB3" (should be in state "Installed", but is actually in state "PreInstall")
  Deployment "persistence.unit:unitName=TagTestAndCleanUp-ear.ear/TagTestAndCleanUp-ejb.jar#TagEJB" is missing the following dependencies:
    Dependency "jboss.jca:name=TagDatasource,service=DataSourceBinding" (should be in state "Create", but is actually in state "** NOT FOUND Depends on 'jboss.jca:name=TagDatasource,service=DataSourceBinding' **")

DEPLOYMENTS IN ERROR:
  Deployment "<UNKNOWN jboss.j2ee:ear=TagTestAndCleanUp-ear.ear,jar=TagTestAndCleanUp-ejb.jar,name=MenuServiceImpl,service=EJB3>" is in error due to the following reason(s): ** UNRESOLVED Demands 'jndi:TagTestAndCleanUp-ear/WaveTestingPhaseDaoImpl/local-com.pnc.conversion.tag.dao.WaveTestingPhaseDao' **, ** UNRESOLVED Demands 'jndi:TagTestAndCleanUp-ear/TagDaoImpl/local-com.pnc.conversion.tag.dao.TagDao' **
  Deployment "<UNKNOWN jboss.j2ee:ear=TagTestAndCleanUp-ear.ear,jar=TagTestAndCleanUp-ejb.jar,name=MenuServiceWrapper,service=EJB3>" is in error due to the following reason(s): ** UNRESOLVED Demands 'jndi:TagTestAndCleanUp-ear/MenuServiceImpl/local-com.pnc.conversion.tag.services.MenuService' **
  Deployment "<UNKNOWN jboss.j2ee:ear=TagTestAndCleanUp-ear.ear,jar=TagTestAndCleanUp-ejb.jar,name=AddressServiceImpl,service=EJB3>" is in error due to the following reason(s): ** UNRESOLVED Demands 'jndi:TagTestAndCleanUp-ear/AddressDaoImpl/local-com.pnc.conversion.tag.dao.AddressDao' **, ** UNRESOLVED Demands 'jndi:TagTestAndCleanUp-ear/VolumeDaoImpl/local-com.pnc.conversion.tag.dao.VolumeDao' **
  Deployment "<UNKNOWN jboss.j2ee:ear=TagTestAndCleanUp-ear.ear,jar=TagTestAndCleanUp-ejb.jar,name=TagDaoImpl,service=EJB3>" is in error due to the following reason(s): ** UNRESOLVED Demands 'persistence.unit:unitName=TagTestAndCleanUp-ear.ear/TagTestAndCleanUp-ejb.jar#TagEJB' **
  Deployment "<UNKNOWN jboss.j2ee:ear=TagTestAndCleanUp-ear.ear,jar=TagTestAndCleanUp-ejb.jar,name=VolumeDaoImpl,service=EJB3>" is in error due to the following reason(s): ** UNRESOLVED Demands 'persistence.unit:unitName=TagTestAndCleanUp-ear.ear/TagTestAndCleanUp-ejb.jar#TagEJB' **
  Deployment "jboss.jca:name=TagDatasource,service=DataSourceBinding" is in error due to the following reason(s): ** NOT FOUND Depends on 'jboss.jca:name=TagDatasource,service=DataSourceBinding' **
  Deployment "<UNKNOWN jboss.j2ee:ear=TagTestAndCleanUp-ear.ear,jar=TagTestAndCleanUp-ejb.jar,name=AddressServiceWrapper,service=EJB3>" is in error due to the following reason(s): ** UNRESOLVED Demands 'jndi:TagTestAndCleanUp-ear/AddressServiceImpl/local-com.pnc.conversion.tag.services.AddressService' **
  Deployment "<UNKNOWN jboss.j2ee:ear=TagTestAndCleanUp-ear.ear,jar=TagTestAndCleanUp-ejb.jar,name=AddressDaoImpl,service=EJB3>" is in error due to the following reason(s): ** UNRESOLVED Demands 'persistence.unit:unitName=TagTestAndCleanUp-ear.ear/TagTestAndCleanUp-ejb.jar#TagEJB' **
  Deployment "<UNKNOWN jboss.j2ee:ear=TagTestAndCleanUp-ear.ear,jar=TagTestAndCleanUp-ejb.jar,name=WaveTestingPhaseDaoImpl,service=EJB3>" is in error due to the following reason(s): ** UNRESOLVED Demands 'persistence.unit:unitName=TagTestAndCleanUp-ear.ear/TagTestAndCleanUp-ejb.jar#TagEJB' **

    at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:1008)
    at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:954)
    at org.jboss.deployers.plugins.main.MainDeployerImpl.checkComplete(MainDeployerImpl.java:870)
    at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.checkComplete(MainDeployerAdapter.java:128)
    at org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(HDScanner.java:416)
    at org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:294)
    at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
    at java.util.concurrent.FutureTask$Sync.innerRunAndReset(Unknown Source)
    at java.util.concurrent.FutureTask.runAndReset(Unknown Source)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(Unknown Source)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(Unknown Source)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)

可能导致这种情况的原因是什么?任何帮助将不胜感激。

1 个答案:

答案 0 :(得分:0)

我在使用eclipse时遇到了这个问题。 Eclipse的自动发布选项设置为1秒间隔。所以有时jboss试图在完全复制ear文件之前解压缩。 转到Window-&gt;显示视图 - &gt;服务器并展开“发布”选项卡 现在将发布间隔设置为6s(在我的情况下)