Hello, I am having trouble running your simple helloworld spring app from chapter 12. I downloaded your code for the third edition from your repository, and I followed all instructions in Appendix B to the letter, and was even able to run the bankapp program from Chapter 1. However, when I try to run your helloworld app from Chapter 12, I get no errors, but a 404 error saying the requested resource isn't found.
However, I installed Tomcat server 8.0.39 according to Appendix B, and I was able to verify that it was installed correctly as I can certainly go to the Tomcat homepage,
http://localhost:8080, from Eclipse. I also verified that Maven was installed correctly and that it executes the eclipse:eclipse goal by using mvn eclipse:eclipse. I also configured the M2_REPO classpath variable in the Eclipse IDE. The server starts without any problems, the helloworld app builds with no errors in Maven, and I am able to open the helloworld project in Eclipse. Everything works, except when I try to run it as described in the book, by right-clicking, going to Run As, and clicking Run on Server. That's when I get the 404 error.
Some extra things that I looked up and did are right-clicking and going to the properties of the helloworld app, and setting the Targeted Runtime to Apache Tomcat v8.0. That didn't help. I also looked up a lot of people saying to go to the properties of the server and click on the "Switch Location" button, followed by making sure the Server Locations had the "Use Tomcat Installation" radio button selected. That didn't help. I cleaned and ran the server and the project, as well as restarting the server a bunch of times. Again, didn't help.
What am I missing here? I'm assuming your code is correct, I haven't touched any of it, and I've followed all of your instructions in Appendix B, plus lots more I found online, but nothing seems to be working. What am I doing wrong/not doing?
I am running everything on a Windows 7 64-bit machine, using Eclipse Neon, with a Tomcat Server 8.0.39 running jdk_1.8.0_102.
I'd really appreciate some help on this as I can't run any examples in the book or make any of my own without Spring working with a server :/
Thanks,
Javid