我有一個使用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