
I implemented the same code as above.. But getting this error in console...
Console
Oct 5, 2012 10:18:14 AM 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.
Oct 5, 2012 10:18:14 AM 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\jre1.5.007\bin;.;C:\Windows\system32;C:\Windows;C:/Program Files/Java/jre1.5.007/bin/client;C:/Program Files/Java/jre1.5.0_07/bin;C:\Program Files\CA\SC\CAWIN\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\PROGRA~1\CA\SC\CAM\bin;C:\Program Files\CA\DSM\bin;C:\Program Files\TortoiseSVN\bin
Oct 5, 2012 10:18:14 AM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Oct 5, 2012 10:18:14 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 307 ms
Oct 5, 2012 10:18:14 AM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Oct 5, 2012 10:18:14 AM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.20
Oct 5, 2012 10:18:15 AM org.apache.catalina.core.ApplicationContext log
INFO: Marking servlet dispatcher as unavailable
Oct 5, 2012 10:18:15 AM org.apache.catalina.core.StandardContext loadOnStartup
SEVERE: Servlet /SpringMVC threw load() exception
java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
at org.springframework.web.servlet.DispatcherServlet.
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.