【问题标题】:org.jboss.weld.exceptions.DeploymentException when add jersy json to pom.xmlorg.jboss.weld.exceptions.DeploymentException 添加 jersy json 到 pom.xml
【发布时间】:2017-09-04 18:09:25
【问题描述】:

当我尝试添加对 jersey json 的支持时出现异常:

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)
.....

我尝试使用 jersey-json 和 jersey-media-moxy。

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

编辑: 添加 jersey-hk2 时已修复

【问题讨论】:

    标签: java json jersey


    【解决方案1】:

    尝试将此添加到您的 pom.xml

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2014-08-09
      • 2016-10-28
      • 2013-07-12
      • 2016-06-28
      • 1970-01-01
      • 2010-11-25
      • 2011-03-02
      • 2011-08-05
      相关资源
      最近更新 更多