首页 > 解决方案 > 将 JSF1.2 应用程序转换为 JSF2.2 Glassfish 部署错误:加载应用程序时出现异常:CDI 部署失败:WELD-001408:

问题描述

我正在尝试将一套应用程序从 JSF1.2 转换为 JSF2.2。我已经成功转换了 2,但第三个有问题。当我尝试将其部署到 GlassFish 4.1 时,我从 GF 控制台收到以下错误:

    Severe:   Exception while loading the app : CDI deployment failure:WELD-001408: Unsatisfied dependencies for type Injector with qualifiers @Default
  at injection point [BackedAnnotatedParameter] Parameter 1 of [BackedAnnotatedMethod] @Inject public synchronized org.sonatype.guice.bean.locators.DefaultBeanLocator.add(Injector)
  at org.sonatype.guice.bean.locators.DefaultBeanLocator.add(DefaultBeanLocator.java:0)
org.jboss.weld.exceptions.DeploymentException: WELD-001408: Unsatisfied dependencies for type Injector with qualifiers @Default

该程序及其依赖项很大,所以我不想在这里全部输入,但这是我用于托管 bean 的注释:

@ManagedBean(name="projectbean")
@SessionScoped
public class ProjectCreatorBean implements Serializable, ClientCreatorAware {

知道我应该寻找什么吗?这真的让我很难过。

谢谢,迈克

标签: cdijsf-2.2glassfish-4

解决方案


推荐阅读