2017-09-04 44 views
0

当我尝试添加的球衣JSON支持得到例外:org.jboss.weld.exceptions.DeploymentException当加jersy JSON来的pom.xml

org.jboss.weld.exceptions.DeploymentException: WELD-001408 Unsatisfied dependencies for type [InjectionManager] with qualifiers [@Default] at injection point [[BackedAnnotatedParameter] Parameter 2 of [BackedAnnotatedConstructor] @Inject public org.glassfish.jersey.message.filtering.CommonScopeProvider(Configuration, InjectionManager)] 
at org.jboss.weld.bootstrap.Validator.validateInjectionPointForDeploymentProblems(Validator.java:403) 
..... 

我尝试用球衣,JSON和球衣,媒体 - MOXY。

当我从pom.xml中删除它时,一切正常。

编辑: 修正了当外接球衣,HK2

回答

0

当我添加这个尝试添加到您的pom.xml

 <dependency> 
      <groupId>org.glassfish.jersey.core</groupId> 
      <artifactId>jersey-server</artifactId> 
      <version>2.25.1</version> 
     </dependency> 
+0

同样的错误。只能运作球衣。 – nekicneko99