title: Error with simple spring MVC using IntelliJ with Tomcat
body: <p>Using IntelliJ 9, Tomcat 6, maven project (pom.xml based).</p>
  
  <p>Running the application returns the error, not sure if it is a tomcat deployment issue or not.</p>
  
  <p>Strange thing, when I hit the refresh button on the browser, I don't see any errors in IntelliJ's server output window.</p>
  
  <p>I have tomcat setup with intelliJ to use the war-exploded artifact.</p>
  
  <p>Does Tomcat just use the directory under my projects?</p>
  
  <p>Does it modify tomcat's server xml to do this?  Or is this does on the fly somehow?</p>
  
  <p>I want to know what files get run with tomcat runs, for some reason I'm getting a 404 at:</p>
  
  <pre><code>http://localhost:8080/
  </code></pre>
  
  <p>I just setup a simple Spring MVC application, I have a HomeController:</p>
  
  <pre><code>@Controller
  public class HomeController {
  
      @RequestMapping("/")
      public String Index() {
          return "hello, world";
      }
  }
  </code></pre>
  
  <p>web.xml:</p>
  
  <pre><code>&lt;servlet&gt;
      &lt;servlet-name&gt;mymvc&lt;/servlet-name&gt;
      &lt;servlet-class&gt;org.springframework.web.servlet.DispatcherServlet&lt;/servlet-class&gt;
  
       &lt;init-param&gt;
          &lt;param-name&gt;contextConfigLocation&lt;/param-name&gt;
          &lt;param-value&gt;/src/main/web/WEB-INF/spring/servlet-context.xml&lt;/param-value&gt;
      &lt;/init-param&gt;
      &lt;load-on-startup&gt;1&lt;/load-on-startup&gt;
  &lt;/servlet&gt;
  
  &lt;servlet-mapping&gt;
      &lt;servlet-name&gt;mymvc&lt;/servlet-name&gt;
      &lt;url-pattern&gt;/&lt;/url-pattern&gt;
  &lt;/servlet-mapping&gt;
  </code></pre>
  
  <p>servlet-context.xml</p>
  
  <pre><code>    &lt;context:component-scan base-package="com.debugging" /&gt;
  
      &lt;!-- Enables the Spring MVC @Controller programming model --&gt;
      &lt;mvc:annotation-driven /&gt;
  </code></pre>
  
  <p><b>Update</b></p>
  
  <p>My exploded war looks like:</p>
  
  <pre><code>/mymvc_war_exploded
  /mymvc_war_exploded/web-inf (it has classes folder and inside is my homecontroller.class)
  /mymvc_war_exploded/lib
  </code></pre>
  
  <p>I don't see my views folder, or my .xml files anywhere.</p>