Visitar URL original
HTTP 404 Not Found · Issue #23 · javaee-samples/javaee7-hol · GitHub
The Wayback Machine - https://web.archive.org/web/20201030130445/https://github.com/javaee-samples/javaee7-hol/issues/23
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTTP 404 Not Found #23

Open
ayoubfalah opened this issue Dec 6, 2016 · 1 comment
Open

HTTP 404 Not Found #23

ayoubfalah opened this issue Dec 6, 2016 · 1 comment

Comments

@ayoubfalah
Copy link

@ayoubfalah ayoubfalah commented Dec 6, 2016

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
Copy link

@kabasakalis kabasakalis commented Nov 6, 2017

@ayoubfalah Thank you! This was driving me crazy!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.