问题描述
一旦配置单元jdbc maven依赖关系
< dependency>
< groupId> org.apache.hive< / groupId>
< artifactId> hive-jdbc< / artifactId>
< version> 2.1.0< / version>
< /依赖关系>
被添加,部署中断,Glassfish提供以下例外:
部署期间发生错误:加载应用程序时出现异常:CDI部署失败:WELD-001408:类型Injector带有限定符的不满意依赖关系@Default在注入点[BackedAnnotatedParameter] [BackedAnnotatedConstructor]的参数1 @Inject public org .apache.hadoop.yarn.server.resourcemanager.webapp.RMWebAppFilter(Injector)at org.apache.hadoop.yarn.server.resourcemanager.webapp.RMWebAppFilter。(RMWebAppFilter.java:0)。有关更多详细信息,请参阅server.log。
通过
解决问题- 从Glassfish 4.1(1)更新到Glassfish 4.1(13)。然而,这本身并没有解决问题。
- 在管理控制台的Glassfish部署屏幕上,我禁用了隐式CDI发现。
I'm building a Java webapp that needs to access Hive through JDBC, deployed on a Glassfish.
Once the hive jdbc maven dependency
<dependency>
<groupId>org.apache.hive</groupId>
<artifactId>hive-jdbc</artifactId>
<version>2.1.0</version>
</dependency>
is added, deployment breaks and Glassfish gives the following exception:
Error occurred during deployment: 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 [BackedAnnotatedConstructor] @Inject public org.apache.hadoop.yarn.server.resourcemanager.webapp.RMWebAppFilter(Injector) at org.apache.hadoop.yarn.server.resourcemanager.webapp.RMWebAppFilter.(RMWebAppFilter.java:0) . Please see server.log for more details.
Solved the issue by
- Updating from Glassfish 4.1(1) to Glassfish 4.1(13). However this did not on itself solve the issue.
- On Glassfish's deploy screen in the admin console I disabled Implicit CDI Discovery.
这篇关于添加配置单元jdbc依赖项会中断Glassfish部署的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!