我有一个使用Apache CXF生成并构建的Web服务客户端。接下来,我有JAX-RS Jersey应用程序,我想从该web服务调用方法。当我尝试将这个简单的项目部署到Glassfish 4.0服务器时,我得到以下异常:如何将Apache CXF webservice部署到Glassfish
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>
是否有任何其他CXF库JSR 250兼容? 谢谢
https://issues.apache.org/jira/browse/CXF-5483对此有帮助吗? – alkis