1

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.

5
  • Do you mean you want to make your web application be the Tomcat default app?
    – quanta
    Aug 16, 2012 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. Aug 16, 2012 at 15:23
  • wiki.apache.org/tomcat/…
    – quanta
    Aug 16, 2012 at 15:36
  • Did you remove the existing directory called "ROOT" before dumping ROOT.war ? Aug 16, 2012 at 17:46
  • Yes, I removed the existing ROOT directory. Aug 17, 2012 at 13:03

1 Answer 1

1

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

1
  • 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. Aug 17, 2012 at 13:46

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .