title: java.lang.NoSuchMethodError: javax.ws.rs.core.HttpHeaders.getHeaderString
body: <p>I have the following server error in wildfly-11.0.0.Final:</p>
  
  <pre><code>ERROR [io.undertow.request] (default task-14) UT005023: Exception handling request to /cos/services/service0/communication/getLinkedComponentsExample: java.lang.NoSuchMethodError: javax.ws.rs.core.HttpHeaders.getHeaderString(Ljava/lang/String;)Ljava/lang/String;
  at org.apache.cxf.jaxrs.impl.AbstractRequestContextImpl.getHeaderString(AbstractRequestContextImpl.java:67)
  at es.ual.acg.cos.ws.security.filters.AuthenticationFilter.filter(AuthenticationFilter.java:39)
  at org.apache.cxf.jaxrs.utils.JAXRSUtils.runContainerRequestFilters(JAXRSUtils.java:1668)
  at org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor.processRequest(JAXRSInInterceptor.java:201)
  at org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor.handleMessage(JAXRSInInterceptor.java:77)
  at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:308)
  at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)
  at org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:254)
  at org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:234)
  at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:208)
  at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:160)
  at org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(CXFNonSpringServlet.java:180)
  at org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:299)
  at org.apache.cxf.transport.servlet.AbstractHTTPServlet.doGet(AbstractHTTPServlet.java:223)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:687)
  at org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:274)
  at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:85)
  at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:62)
  at io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36)
  at org.wildfly.extension.undertow.security.SecurityContextAssociationHandler.handleRequest(SecurityContextAssociationHandler.java:78)
  at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
  at io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:131)
  at io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:57)
  at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
  at io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:46)
  at io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:64)
  at io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:60)
  at io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:77)
  at io.undertow.security.handlers.NotificationReceiverHandler.handleRequest(NotificationReceiverHandler.java:50)
  at io.undertow.security.handlers.AbstractSecurityContextAssociationHandler.handleRequest(AbstractSecurityContextAssociationHandler.java:43)
  at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
  at org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler.handleRequest(JACCContextIdHandler.java:61)
  at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
  at org.wildfly.extension.undertow.deployment.GlobalRequestControllerHandler.handleRequest(GlobalRequestControllerHandler.java:68)
  at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
  at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:292)
  at io.undertow.servlet.handlers.ServletInitialHandler.access$100(ServletInitialHandler.java:81)
  at io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java:138)
  at io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java:135)
  at io.undertow.servlet.core.ServletRequestContextThreadSetupAction$1.call(ServletRequestContextThreadSetupAction.java:48)
  at io.undertow.servlet.core.ContextClassLoaderSetupAction$1.call(ContextClassLoaderSetupAction.java:43)
  at org.wildfly.extension.undertow.security.SecurityContextThreadSetupAction.lambda$create$0(SecurityContextThreadSetupAction.java:105)
  at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1508)
  at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1508)
  at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1508)
  at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1508)
  at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:272)
  at io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:81)
  at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:104)
  at io.undertow.server.Connectors.executeRootHandler(Connectors.java:326)
  at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:812)
  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
  at java.lang.Thread.run(Thread.java:748)
  </code></pre>
  
  <p>And this is the code line where it crashes:</p>
  
  <pre><code>package es.ual.acg.cos.ws.security.filters;
  
  import java.io.IOException;
  import java.security.Principal;
  import java.sql.Timestamp;
  import java.util.Optional;
  
  import javax.annotation.Priority;
  import javax.ws.rs.Priorities;
  import javax.ws.rs.container.ContainerRequestContext;
  import javax.ws.rs.container.ContainerRequestFilter;
  import javax.ws.rs.core.HttpHeaders;
  import javax.ws.rs.core.MediaType;
  import javax.ws.rs.core.Response;
  import javax.ws.rs.core.SecurityContext;
  import javax.ws.rs.ext.Provider;
  
  import es.ual.acg.cos.secdb.SECDB;
  import es.ual.acg.cos.secdb.speedment.secdb.public_.token.Token;
  import es.ual.acg.cos.secdb.speedment.secdb.public_.user.User;
  import es.ual.acg.cos.ws.security.ResponseHeader;
  import es.ual.acg.cos.ws.security.Role;
  import es.ual.acg.cos.ws.security.Secured;
  import es.ual.acg.cos.ws.security.StatusCode;
  import es.ual.acg.cos.ws.security.WSSecurityException;
  
  @Secured
  @Provider
  @Priority(Priorities.AUTHENTICATION)
  public class AuthenticationFilter implements ContainerRequestFilter {
  
      @Override
      public void filter(ContainerRequestContext requestContext) throws     IOException {
  
      try {
  
          // Get the HTTP Authorization header from the request
  
          String authorizationHeader = requestContext.getHeaderString(HttpHeaders.AUTHORIZATION);
  ...
  }
  ...
  }
  </code></pre>
  
  <p>It seems to work in localhost, but when I deploy it in the server it does not work. I use CXF and JAX-RS.</p>
  
  <p>I have the following pom dependencies:</p>
  
  <pre><code>&lt;dependencies&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.apache.cxf&lt;/groupId&gt;
          &lt;artifactId&gt;cxf-rt-frontend-jaxws&lt;/artifactId&gt;
          &lt;version&gt;3.1.7&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.apache.cxf&lt;/groupId&gt;
          &lt;artifactId&gt;cxf-rt-transports-http&lt;/artifactId&gt;
          &lt;version&gt;3.1.7&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework&lt;/groupId&gt;
          &lt;artifactId&gt;spring-web&lt;/artifactId&gt;
          &lt;version&gt;4.3.2.RELEASE&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;junit&lt;/groupId&gt;
          &lt;artifactId&gt;junit&lt;/artifactId&gt;
          &lt;version&gt;4.12&lt;/version&gt;
          &lt;scope&gt;test&lt;/scope&gt;
      &lt;/dependency&gt;
  
      &lt;!-- Added --&gt;
  
      &lt;dependency&gt;
        &lt;groupId&gt;org.apache.cxf&lt;/groupId&gt;
        &lt;artifactId&gt;cxf-rt-frontend-jaxrs&lt;/artifactId&gt;
        &lt;version&gt;3.1.7&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;org.apache.cxf&lt;/groupId&gt;
          &lt;artifactId&gt;cxf-rt-rs-service-description&lt;/artifactId&gt;
          &lt;version&gt;3.1.7&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;javax&lt;/groupId&gt;
          &lt;artifactId&gt;javaee-api&lt;/artifactId&gt;
          &lt;version&gt;7.0&lt;/version&gt;
      &lt;/dependency&gt;
  
       &lt;!-- Added --&gt;
  
      &lt;!-- dependency&gt;
          &lt;groupId&gt;org.eclipse.birt.runtime&lt;/groupId&gt;
          &lt;artifactId&gt;org.eclipse.emf.ecore&lt;/artifactId&gt;
          &lt;version&gt;2.8.3.v20130125-0546&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.eclipse.birt.runtime&lt;/groupId&gt;
          &lt;artifactId&gt;org.eclipse.emf.common&lt;/artifactId&gt;
          &lt;version&gt;2.8.0.v20130125-0546&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.eclipse.birt.runtime&lt;/groupId&gt;
          &lt;artifactId&gt;org.eclipse.emf.ecore.xmi&lt;/artifactId&gt;
          &lt;version&gt;2.8.1.v20130125-0546&lt;/version&gt;
      &lt;/dependency--&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.eclipse.emf&lt;/groupId&gt;
          &lt;artifactId&gt;org.eclipse.emf.ecore&lt;/artifactId&gt;
          &lt;version&gt;2.11.1-v20150805-0538&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.eclipse.emf&lt;/groupId&gt;
          &lt;artifactId&gt;org.eclipse.emf.common&lt;/artifactId&gt;
          &lt;version&gt;2.11.0-v20150805-0538&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.eclipse.emf&lt;/groupId&gt;
          &lt;artifactId&gt;org.eclipse.emf.ecore.xmi&lt;/artifactId&gt;
          &lt;version&gt;2.11.1-v20150805-0538&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;org.jdom&lt;/groupId&gt;
          &lt;artifactId&gt;jdom&lt;/artifactId&gt;
          &lt;version&gt;2.0.2&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;net.sourceforge.jtds&lt;/groupId&gt;
          &lt;artifactId&gt;jtds&lt;/artifactId&gt;
          &lt;version&gt;1.3.1&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;org.hibernate&lt;/groupId&gt;
          &lt;artifactId&gt;hibernate-core&lt;/artifactId&gt;
          &lt;!--version&gt;4.1.0.Final&lt;/version--&gt;
          &lt;!--version&gt;5.2.1.Final&lt;/version--&gt;
          &lt;version&gt;4.1.0.Final&lt;/version&gt;
          &lt;!-- 
          &lt;exclusions&gt;
              &lt;exclusion&gt;
                  &lt;groupId&gt;org.jboss.logging&lt;/groupId&gt;
                  &lt;artifactId&gt;jboss-logging&lt;/artifactId&gt;
              &lt;/exclusion&gt;
          &lt;/exclusions&gt;
          --&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;org.hibernate&lt;/groupId&gt;
          &lt;artifactId&gt;hibernate-c3p0&lt;/artifactId&gt;
          &lt;!--version&gt;4.1.0.Final&lt;/version--&gt;
          &lt;!--version&gt;5.2.1.Final&lt;/version--&gt;
          &lt;version&gt;4.1.0.Final&lt;/version&gt;
          &lt;!-- 
          &lt;exclusions&gt;
              &lt;exclusion&gt;
                  &lt;groupId&gt;org.jboss.logging&lt;/groupId&gt;
                  &lt;artifactId&gt;jboss-logging&lt;/artifactId&gt;
              &lt;/exclusion&gt;
          &lt;/exclusions&gt;
           --&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;org.eclipse.emf&lt;/groupId&gt;
          &lt;artifactId&gt;org.eclipse.emf.teneo.hibernate&lt;/artifactId&gt;
          &lt;version&gt;2.1.0-v201501071531&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;org.eclipse.persistence&lt;/groupId&gt;
          &lt;artifactId&gt;javax.persistence&lt;/artifactId&gt;
          &lt;version&gt;2.1.1&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;org.eclipse.emf&lt;/groupId&gt;
          &lt;artifactId&gt;org.eclipse.emf.teneo&lt;/artifactId&gt;
          &lt;version&gt;2.1.0-v201501071531&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.eclipse.emf&lt;/groupId&gt;
          &lt;artifactId&gt;org.eclipse.emf.teneo.hibernate.mapper&lt;/artifactId&gt;
          &lt;version&gt;2.1.0-v201501071531&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.eclipse.emf&lt;/groupId&gt;
          &lt;artifactId&gt;org.eclipse.emf.teneo.annotations&lt;/artifactId&gt;
          &lt;version&gt;2.1.0-v201501071531&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;org.postgresql&lt;/groupId&gt;
          &lt;artifactId&gt;postgresql&lt;/artifactId&gt;
          &lt;version&gt;9.3-1102-jdbc41&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;org.apache.wookie&lt;/groupId&gt;
          &lt;artifactId&gt;wookie-java-connector&lt;/artifactId&gt;
          &lt;version&gt;1.0.0&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;com.sun.jersey&lt;/groupId&gt;
          &lt;artifactId&gt;jersey-client&lt;/artifactId&gt;
          &lt;version&gt;1.18&lt;/version&gt;
      &lt;/dependency&gt;   
  
      &lt;!--dependency&gt;
          &lt;groupId&gt;org.glassfish.jersey.core&lt;/groupId&gt;
          &lt;artifactId&gt;jersey-client&lt;/artifactId&gt;
          &lt;version&gt;2.23.1&lt;/version&gt;
      &lt;/dependency--&gt; 
  
      &lt;dependency&gt;
          &lt;groupId&gt;org.apache.httpcomponents&lt;/groupId&gt;
          &lt;artifactId&gt;httpclient&lt;/artifactId&gt;
          &lt;version&gt;4.5.2&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;xerces&lt;/groupId&gt;
          &lt;artifactId&gt;xercesImpl&lt;/artifactId&gt;
          &lt;version&gt;2.11.0&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;!--dependency&gt;
          &lt;groupId&gt;soa-model&lt;/groupId&gt;
          &lt;artifactId&gt;soa-model-core&lt;/artifactId&gt;
          &lt;version&gt;1.4.1.4&lt;/version&gt;
      &lt;/dependency--&gt;
  
      &lt;!--dependency&gt;
          &lt;groupId&gt;soa-model&lt;/groupId&gt;
          &lt;artifactId&gt;soa-model-core&lt;/artifactId&gt;
          &lt;version&gt;1.4.1.4&lt;/version&gt;
          &lt;systemPath&gt;${project.basedir}/src/main/webapp/WEB-INF/lib/soa-model-core-1.4.1.4.jar&lt;/systemPath&gt;
          &lt;scope&gt;system&lt;/scope&gt;
      &lt;/dependency--&gt;
  
      &lt;!--dependency&gt;
          &lt;groupId&gt;soa-model&lt;/groupId&gt;
          &lt;artifactId&gt;soa-model-distribution&lt;/artifactId&gt;
          &lt;version&gt;1.4.1.4&lt;/version&gt;
          &lt;systemPath&gt;${project.basedir}/src/main/webapp/WEB-INF/lib/soa-model-distribution-1.4.1.4.jar&lt;/systemPath&gt;
          &lt;scope&gt;system&lt;/scope&gt;
      &lt;/dependency--&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;org.codehaus.groovy&lt;/groupId&gt;
          &lt;artifactId&gt;groovy-all&lt;/artifactId&gt;
          &lt;version&gt;2.4.7&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;mysql&lt;/groupId&gt;
          &lt;artifactId&gt;mysql-connector-java&lt;/artifactId&gt;
          &lt;version&gt;5.1.30&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;!--dependency&gt;
          &lt;groupId&gt; org.apache.cassandra&lt;/groupId&gt;
          &lt;artifactId&gt;cassandra-all&lt;/artifactId&gt;
          &lt;version&gt;0.8.1&lt;/version&gt;
  
          &lt;exclusions&gt;
              &lt;exclusion&gt; 
                  &lt;groupId&gt;org.slf4j&lt;/groupId&gt;
                  &lt;artifactId&gt;slf4j-log4j12&lt;/artifactId&gt;
              &lt;/exclusion&gt;
              &lt;exclusion&gt; 
                  &lt;groupId&gt;log4j&lt;/groupId&gt;
                  &lt;artifactId&gt;log4j&lt;/artifactId&gt;
              &lt;/exclusion&gt;
          &lt;/exclusions&gt; 
  
      &lt;/dependency--&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;org.apache.axis&lt;/groupId&gt;
          &lt;artifactId&gt;axis&lt;/artifactId&gt;
          &lt;version&gt;1.4&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;commons-discovery&lt;/groupId&gt;
          &lt;artifactId&gt;commons-discovery&lt;/artifactId&gt;
          &lt;version&gt;0.5&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;org.apache.cxf&lt;/groupId&gt;
          &lt;artifactId&gt;cxf-rt-rs-extension-providers&lt;/artifactId&gt;
          &lt;version&gt;3.1.7&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;org.codehaus.jettison&lt;/groupId&gt;
          &lt;artifactId&gt;jettison&lt;/artifactId&gt;
          &lt;version&gt;1.3.8&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;org.apache.commons&lt;/groupId&gt;
          &lt;artifactId&gt;commons-lang3&lt;/artifactId&gt;
          &lt;version&gt;3.4&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;org.apache.commons&lt;/groupId&gt;
          &lt;artifactId&gt;commons-collections4&lt;/artifactId&gt;
          &lt;version&gt;4.1&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;com.predic8&lt;/groupId&gt;
          &lt;artifactId&gt;soa-model-core&lt;/artifactId&gt;
          &lt;version&gt;1.5.4&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;org.hibernate&lt;/groupId&gt;
          &lt;artifactId&gt;hibernate-ehcache&lt;/artifactId&gt;
          &lt;!--version&gt;4.1.0.Final&lt;/version--&gt;
          &lt;!--version&gt;5.2.1.Final&lt;/version--&gt;
          &lt;version&gt;4.1.0.Final&lt;/version&gt;
          &lt;!-- 
          &lt;exclusions&gt;
              &lt;exclusion&gt;
                  &lt;groupId&gt;org.jboss.logging&lt;/groupId&gt;
                  &lt;artifactId&gt;jboss-logging&lt;/artifactId&gt; 
              &lt;/exclusion&gt;
          &lt;/exclusions&gt;
          --&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;com.google.code.gson&lt;/groupId&gt;
          &lt;artifactId&gt;gson&lt;/artifactId&gt;
          &lt;version&gt;2.7&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;com.fasterxml.jackson.jaxrs&lt;/groupId&gt;
          &lt;artifactId&gt;jackson-jaxrs-json-provider&lt;/artifactId&gt;
          &lt;version&gt;2.8.9&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;!-- Added --&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;com.speedment&lt;/groupId&gt;
          &lt;artifactId&gt;runtime&lt;/artifactId&gt;
          &lt;version&gt;3.0.10&lt;/version&gt;
          &lt;type&gt;pom&lt;/type&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;org.apache.cxf&lt;/groupId&gt;
          &lt;artifactId&gt;cxf-rt-rs-service-description-swagger&lt;/artifactId&gt;
          &lt;version&gt;3.1.11&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;!-- Added --&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;org.apache.cxf&lt;/groupId&gt;
          &lt;artifactId&gt;cxf-rt-rs-client&lt;/artifactId&gt;
          &lt;version&gt;3.1.7&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;javax.servlet&lt;/groupId&gt;
          &lt;artifactId&gt;javax.servlet-api&lt;/artifactId&gt;
          &lt;version&gt;3.1.0&lt;/version&gt;
          &lt;scope&gt;provided&lt;/scope&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;org.apache.logging.log4j&lt;/groupId&gt;
          &lt;artifactId&gt;log4j-api&lt;/artifactId&gt;
          &lt;version&gt;2.9.0&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;org.apache.logging.log4j&lt;/groupId&gt;
          &lt;artifactId&gt;log4j-core&lt;/artifactId&gt;
          &lt;version&gt;2.9.0&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;org.eclipse.persistence&lt;/groupId&gt;
          &lt;artifactId&gt;org.eclipse.persistence.moxy&lt;/artifactId&gt;
          &lt;version&gt;2.7.0&lt;/version&gt;
      &lt;/dependency&gt;
  
  &lt;/dependencies&gt;
  </code></pre>
  
  <p>I am not sure why it works at localhost and it does not work in server side. At first I thought the problem could be related to web services relative path. But I strongly believe it is a version problem.</p>