Results 1 to 3 of 3

Thread: Spring MVC Template Project Does NOT Work

  1. #1
    Join Date
    Nov 2010
    Posts
    7

    Default Spring MVC Template Project Does NOT Work

    I would like to start using Insight. So I created new project in STS

    File -> New -> Other... -> Spring Template Project -> Spring MVC Project)


    Than I run it on tc server. Application was deployed successfully.
    Code:
    INFO: Deploying configuration descriptor sample.xml from /home/lubos/springsource/vfabric-tc-server-developer-2.6.1.RELEASE/insight/conf/Catalina/localhost
    I got warning.
    Code:
    WARNING: [SetContextPropertiesRule]{Context} Setting property 'source' to 'org.eclipse.jst.jee.server:sample' did not find a matching property.
    Request to http://localhost:8080/sample returned 404 error.
    Code:
    WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/sample/] in DispatcherServlet with name 'appServlet'
    I also tried turn the Insight off but no effect.


    I am using x86_64 architecture with following software
    • STS 2.8.1 (also tried on 2.8.0)

    • Ubuntu 10.04.3 LTS

    • Sun Java 1.6.0_26

  2. #2
    Join Date
    Jun 2011
    Posts
    13

    Default

    I meet the same problem too, I am using x86 windows 7 with following software:
    STST 2.8.1(Also tried on 2.80)
    Windows 7 sp1 (32-bit)
    Oracle Java 1.6.0_29

  3. #3
    Join Date
    Nov 2010
    Posts
    7

    Default

    I am confused that the template project does not work.

    I changed the servlet mapping

    Code:
    <servlet-mapping>
    	<servlet-name>appServlet</servlet-name>
    	<url-pattern>*.do</url-pattern>
    </servlet-mapping>
    Follow up the request mapping in the controller.
    Code:
    @RequestMapping(value = "/home.do", method = RequestMethod.GET)
    Now http://localhost:8080/sample/home.do works

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •