I ran dpkg -l tomcat 7 | grep webapp to find the directory where to place my WAR file.

When I dumped my ROOT.war to this directory, the corresponding ROOT directory was populated (exploded is the term, I think).

Then, I restarted (stop, then start) tomcat.

However, I navigated to localhost on port 8080, but I had the same default Apache homepage.

Please advise.

  • Do you mean you want to make your web application be the Tomcat default app? – quanta Aug 16 '12 at 15:18
  • I just want to know how to view my webapp from Firefox. localhost on port 8080 doesn't work. I tried localhost/ROOT on port 8080 too, but that failed. – Kevin Meredith Aug 16 '12 at 15:23
  • wiki.apache.org/tomcat/… – quanta Aug 16 '12 at 15:36
  • Did you remove the existing directory called "ROOT" before dumping ROOT.war ? – David Levesque Aug 16 '12 at 17:46
  • Yes, I removed the existing ROOT directory. – Kevin Meredith Aug 17 '12 at 13:03

Generally, absent any other configuration, it would be http://localhost:8080/NAMEOFYOURWEBAPP

  • I browsed to localhost:8080 with my ROOT.war, and was able to view my Tomcat-hosted webapp. Yesterday I might've failed to run memcached. Since my app depends on it, then maybe that's why it did not start in Tomcat. – Kevin Meredith Aug 17 '12 at 13:46

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.