我有一个使用 Apache CXF 生成和构建的 Web 服务客户端。接下来我有 JAX-RS Jersey 应用程序,我想在其中调用该 Web 服务的方法。当我尝试将这个简单的项目部署到 Glassfish 4.0 服务器时,我得到了这个异常:
Exception while deploying the app [pelijee] :
The lifecycle method [finalizeConfig] must not throw a checked exception.
Related annotation information: annotation [@javax.annotation.PostConstruct()] on annotated element [public void org.apache.cxf.transport.http_jetty.JettyHTTPServerEngine.finalizeConfig() throws java.security.GeneralSecurityException,java.io.IOException] of type [METHOD]. Please see server.log for more details.
命令部署失败。
我在这个项目中唯一的一个 CXF 依赖项是:
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-bundle-jaxrs</artifactId>
<version>2.7.6</version>
<type>jar</type>
<scope>runtime</scope>
</dependency>
是否有任何其他与 JSR 250 兼容的 CXF 库?谢谢