0

我的战争成功部署在 tomee 中,但是当我尝试在 jboss Gatein 中部署它时,我得到下一个日志:

2013-08-01 16:04:09,240 ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] (HDScanner) Error installing to Start: name=vfs:///D:/java/GateIn-3.2.0.Final-jbossas6/server/default/deploy/jsfbootstrap.war_WeldBootstrapBean state=Create: org.jboss.weld.exceptions.DeploymentException: WELD-001408 Unsatisfied dependencies for type [Logger] with qualifiers [@Default] at injection point [[field] @Inject private com.rkovacevic.jsfbootstrap.service.MemberRegistration.log]
at org.jboss.weld.bootstrap.Validator.validateInjectionPoint(Validator.java:305) [:6.0.0.Final]
at org.jboss.weld.bootstrap.Validator.validateBean(Validator.java:139) [:6.0.0.Final]
. . .
at java.lang.Thread.run(Thread.java:722) [:1.7.0_13]

2013-08-01 16:04:09,265 WARN  [org.jboss.profileservice.deployment.hotdeploy.HDScanner] (HDScanner) Scan failed: org.jboss.deployers.client.spi.IncompleteDeploymentException: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):

DEPLOYMENTS MISSING DEPENDENCIES:
  Deployment "jboss-injector:appName=jsfbootstrap,module=jsfbootstrap" is missing the following dependencies:
    Dependency "<UNKNOWN jboss-injector:appName=jsfbootstrap,module=jsfbootstrap>" (should be in state "Installed", but is actually in state "** UNRESOLVED Demands 'jboss-switchboard:appName=jsfbootstrap,module=jsfbootstrap' **")
  Deployment "jboss-injector:topLevelUnit=jsfbootstrap.war,unit=jsfbootstrap.war,bean=CalculatorImpl,interceptor=org.jboss.weld.

integration.ejb.SessionBeanInterceptor" is missing the following dependencies:

more with same errors...

DEPLOYMENTS IN ERROR:
  Deployment "<UNKNOWN jboss-injector:topLevelUnit=jsfbootstrap.war,unit=jsfbootstrap.war,bean=CalculatorImpl,interceptor=org.jboss.weld.integration.ejb.SessionBeanInterceptor>" is in error due to the following reason(s): ** UNRESOLVED Demands 'jboss-switchboard:appName=jsfbootstrap,module=jsfbootstrap' **

  more with same errors...

  Deployment "<UNKNOWN jboss.j2ee:jar=jsfbootstrap.war,name=CalculatorImpl,service=EJB3>" is in error due to the following reason(s): ** UNRESOLVED Demands 'jboss-injector:bean=CalculatorImpl,interceptor=org.jboss.weld.integration.ejb.interceptor.Jsr299BindingsInterceptor,topLevelUnit=jsfbootstrap.war,unit=jsfbootstrap.war' **, ** UNRESOLVED Demands 'jboss-injector:bean=CalculatorImpl,interceptor=org.jboss.weld.integration.ejb.SessionBeanInterceptor,topLevelUnit=jsfbootstrap.war,unit=jsfbootstrap.war' **

at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:1370) [:2.2.0.GA]
. . .
at java.lang.Thread.run(Thread.java:722) [:1.7.0_13]

我在这里得到了这个例子 - 我分叉了这个项目https://github.com/rkovacevic/JSFBootstrap 并添加了一些 ejb3 bean。正如我所说,这场战争在 TomEE 中成功部署......

4

1 回答 1

0

在我看来,我的 server\lib 文件夹中缺少一些 lib,如 portlet-api、portletbridge-api 等,请参阅我的另一个问题:

GateIn 快速入门:无法部署 JSF2 HelloWorld 示例

于 2013-08-05T09:08:50.290 回答