I have an embedded Jetty application where Jetty is providing 2 things:
- Serving some HTML/JS files
- Exposing a REST API that my Java Servlet is supporting
The JS files are making REST calls to the servlet. Everything works beautifully.
What I've noticed is that after about a week of running, the API still functions, but if I try to get an HTML file I get the following:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<title>Error 404 Not Found</title>
</head>
<body><h2>HTTP ERROR 404</h2>
<p>Problem accessing /web/. Reason:
<pre> Not Found</pre></p><hr><a href="http://eclipse.org/jetty">Powered by Jetty:// 9.4.4.v20170414</a><hr/>
</body>
</html>
What could be going wrong here?
Not sure if this is meaningful, but I'm deploying this in an Amazon AWS EC2 instance. I can't imagine that EC2 is doing somethig to make the /web directory disappear.