# Getting a 404 for the callback endpoint of the Java quickstart

**URL:** <https://community.auth0.com/t/getting-a-404-for-the-callback-endpoint-of-the-java-quickstart/7714>\
**Category:** Get Help\
**Tags:** quickstart\
**Created:** [August 1, 2017, 10:02pm UTC](https://community.auth0.com/t/getting-a-404-for-the-callback-endpoint-of-the-java-quickstart/7714 "2017-08-01T22:02:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![slatz](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@slatz](https://community.auth0.com/u/slatz)\
**Post date:** [August 1, 2017, 10:02pm UTC](https://community.auth0.com/t/getting-a-404-for-the-callback-endpoint-of-the-java-quickstart/7714/1 "2017-08-01T22:02:33Z")

</div>

I’ve configured the Java sample app just as directed in its documentation. I have a user and have created a a username-password-authentication connection associated with the only client I have defined. I have tested that connection with one of the users I have defined and gotten the success display.

When I try to run the Java sample app with URL `localhost:8080/portal/home`, I get the login prompt, I log in and then get the 404 Not Found error for the callback at `localhost:8080/callback`.

I go to logs and see that the login itself was successful. What am I doing wrong?

---

<div class="post-metadata">

**Author:** ![jmangelo](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jmangelo/32/7923_2.png) [@jmangelo](https://community.auth0.com/u/jmangelo)\
**Post date:** [August 3, 2017, 4:53pm UTC](https://community.auth0.com/t/getting-a-404-for-the-callback-endpoint-of-the-java-quickstart/7714/2 "2017-08-03T16:53:25Z")

</div>

I checked with the latest version of the [quickstart](https://auth0.com/docs/quickstart/webapp/java/01-login) and had no errors; the `/callback` endpoint was executed successfully. I would recommend redoing the steps just to be sure if nothing was missed and also check if there are any relevant information presented when you start the application service that might point into the root cause. In particular, the `/callback` route is implemented by `CallbackServlet.java` so check **there’s nothing wrong with that file and that it’s not missing** as that would indeed cause a 404.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [March 2, 2018, 5:55am UTC](https://community.auth0.com/t/getting-a-404-for-the-callback-endpoint-of-the-java-quickstart/7714/3 "2018-03-02T05:55:42Z")

</div>


