aspose file tools*
The moose likes Spring and the fly likes No mapping found for HTTP request with URI [/HibernateSpring/homepage.do] in DispatcherServlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "No mapping found for HTTP request with URI [/HibernateSpring/homepage.do] in DispatcherServlet" Watch "No mapping found for HTTP request with URI [/HibernateSpring/homepage.do] in DispatcherServlet" New topic
Author

No mapping found for HTTP request with URI [/HibernateSpring/homepage.do] in DispatcherServlet

jas preet
Ranch Hand

Joined: Mar 31, 2010
Posts: 76

I have just started with a sample application on spring. I am using annotations and this is what i have done so far.

this is my jsp page


test-servlet.xml


The controller class



And lastly when i run this i get

Oct 20, 2010 4:35:58 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\jre6\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:/Program Files/Java/jre6/bin/client;C:/Program Files/Java/jre6/bin;C:\Program Files\Common Files\Symbian\Tools;C:\Perl\site\bin;C:\Perl\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Intel\DMIX;C:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\Program Files\System Center Operations Manager 2007\;C:\Program Files\Git\cmd;C:\Program Files\Common Files\Intuit\QBPOSSDKRuntime;D:\Program Files\CSL Arm Toolchain\bin;C:\Program Files\QuickTime\QTSystem\;C:\Program Files\Java\jdk1.5.0\bin;C:\android-sdk-windows\tools;C:\Program Files\MySQL\MySQL Server 5.0\bin;C:\Program Files\WinMerge;
Oct 20, 2010 4:35:59 PM org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.j2ee.server:HibernateSpring' did not find a matching property.
Oct 20, 2010 4:35:59 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Oct 20, 2010 4:35:59 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 450 ms
Oct 20, 2010 4:35:59 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Oct 20, 2010 4:35:59 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.26
Oct 20, 2010 4:35:59 PM org.apache.catalina.loader.WebappClassLoader validateJarFile
INFO: validateJarFile(D:\Jaspreet Singh on impinge30 (192.168.3.30)\MySpringExamples\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\HibernateSpring\WEB-INF\lib\servlet-api-2.4.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
Oct 20, 2010 4:35:59 PM org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring FrameworkServlet 'test'
Oct 20, 2010 4:35:59 PM org.springframework.web.servlet.FrameworkServlet initServletBean
INFO: FrameworkServlet 'test': initialization started
Oct 20, 2010 4:35:59 PM org.springframework.context.support.AbstractApplicationContext prepareRefresh
INFO: Refreshing WebApplicationContext for namespace 'test-servlet': startup date [Wed Oct 20 16:35:59 IST 2010]; root of context hierarchy
Oct 20, 2010 4:35:59 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
INFO: Loading XML bean definitions from ServletContext resource [/WEB-INF/test-servlet.xml]
Oct 20, 2010 4:36:00 PM org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons
INFO: Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@1ae90c: defining beans [org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping#0,org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter#0]; root of factory hierarchy
Oct 20, 2010 4:36:00 PM org.springframework.web.servlet.FrameworkServlet initServletBean
INFO: FrameworkServlet 'test': initialization completed in 719 ms
Oct 20, 2010 4:36:00 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Oct 20, 2010 4:36:00 PM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Oct 20, 2010 4:36:00 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/31 config=null
Oct 20, 2010 4:36:00 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 1471 ms
Oct 20, 2010 4:36:00 PM org.springframework.web.servlet.DispatcherServlet noHandlerFound
WARNING: No mapping found for HTTP request with URI [/HibernateSpring/homepage.do] in DispatcherServlet with name 'test'

Thanks Jaspreet ----- Nothing is permanent
 
 
subject: No mapping found for HTTP request with URI [/HibernateSpring/homepage.do] in DispatcherServlet