title: Getting error while printing hello world in spring MVC
body: <p>I am making simple hello world in spring using MVC taking help from this site 
  <a href="http://viralpatel.net/blogs/spring-3-mvc-create-hello-world-application-spring-3-mvc/" rel="nofollow">http://viralpatel.net/blogs/spring-3-mvc-create-hello-world-application-spring-3-mvc/</a></p>
  
  <p>But I am getting error .</p>
  
  <p>Here is my file :
  web.xml</p>
  
  <pre><code>   &lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xmlns="http://java.sun.com/xml/ns/javaee"
      xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
      xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
      id="WebApp_ID" version="2.5"&gt;
      &lt;display-name&gt;Spring3MVC&lt;/display-name&gt;
      &lt;welcome-file-list&gt;
          &lt;welcome-file&gt;index.jsp&lt;/welcome-file&gt;
      &lt;/welcome-file-list&gt;
  
      &lt;servlet&gt;
          &lt;servlet-name&gt;spring&lt;/servlet-name&gt;
          &lt;servlet-class&gt;
              org.springframework.web.servlet.DispatcherServlet
          &lt;/servlet-class&gt;
          &lt;load-on-startup&gt;1&lt;/load-on-startup&gt;
      &lt;/servlet&gt;
      &lt;servlet-mapping&gt;
      &lt;servlet-name&gt;spring&lt;/servlet-name&gt;
      &lt;url-pattern&gt;*&lt;/url-pattern&gt;
  &lt;/servlet-mapping&gt;
  &lt;/web-app&gt;
  </code></pre>
  
  <p><strong>spring-servlet.xml</strong></p>
  
  <pre><code>  &lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;beans xmlns="http://www.springframework.org/schema/beans"
      xmlns:context="http://www.springframework.org/schema/context"
      xmlns:mvc="http://www.springframework.org/schema/mvc" 
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="
          http://www.springframework.org/schema/beans     
          http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
          http://www.springframework.org/schema/context 
          http://www.springframework.org/schema/context/spring-context-3.0.xsd
          http://www.springframework.org/schema/mvc
          http://www.springframework.org/schema/mvc/spring-mvc-3.0.xsd"&gt;
  
  
      &lt;context:component-scan
          base-package="net.viralpatel.spring3.controller" /&gt;
          &lt;mvc:annotation-driven /&gt;
      &lt;bean id="viewResolver"
          class="org.springframework.web.servlet.view.UrlBasedViewResolver"&gt;
          &lt;property name="viewClass"
              value="org.springframework.web.servlet.view.JstlView" /&gt;
          &lt;property name="prefix" value="/WEB-INF/jsp/" /&gt;
          &lt;property name="suffix" value=".jsp" /&gt;
      &lt;/bean&gt;
  &lt;/beans&gt;
  </code></pre>
  
  <p>controller</p>
  
  <pre><code>@Controller
  public class HelloWorldController {
  
      @RequestMapping("/hello")
      public ModelAndView helloWorld() {
  
          String message = "Hello World, Spring 3.0!";
          System.out.println(message);
          return new ModelAndView("hello", "message", message);
      }
  
  }
  </code></pre>
  
  <p>I download the code with above url and run </p>
  
  <p><strong>http://<em>*</em>**</strong>:8080/Spring3MVC/hello**
  <strong>http://<em>*</em>**</strong>:8080/Spring3MVC/index**
  <strong>http://<em>*</em>**</strong>:8080/Spring3MVC/hello.jsp** in all i am getting this error</p>
  
  <p>getting error 
  <strong>he requested resource (/Spring3MVC) is not available.</strong></p>