javaee7-hol icon indicating copy to clipboard operation
javaee7-hol copied to clipboard

HTTP 404 Not Found

Open ayoubfalah opened this issue 8 years ago • 1 comments

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 avatar Dec 06 '16 16:12 ayoubfalah

@ayoubfalah Thank you! This was driving me crazy!

kabasakalis avatar Nov 06 '17 09:11 kabasakalis