I am using ubuntu-16.04 and have been trying to work with Tomcat. My version is: Apache Tomcat/8.0.36.
Please, help me about it.
You have a couple of options:
Remove the out-of-the-box
ROOT/ directory from tomcat and rename your war file to
ROOT.war before deploying it.
Deploy your war as (from your example)
war_name.war and configure the context root in
conf/server.xml to use your war file :
<Context path="" docBase="war_name" debug="0" reloadable="true"></Context>
The first one is easier, but a little more kludgy. The second one is probably the more elegant way to do it.
Also, 127.0.0.1 should resolve to localhost by default. If it does not, you can add an entry to
/etc/hosts as root.