Open ayoubfalah opened 7 years ago
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:
/
httpServletRequest.getLocalPort()
"http://" + httpServletRequest.getLocalName() + ":" + httpServletRequest.getLocalPort() + httpServletRequest.getContextPath() + "/webresources/movie/"
@ayoubfalah Thank you! This was driving me crazy!
The following URI leads to HTTP 404 Code:
That is because of the
/
afterhttpServletRequest.getLocalPort()
so the URI should be changed to: