javaee-samples / javaee7-hol

Java EE 7 Hands-on Lab
http://htmlpreview.github.io/?https://github.com/javaee-samples/javaee7-hol/blob/master/docs/javaee7-hol.html
Other
136 stars 92 forks source link

HTTP 404 Not Found #23

Open ayoubfalah opened 7 years ago

ayoubfalah commented 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:

"http://" + httpServletRequest.getLocalName() + ":" + httpServletRequest.getLocalPort() +
                httpServletRequest.getContextPath() + "/webresources/movie/"
kabasakalis commented 6 years ago

@ayoubfalah Thank you! This was driving me crazy!