Announcement Announcement Module
Collapse
No announcement yet.
Spring MVC Template Project Does NOT Work Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    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

    Comment


    • #3
      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

      Comment

      Working...
      X