title: TomEE: javax.servlet.ServletException: java.lang.NoClassDefFoundError: Could not initialize class javax.ws.rs.core.UriBuilder
body: <p>I am using TomEE 7.0.62 to host a JSP web application. </p>
  
  <p>The server seems to be running perfectly: I used the manager webapp to deploy my own web application, and the home page of the web application displays perfectly. </p>
  
  <p>However, attempting to navigate to other JSP pages produces the following stack trace:</p>
  
  <pre><code>javax.servlet.ServletException: java.lang.NoClassDefFoundError: Could not initialize class javax.ws.rs.core.UriBuilder
  org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:916)
  org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:845)
  org.apache.jsp.sprint_002dworkload_jsp._jspService(sprint_002dworkload_jsp.java:117)
  org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
  javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
  org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:439)
  org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:395)
  org.apache.jasper.servlet.JspServlet.service(JspServlet.java:339)
  javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
  org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
  
  root cause
  
  java.lang.NoClassDefFoundError: Could not initialize class javax.ws.rs.core.UriBuilder
  com.atlassian.jira.rest.client.internal.async.AsynchronousJiraRestClient.&lt;init&gt;(AsynchronousJiraRestClient.java:45)
  com.atlassian.jira.rest.client.internal.async.AsynchronousJiraRestClientFactory.create(AsynchronousJiraRestClientFactory.java:37)
  com.atlassian.jira.rest.client.internal.async.AsynchronousJiraRestClientFactory.createWithBasicHttpAuthentication(AsynchronousJiraRestClientFactory.java:42)
  com.my_org.jira.reports.JiraReport.createRestClient(JiraReport.java:38)
  com.my_org.jira.reports.JiraReport.run(JiraReport.java:42)
  org.apache.jsp.sprint_002dworkload_jsp._jspService(sprint_002dworkload_jsp.java:98)
  org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
  javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
  org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:439)
  org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:395)
  org.apache.jasper.servlet.JspServlet.service(JspServlet.java:339)
  javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
  org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
  </code></pre>
  
  <p>I am not sure where to start debugging...this seems to be a simple configuration error, but I don't know how to resolve the package dependencies.</p>