title: I am getting a HTTP Status 500 - Servlet.init() for servlet HelloWorld threw exception
body: <p>Looked int other posts of "Servlet.init() for servlet " didnt help.
   This is not a Maven or Gradle, so no pom.This is a plain simple spring project, which I am still struggling with. Below the snippets is the actuall error.</p>
  
  <p>Hellocontroller.java.</p>
  
  <pre><code>package controller;
  
  import java.util.HashMap;
  import java.util.Map;
  
  import javax.servlet.http.HttpServletRequest;
  import javax.servlet.http.HttpServletResponse;
  
  import org.springframework.web.servlet.ModelAndView;
  import org.springframework.web.servlet.mvc.Controller;
  import org.springframework.web.servlet.*;
  
  //import com.sun.javafx.collections.MappingChange.Map;
  
  public class Hellocontroller implements Controller {
  
      @Override
      public ModelAndView handleRequest(HttpServletRequest req,
              HttpServletResponse res) throws Exception {
  
             String name = req.getParameter("name");
  
             Map m = new HashMap();
             m.put("msg", "Hello ...."+name);                             
  
             ModelAndView mav =new ModelAndView("success",m);
  
          return mav;
      }
  
  }
  </code></pre>
  
  <p>HelloWorld-servlet.xml</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;beans xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xmlns:context="http://www.springframework.org/schema/context" xmlns="http://www.springframework.org/schema/beans"
      xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
          http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd"&gt;
  
  
  
      &lt;bean name="./hello.ds" class="controller.Hellocontroller"&gt;
      &lt;/bean&gt;
  
      &lt;bean class="org.springframework.web.servlet.InternalViewResolver"&gt;
          &lt;property name="prefix" value="/" /&gt;
          &lt;property name="suffix" value=".jsp" /&gt;
      &lt;/bean&gt;
  
  &lt;/beans&gt;
  </code></pre>
  
  <p>web.xml</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;web-app version="3.0" xmlns="http://java.sun.com/xml/ns/javaee"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"&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;HelloWorld&lt;/servlet-name&gt;
          &lt;servlet-class&gt;org.springframework.web.servlet.DispatcherServlet&lt;/servlet-class&gt;
  
      &lt;/servlet&gt;
  
  
      &lt;servlet-mapping&gt;
          &lt;servlet-name&gt;HelloWorld&lt;/servlet-name&gt;
          &lt;url-pattern&gt;*.ds&lt;/url-pattern&gt;
      &lt;/servlet-mapping&gt;
  &lt;/web-app&gt;
  </code></pre>
  
  <p>success.jsp</p>
  
  <pre><code>${msg}
  </code></pre>
  
  <p>index.jsp</p>
  
  <pre><code>&lt;h1&gt;HelloWorld&lt;/h1&gt;
  
  &lt;form action ="./hello.ds"&gt;
  
  NAME:&lt;input type = "text" name="name"&gt;
  
  SUBMIT&lt;input type = "submit" value="sayHello"&gt;
  
  
  &lt;/form&gt;
  </code></pre>
  
  <p>Errors:</p>
  
  <pre><code>type Exception report
  
  message Servlet.init() for servlet HelloWorld threw exception
  
  description The server encountered an internal error that prevented it from fulfilling this request.
  </code></pre>
  
  <p>exception </p>
  
  <pre><code>javax.servlet.ServletException: Servlet.init() for servlet HelloWorld threw exception
      org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501
  
  
  root cause 
  
  org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [org.springframework.web.servlet.InternalViewResolver] for bean with name 'org.springframework.web.servlet.InternalViewResolver#0' defined in ServletContext resource [/WEB-INF/HelloWorld-servlet.xml]; nested exception is java.lang.ClassNotFoundException: org.springframework.web.servlet.InternalViewResolver
      org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1208)
      org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.predictBeanType(AbstractAutowireCapableBeanFactory.java:570)
      org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:1277
  </code></pre>