title: 500 Internal server error on apache tomcat server
body: <p>i have a <code>war</code> file and i deployed it on my first server. every thing is okay there.
  you can test it on <a href="http://185.126.201.83:10808/crmapi/rest/v1/authentication/hi" rel="nofollow">http://185.126.201.83:10808/crmapi/rest/v1/authentication/hi</a>
  (port is different because it is behind a firewall)
  but in my new server i get below error and everything are same in both server. what is wrong?
  you can test it on : <a href="http://185.21.76.71:8080/crmapi/rest/v1/authentication/hi" rel="nofollow">http://185.21.76.71:8080/crmapi/rest/v1/authentication/hi</a></p>
  
  <pre><code>type Exception report
  
  message Servlet.init() for servlet com.crmapi.services.ApplicationConfig threw exception
  
  description The server encountered an internal error that prevented it from fulfilling this request.
  
  exception
  
  javax.servlet.ServletException: Servlet.init() for servlet com.crmapi.services.ApplicationConfig threw exception
      org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
      org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
      org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:616)
      org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:528)
      org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1099)
      org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:670)
      org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1520)
      org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1476)
      java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
      java.lang.Thread.run(Thread.java:745)
  root cause
  
  java.lang.NoSuchMethodError: javax.ws.rs.core.Application.getProperties()Ljava/util/Map;
      org.glassfish.jersey.server.ApplicationHandler.&lt;init&gt;(ApplicationHandler.java:309)
      org.glassfish.jersey.servlet.WebComponent.&lt;init&gt;(WebComponent.java:315)
      org.glassfish.jersey.servlet.ServletContainer.init(ServletContainer.java:170)
      org.glassfish.jersey.servlet.ServletContainer.init(ServletContainer.java:358)
      javax.servlet.GenericServlet.init(GenericServlet.java:158)
      org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
      org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
      org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:616)
      org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:528)
      org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1099)
      org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:670)
      org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1520)
      org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1476)
      java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
      java.lang.Thread.run(Thread.java:745)
  note The full stack trace of the root cause is available in the Apache Tomcat/8.0.36 logs.
  </code></pre>
  
  <p>ubuntu 16.04 Server x64
  and Apache Tomcat/8.0.36    </p>