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.
-Error message:
[code=java]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:\Win dows\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\Sys tem32\Wbem;C:\Windows\System32\WindowsPowerShell\v 1.0\;C:\Program Files\QuickTime\QTSystem\;C:\MinGW\bin\;C:\MinGW\M SYS\1.0\local\bin\;C:\MinGW\MSYS\1.0\bin\;c:\Progr am 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.XmlWebAppl icationContext@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.XmlWebAppl icationContext@192c06d]: org.springframework.beans.factory.support.DefaultL istableBeanFactory@673ab2
INFO DefaultListableBeanFactory - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultL istableBeanFactory@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.XmlWebAppl icationContext@30b982: display name [WebApplicationContext for namespace 'springapp-servlet']; startup date [Thu Nov 24 17:18:58 EST 2011]; parent: org.springframework.web.context.support.XmlWebAppl icationContext@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.XmlWebAppl icationContext@30b982]: org.springframework.beans.factory.support.DefaultL istableBeanFactory@8634b1
INFO DefaultListableBeanFactory - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultL istableBeanFactory@8634b1: defining beans [messageSource,studentListController,studentCreateC ontroller,loggingInterceptor,simpleUrlMapping,view Resolver]; parent: org.springframework.beans.factory.support.DefaultL istableBeanFactory@673ab2
INFO DispatcherServlet - FrameworkServlet 'springapp': initialization completed in 220 ms
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]
-web.xml file
<!-- 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. -->
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>WEB-INF/applicationContext.xml</param-value>
</context-param>
<listener>
<listener-class>
org.springframework.web.context.ContextLoaderListe ner
</listener-class>
</listener>
<!-- Dispatcher Servlet which traps all the request targeted for Spring MVC -->
<servlet>
<servlet-name>springapp</servlet-name>
<servlet-class>
org.springframework.web.servlet.DispatcherServlet
</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<!-- Mapping for the request. It can be anything -->
<servlet-mapping>
<servlet-name>springapp</servlet-name>
<url-pattern>*.htm</url-pattern>
</servlet-mapping>
</web-app>
<!-- The Dao class -->
<bean id="studentDao" class="com.oyejava.springmvc.StudentJdbcDao">
<property name="simpleJdbcTemplate" ref="jdbcTemplate" />
</bean>
<!-- Template class to access JDBC code -->
<bean id="jdbcTemplate"
class="org.springframework.jdbc.core.simple.Simple JdbcTemplate">
<constructor-arg ref="dataSource" />
</bean>
<!-- 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. -->