2017-09-04 41 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