Thank you I will check the documentation.
In the meantime I have found that on the heroku website,
following the git commands in the documentation for uploading,
The contents of the index.html file is served.
meanwhile
mvn jetty:run
localhost:8080
the contents of the servlet are served.
That is very strange !
Previously on the heroku website when I served index.jsp
there was an error message saying JSP is not configured.
Could this behaviour be an indication that somehow two different versions of jetty are running on different platforms.
<!-- index.html -->
<html><body>
<h2>Jersey RESTful Web Application!</h2>
<p><a href="" resource</a>
<p>Visit <a href="" href="http://jersey.java.net/" style="text-decoration-line:none;color:rgb(66,133,244)" rel="noreferrer noreferrer" target="_blank">http://jersey.java.net> Project Jersey website</a> more information on Jersey! </p>
<p>contents of index.html </p>
</body></html>
@WebServlet(name="indexServlet", urlPatterns={"index.html"})
public class IndexServlet extends HttpServlet {
private static final long serialVersionUID = 1L;
protected void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
response.setContentType("text/html");
PrintWriter out=response.getWriter();
out.print("<html><body>");
out.print("<h2>Jersey RESTful Web Application!</h2>");
out.print("<p><a href="" resource</a>");
out.print("<p>Visit <a href="" href="http://jersey.java.net/" style="text-decoration-line:none;color:rgb(66,133,244)" rel="noreferrer noreferrer" target="_blank">http://jersey.java.net> Project Jersey website</a> </p>");
out.print("more information on Jersey!");
out.print("<p> contents of servlet Indexservlet </p>");
out.print("</body></html>");
}
}