cdi - 将 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 {
知道我应该寻找什么吗?这真的让我很难过。
谢谢,迈克
解决方案
推荐阅读
- javascript - 如何在Javascript中逐行读取文件并将其存储在数组中
- hadoop - Hadoop 3.2.1 和 HBase 2.2.3 不兼容:hadoop-functions.sh 中的错误
- python - IF、ELIF、ELSE 语句缩进
- qt - 如何在选择或取消选择时直接通知 QGraphicsItem
- javascript - 或选择器中的运算符
- python-3.x - Python Crypto.Cipher 是否直接接收十六进制数据?
- mysql - Python2.7 中的 MySQL 连接池无法按预期工作。连接池的close()函数面临问题
- android - 如何将 PreferenceHandler 字符串值更改为 IntetService
- android - 如何选择蓝牙协议反应原生库?
- python-3.x - Pandas DataFrame 中的压缩列