title: How to deploy Apache CXF webservice to Glassfish
body: <p>I have a web service client generated and built with Apache CXF. Next I have JAX-RS Jersey application in which I want to call methods from that webservice. When I try to deploy this simple project to Glassfish 4.0 server I get this exception:</p>
  
  <pre><code>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.
  </code></pre>
  
  <p>Command deploy failed.</p>
  
  <p>The only one CXF dependency I have in this project is:</p>
  
  <pre><code>    &lt;dependency&gt;
          &lt;groupId&gt;org.apache.cxf&lt;/groupId&gt;
          &lt;artifactId&gt;cxf-bundle-jaxrs&lt;/artifactId&gt;
          &lt;version&gt;2.7.6&lt;/version&gt;
          &lt;type&gt;jar&lt;/type&gt;
          &lt;scope&gt;runtime&lt;/scope&gt;
      &lt;/dependency&gt;
  </code></pre>
  
  <p>Is there any other CXF library compatible with JSR 250?
  Thank you</p>