title: Spring+Tomcat error message
body: <p>I have requested some help about a web application in another message. I went forward trying to fix the errors that occured. Now the following is the new error message and the new state of the configuration files. Please, may you give me some hints to fix this error? Thank you.</p>
  
  <p>Below is a picture repsenting appliation I'm.</p>
  
  <p>-Error message:</p>
  
  <pre><code>nov. 24, 2011 5:18:56 PM org.apache.catalina.core.AprLifecycleListener init
  INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jre7\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:/Program Files/Java/jre7/bin/client;C:/Program Files/Java/jre7/bin;C:/Program Files/Java/jre7/lib/i386;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\QuickTime\QTSystem\;C:\MinGW\bin\;C:\MinGW\MSYS\1.0\local\bin\;C:\MinGW\MSYS\1.0\bin\;c:\Program Files\Microsoft SQL Server\100\Tools\Binn\;c:\Program Files\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files\Eclipse\eclipse;;.
  nov. 24, 2011 5:18:56 PM org.apache.tomcat.util.digester.SetPropertiesRule begin
  WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:SpringMVC' did not find a matching property.
  nov. 24, 2011 5:18:56 PM org.apache.coyote.AbstractProtocol init
  INFO: Initializing ProtocolHandler ["http-bio-8080"]
  nov. 24, 2011 5:18:56 PM org.apache.coyote.AbstractProtocol init
  INFO: Initializing ProtocolHandler ["ajp-bio-8009"]
  nov. 24, 2011 5:18:56 PM org.apache.catalina.startup.Catalina load
  INFO: Initialization processed in 909 ms
  nov. 24, 2011 5:18:56 PM org.apache.catalina.core.StandardService startInternal
  INFO: Starting service Catalina
  nov. 24, 2011 5:18:56 PM org.apache.catalina.core.StandardEngine startInternal
  INFO: Starting Servlet Engine: Apache Tomcat/7.0.21
  nov. 24, 2011 5:18:57 PM org.apache.catalina.util.SessionIdGenerator createSecureRandom
  INFO: Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [547] milliseconds.
  nov. 24, 2011 5:18:58 PM org.apache.catalina.core.ApplicationContext log
  INFO: Initializing Spring root WebApplicationContext
  INFO  ContextLoader                   - Root WebApplicationContext: initialization started
  INFO  XmlWebApplicationContext        - Refreshing org.springframework.web.context.support.XmlWebApplicationContext@192c06d: display name [Root WebApplicationContext]; startup date [Thu Nov 24 17:18:58 EST 2011]; root of context hierarchy
  INFO  XmlBeanDefinitionReader         - Loading XML bean definitions from ServletContext resource [/WEB-INF/applicationContext.xml]
  INFO  XmlWebApplicationContext        - Bean factory for application context [org.springframework.web.context.support.XmlWebApplicationContext@192c06d]: org.springframework.beans.factory.support.DefaultListableBeanFactory@673ab2
  INFO  DefaultListableBeanFactory      - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@673ab2: defining beans [studentDao,jdbcTemplate,dataSource]; root of factory hierarchy
  INFO  DriverManagerDataSource         - Loaded JDBC driver: com.mysql.jdbc.Driver
  INFO  ContextLoader                   - Root WebApplicationContext: initialization completed in 522 ms
  nov. 24, 2011 5:18:58 PM org.apache.catalina.core.ApplicationContext log
  INFO: Initializing Spring FrameworkServlet 'springapp'
  INFO  DispatcherServlet               - FrameworkServlet 'springapp': initialization started
  INFO  XmlWebApplicationContext        - Refreshing org.springframework.web.context.support.XmlWebApplicationContext@30b982: display name [WebApplicationContext for namespace 'springapp-servlet']; startup date [Thu Nov 24 17:18:58 EST 2011]; parent: org.springframework.web.context.support.XmlWebApplicationContext@192c06d
  INFO  XmlBeanDefinitionReader         - Loading XML bean definitions from ServletContext resource [/WEB-INF/springapp-servlet.xml]
  INFO  XmlWebApplicationContext        - Bean factory for application context [org.springframework.web.context.support.XmlWebApplicationContext@30b982]: org.springframework.beans.factory.support.DefaultListableBeanFactory@8634b1
  INFO  DefaultListableBeanFactory      - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@8634b1: defining beans [messageSource,studentListController,studentCreateController,loggingInterceptor,simpleUrlMapping,viewResolver]; parent: org.springframework.beans.factory.support.DefaultListableBeanFactory@673ab2
  INFO  DispatcherServlet               - FrameworkServlet 'springapp': initialization completed in 220 ms
  nov. 24, 2011 5:18:59 PM org.apache.coyote.AbstractProtocol start
  INFO: Starting ProtocolHandler ["http-bio-8080"]
  nov. 24, 2011 5:18:59 PM org.apache.coyote.AbstractProtocol start
  INFO: Starting ProtocolHandler ["ajp-bio-8009"]
  nov. 24, 2011 5:18:59 PM org.apache.catalina.startup.Catalina start
  INFO: Server startup in 2347 ms
  WARN  PageNotFound                    - No mapping found for HTTP request with URI [/SpringMVC/] in DispatcherServlet with name 'springapp'
  </code></pre>
  
  <p>-web.xml file</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;SpringMVC&lt;/display-name&gt;
  
      &lt;!-- The parameter tells about the location of configuration XML. Usually
      all the data access beans and service layer beans are kept here. You can register
      more than one XML here. --&gt;
      &lt;context-param&gt;
          &lt;param-name&gt;contextConfigLocation&lt;/param-name&gt;
          &lt;param-value&gt;WEB-INF/applicationContext.xml&lt;/param-value&gt;
      &lt;/context-param&gt;
  
      &lt;!-- The listener is reponsible for building the spring container. It looks for
          all configuration XML as defined by parameter contextConfigLocation and also looks 
          for a configuration which is named as Dispatch Servlet name. In this case it will
          be named as springapp-servlet.xml --&gt;
      &lt;listener&gt;
          &lt;listener-class&gt;
              org.springframework.web.context.ContextLoaderListener
          &lt;/listener-class&gt;
      &lt;/listener&gt;
  
      &lt;!-- Dispatcher Servlet which traps all the request targeted for Spring MVC --&gt;
      &lt;servlet&gt;
          &lt;servlet-name&gt;springapp&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;!-- Mapping for the request. It can be anything --&gt;
      &lt;servlet-mapping&gt;
          &lt;servlet-name&gt;springapp&lt;/servlet-name&gt;
          &lt;url-pattern&gt;*.htm&lt;/url-pattern&gt;
      &lt;/servlet-mapping&gt;
  &lt;/web-app&gt;
  </code></pre>
  
  <p>-applicationContext.xml</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;beans xmlns="http://www.springframework.org/schema/beans"
  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-2.5.xsd"&gt;
  
  &lt;!-- The Dao class --&gt;
  &lt;bean id="studentDao" class="com.oyejava.springmvc.StudentJdbcDao"&gt;
      &lt;property name="simpleJdbcTemplate" ref="jdbcTemplate" /&gt;
  &lt;/bean&gt;
  
  &lt;!-- Template class to access JDBC code --&gt;
  &lt;bean id="jdbcTemplate"
      class="org.springframework.jdbc.core.simple.SimpleJdbcTemplate"&gt;
      &lt;constructor-arg ref="dataSource" /&gt;
  &lt;/bean&gt;
  
  &lt;!-- Configuration for the data source --&gt;
  &lt;bean id="dataSource"
      class="org.springframework.jdbc.datasource.DriverManagerDataSource" destroy-method="close"&gt;
      &lt;property name="driverClassName" value="com.mysql.jdbc.Driver" /&gt;
      &lt;!-- &lt;property name="driverClassName" value="org.hsqldb.jdbcDriver" /&gt;--&gt;
      &lt;property name="url" value="jdbc:mysql://localhost:3306" /&gt;
      &lt;!-- &lt;property name="url" value="jdbc:hsqldb:hsql://localhost" /&gt;--&gt;
      &lt;property name="username" value="root" /&gt;
      &lt;property name="password" value="" /&gt;
  &lt;/bean&gt;
  &lt;/beans&gt;
  </code></pre>
  
  <p>-springapp-servlet.xml</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;beans xmlns="http://www.springframework.org/schema/beans"
      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-2.5.xsd"&gt;
  
      &lt;bean id="messageSource"
          class="org.springframework.context.support.ResourceBundleMessageSource"&gt;
          &lt;property name="basename"&gt;
              &lt;value&gt;messages&lt;/value&gt;
          &lt;/property&gt;
      &lt;/bean&gt;
  
      &lt;bean id="studentListController"
          class="com.oyejava.springmvc.StudentListController"&gt;
          &lt;property name="studentDao" ref="studentDao" /&gt;
      &lt;/bean&gt;
  
      &lt;!-- command class and command name are used to retrieve and set the 
          value as name value pair in HttpRequest and Response. The form view
          tells that when the request comes for this Controller than which
          form to display in which user input can be taken. --&gt;
  
      &lt;bean id="studentCreateController"
          class="com.oyejava.springmvc.StudentCreateController"&gt;
          &lt;property name="studentDao" ref="studentDao" /&gt;
          &lt;property name="formView" value="createStudent" /&gt;
          &lt;property name="commandName" value="student" /&gt;
          &lt;property name="commandClass" value="com.oyejava.springmvc.Student" /&gt;
          &lt;property name="validator"&gt;
              &lt;bean class="com.oyejava.springmvc.StudentValidator" /&gt;
          &lt;/property&gt;
      &lt;/bean&gt;
  
      &lt;bean id="loggingInterceptor"
          class="com.oyejava.springmvc.LoggingInterceptor" /&gt;
  
      &lt;bean id="simpleUrlMapping"
          class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping"&gt;
          &lt;property name="interceptors"&gt;
              &lt;list&gt;
                  &lt;ref local="loggingInterceptor" /&gt;
              &lt;/list&gt;
          &lt;/property&gt;
          &lt;property name="mappings"&gt;
              &lt;props&gt;
                  &lt;prop key="/studentList.htm"&gt;
                      studentListController
                  &lt;/prop&gt;
                  &lt;prop key="/createStudent.htm"&gt;
                      studentCreateController
                  &lt;/prop&gt;
              &lt;/props&gt;
          &lt;/property&gt;
      &lt;/bean&gt;
  
      &lt;bean id="viewResolver"
          class="org.springframework.web.servlet.view.InternalResourceViewResolver"&gt;
          &lt;property name="prefix"&gt;
              &lt;value&gt;/WEB-INF/jsp/&lt;/value&gt;
          &lt;/property&gt;
          &lt;property name="suffix"&gt;
              &lt;value&gt;.jsp&lt;/value&gt;
          &lt;/property&gt;
      &lt;/bean&gt;
  
  &lt;/beans&gt;
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/sUdxW.jpg" alt="enter image description here"></p>