WebService CXF异常 

1. 有可能是你的实体类上没有@XmlRootElement注解

javax.ws.rs.ProcessingException: No message body writer has been found for class ****

加上注解即可

2. 有可能是你没有将jettison-1.0.1.jar 使用CXF所需jar包包导入

导入jettison依赖即可

 

    <dependency>
      <groupId>org.codehaus.jettison</groupId>
      <artifactId>jettison</artifactId>
      <version>1.3.7</version>
    </dependency>

 

相关文章:

  • 2022-12-23
  • 2021-09-23
  • 2022-12-23
  • 2021-06-29
  • 2022-01-13
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-09-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-26
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案