javaee7-hol
javaee7-hol copied to clipboard
HTTP 404 Not Found
The following URI leads to HTTP 404 Code:
"http://" + httpServletRequest.getLocalName() + ":" + httpServletRequest.getLocalPort() + "/" +
httpServletRequest.getContextPath() + "/webresources/movie/"
That is because of the /
after httpServletRequest.getLocalPort()
so the URI should be changed to:
"http://" + httpServletRequest.getLocalName() + ":" + httpServletRequest.getLocalPort() +
httpServletRequest.getContextPath() + "/webresources/movie/"
@ayoubfalah Thank you! This was driving me crazy!