<p>I downloaded a couple of webapps and placed them in my /webapps folder.
Some of them I could open by going to <code>http://localhost:8080/app1</code> and it would open.
However, some others I would do the exact same thing and go to <code>http://localhost:8080/app2</code> and it will display "HTTP Status 404 - /app2/", even though I am sure it is there.  I've checked that it contains a WEB-INF folder just like app1, and I've even restarted Tomcat to be sure.</p>

<p>My question is: is there anything (perhaps in the web.xml file) that specifies what the URL has to be to start the webapp? Or is it simply just <code>http://localhost:8080/&lt;folder name&gt;</code> ?</p>

<p>P.S. If you want to know exactly what app1 and app2 I am refering to:
app1 (works) = <a href="http://assets.devx.com/sourcecode/11237.zip" rel="nofollow noreferrer">http://assets.devx.com/sourcecode/11237.zip</a>
app2 (doesn't work) = <a href="http://www.laliluna.de/download/eclipse-spring-jdbc-tutorial.zip" rel="nofollow noreferrer">http://www.laliluna.de/download/eclipse-spring-jdbc-tutorial.zip</a></p>

<p>I've tried a few others as well, some work, some don't.  I'm just wondering if I'm missing something.</p>

[{'answer_id': 53422, 'author': 'Tony BenBrahim', 'author_id': 80075, 'author_profile': 'https://Stackoverflow.com/users/80075', 'pm_score': 2, 'selected': False, 'text': '<p>The second requires the spring framework. The only runnable things I could find were a client in <code>eclipse-spring-jdbc-tutorial.zip\\SpringJdbc\\src\\test\\de\\laliluna\\library\\TestClient.java</code> and one in <code>eclipse-spring-jdbc-tutorial.zip\\SpringJdbc\\src\\de\\laliluna\\library\\sample\\MyApplication.java</code>. If you open it in eclipse (it is an eclipse project), and compile, provided the Spring framework is installed, you should be able to run both.</p>\n'}, {'answer_id': 53442, 'author': 'Casey Watson', 'author_id': 4682, 'author_profile': 'https://Stackoverflow.com/users/4682', 'pm_score': 3, 'selected': False, 'text': '<p>I usually debug this by going the the manager page and making sure that all of the contexts are deployed (<a href="http://localhost:8080/manager/html" rel="noreferrer">http://localhost:8080/manager/html</a>). </p>\n\n<p>It sounds like app2 has not been deployed properly or is not starting up because of some other error.</p>\n\n<p>I would look at the logs. There may be a bunch of information in there but usually it explains what is broken.</p>\n'}, {'answer_id': 56312, 'author': 'John Meagher', 'author_id': 3535, 'author_profile': 'https://Stackoverflow.com/users/3535', 'pm_score': 2, 'selected': False, 'text': '<p>The first zip file you mention has a <code>.war</code> file as part of the zip.  The second one is just the source code and it needs to be built into a <code>.war</code> file.  </p>\n\n<p>It looks like it is setup to have that done in Eclipse.  Try the <code>File&gt;&gt;Export</code> option and select War file as the export type.  </p>\n'}, {'answer_id': 73893, 'author': 'enricopulatzo', 'author_id': 9883, 'author_profile': 'https://Stackoverflow.com/users/9883', 'pm_score': 0, 'selected': False, 'text': "<p>Are you familiar with log4j?  Spring puts a lot of often-useful information into the logs created via log4j.  When I have a SpringMVC application that won't startup correctly or otherwise isn't running I check my log4j and potentially turn up the Spring log level to INFO or even DEBUG.</p>\n"}, {'answer_id': 85197, 'author': 'Philip Helger', 'author_id': 15254, 'author_profile': 'https://Stackoverflow.com/users/15254', 'pm_score': -1, 'selected': False, 'text': '<p>If "/" is not accessible it means that there is no "index.html", "index.jsp" or whatever is defined in the welcome-files list of the web.xml\nAlso no Servlet-Mapping for the context ROOT directory is present.\nCheck the web.xml for Servlet-Mappings or try to figure out the name of the jsp/html /... file being in the context root</p>\n'}, {'answer_id': 138198, 'author': 'Tom De Leu', 'author_id': 22263, 'author_profile': 'https://Stackoverflow.com/users/22263', 'pm_score': 2, 'selected': False, 'text': '<p>The second app (the directory named WebRoot) can also be deployed correctly but you get a 404 by going to it because there is not an "index.jsp" or "index.html" file in the root directory.</p>\n\n<p>Try putting a file there with any of those names, and the 404 is gone.</p>\n\n<p>A servlet mapping in the web.xml is not strictly necessary for this to work. </p>\n'}]
['https://Stackoverflow.com/questions/53387', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/-1/']