First you need a copy of the Tomcat webapp server installed, which you can download as a ZIP file from tomcat.apache.org. Please note that depending on whether your JEE packages are using the old version packages such as javax.http.Servlet or the newer Jakarta EE packages, you'll need either Tomcat version 9 or lower (old packages) or Tomcat 10 or greater (jakarta.ee).
To install Tomcat, simply unzip it. To deploy your WAR, just copy it into the tomcat webapps directory.
Now start Tomcat: run the Tomcat bin\startup.bat command.
The correct URL for a WAR named AntTestProp would be 127.0.0.1:8080/AntTestProj/AddTwoNumbers.html - 124 is a mis-typed value. Instead of 127.0.0.1, you can also say localhost.
The secret of how to be miserable is to constantly expect things are going to happen the way that they are "supposed" to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there's being a willfully-blind idiot, which virtually guarantees it.
I don’t know what versions of JEE packages I am using, so I’m going for the latest version of Tomcat.
Indeed, I mistyped the url.
I put the file AntTestProj.war in C:\Dev\Apache Tomcat\apache-tomcat-10.0.23\webapps.
If I start up Tomcat and paste the url in the browser, I get the addition tool. However, if I try to add two values, I get
"HTTP Status 404 – Not Found
Type Status Report
Message The requested resource [/AntTestProj/AddTwoNumbers] is not available
Description The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.
So, I installed version 8.5.82 and followed the same steps. I ask the tool to add 3 and 5 and amazingly it returns 8.
So, apparently it does indeed work.
Thanks for your help.