Announcement Announcement Module
Collapse
No announcement yet.
org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with

    Hey Guys, new here... Checked out the git://git.springsource.org/spring-mobile/samples.git and trying to get he lite-showcase up and going.

    Mac OS X using the SpringToolsSuite and all the default settings/locations. Import the project once checked out, builds, deploys and starts up but when I navigate to localhost:8080/lite-showcase I receive this error.


    WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/lite-showcase/] in DispatcherServlet with name 'appServlet'



    Here is my start up log...

    Jul 9, 2013 1:49:29 PM com.springsource.tcserver.security.PropertyDecoder <init>
    INFO: tc Runtime property decoder using memory-based key
    Jul 9, 2013 1:49:29 PM com.springsource.tcserver.security.PropertyDecoder <init>
    INFO: tcServer Runtime property decoder has been initialized in 222 ms
    Jul 9, 2013 1:49:29 PM org.apache.coyote.AbstractProtocol init
    INFO: Initializing ProtocolHandler ["http-bio-8080"]
    Jul 9, 2013 1:49:29 PM com.springsource.tcserver.serviceability.rmi.JmxSo cketListener init
    INFO: Started up JMX registry on 127.0.0.1:6969 in 93 ms
    Jul 9, 2013 1:49:29 PM org.apache.catalina.startup.Catalina load
    INFO: Initialization processed in 707 ms
    Jul 9, 2013 1:49:29 PM org.apache.catalina.core.StandardService startInternal
    INFO: Starting service Catalina
    Jul 9, 2013 1:49:29 PM org.apache.catalina.core.StandardEngine startInternal
    INFO: Starting Servlet Engine: VMware vFabric tc Runtime 2.8.2.RELEASE/7.0.35.B.RELEASE
    Jul 9, 2013 1:49:29 PM org.apache.catalina.startup.HostConfig deployDescriptor
    INFO: Deploying configuration descriptor /Users/rmichael/springsource/vfabric-tc-server-developer-2.8.2.RELEASE/base-instance/conf/Catalina/localhost/lite-showcase.xml
    Jul 9, 2013 1:49:29 PM org.apache.catalina.startup.SetContextPropertiesRu le begin
    WARNING: [SetContextPropertiesRule]{Context} Setting property 'source' to 'org.eclipse.jst.jee.server:lite-showcase' did not find a matching property.
    Jul 9, 2013 1:49:30 PM org.apache.catalina.core.ApplicationContext log
    INFO: No Spring WebApplicationInitializer types detected on classpath
    Jul 9, 2013 1:49:30 PM org.apache.catalina.core.ApplicationContext log
    INFO: Initializing Spring FrameworkServlet 'appServlet'
    INFO : org.springframework.web.servlet.DispatcherServlet - FrameworkServlet 'appServlet': initialization started
    INFO : org.springframework.web.context.support.XmlWebAppl icationContext - Refreshing WebApplicationContext for namespace 'appServlet-servlet': startup date [Tue Jul 09 13:49:30 CDT 2013]; root of context hierarchy
    INFO : org.springframework.beans.factory.xml.XmlBeanDefin itionReader - Loading XML bean definitions from ServletContext resource [/WEB-INF/spring/appServlet/servlet-context.xml]
    INFO : org.springframework.beans.factory.xml.XmlBeanDefin itionReader - Loading XML bean definitions from ServletContext resource [/WEB-INF/spring/appServlet/controllers.xml]
    INFO : org.springframework.context.annotation.ClassPathBe anDefinitionScanner - JSR-330 'javax.inject.Named' annotation found and supported for component scanning
    INFO : org.springframework.beans.factory.annotation.Autow iredAnnotationBeanPostProcessor - JSR-330 'javax.inject.Inject' annotation found and supported for autowiring
    INFO : org.springframework.beans.factory.support.DefaultL istableBeanFactory - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultL istableBeanFactory@40d38976: defining beans [org.springframework.web.servlet.mvc.method.annotat ion.RequestMappingHandlerMapping#0,org.springframe work.format.support.FormattingConversionServiceFac toryBean#0,org.springframework.web.servlet.mvc.met hod.annotation.RequestMappingHandlerAdapter#0,org. springframework.web.servlet.handler.MappedIntercep tor#0,org.springframework.web.servlet.mvc.method.a nnotation.ExceptionHandlerExceptionResolver#0,org. springframework.web.servlet.mvc.annotation.Respons eStatusExceptionResolver#0,org.springframework.web .servlet.mvc.support.DefaultHandlerExceptionResolv er#0,org.springframework.web.servlet.handler.BeanN ameUrlHandlerMapping,org.springframework.web.servl et.mvc.HttpRequestHandlerAdapter,org.springframewo rk.web.servlet.mvc.SimpleControllerHandlerAdapter, org.springframework.web.servlet.handler.MappedInte rceptor#1,org.springframework.web.servlet.handler. MappedInterceptor#2,org.springframework.web.servle t.view.InternalResourceViewResolver#0,org.springfr amework.context.annotation.internalConfigurationAn notationProcessor,org.springframework.context.anno tation.internalAutowiredAnnotationProcessor,org.sp ringframework.context.annotation.internalRequiredA nnotationProcessor,org.springframework.context.ann otation.internalCommonAnnotationProcessor,org.spri ngframework.context.annotation.ConfigurationClassP ostProcessor$ImportAwareBeanPostProcessor#0]; root of factory hierarchy
    INFO : org.springframework.web.servlet.DispatcherServlet - FrameworkServlet 'appServlet': initialization completed in 597 ms
    Jul 9, 2013 1:49:31 PM org.apache.catalina.startup.HostConfig deployDirectory
    INFO: Deploying web application directory /Users/rmichael/springsource/vfabric-tc-server-developer-2.8.2.RELEASE/base-instance/webapps/manager
    Jul 9, 2013 1:49:31 PM org.apache.catalina.startup.HostConfig deployDirectory
    INFO: Deploying web application directory /Users/rmichael/springsource/vfabric-tc-server-developer-2.8.2.RELEASE/base-instance/webapps/ROOT
    Jul 9, 2013 1:49:31 PM org.apache.coyote.AbstractProtocol start
    INFO: Starting ProtocolHandler ["http-bio-8080"]
    Jul 9, 2013 1:49:31 PM org.apache.catalina.startup.Catalina start
    INFO: Server startup in 1553 ms
    WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/lite-showcase/] in DispatcherServlet with name 'appServlet'


    I am not sure whats going on. From the video... [ http://s3.springsource.org/MVC/sprin...screencast.mov ] it should work out of the box.

    Differences from the video that I have noticed... I have the VMWare server and not the Springsource tc server. And on import I was required to update legacy maven projects...

    I have tried everything I know as well as a co worker who uses spring MVC. Please Help!

  • #2
    Hi, I just pulled a clean version of the samples repository and it running correctly for me. Does running from the command line work?

    Code:
    $ mvn clean package tomcat7:run
    I'm also on a mac running STS 3.3.0.RELEASE, which has tcServer 2.9, and it it deploying correctly in STS too. Did you try importing as an existing maven project?

    Comment

    Working...
    X