1 Reply Latest reply on Dec 11, 2009 6:37 AM by alesj

    Spring Application Annotation Problem in jBoss5/6 but itwork

    bibhu2010

      Dear All,


      I have some problem when I try to deploy any of spring3 Annotation example in Jboss5/6 .

      i.e “WARN [PageNotFound] No mapping found for HTTP request with URI [/S

      pringExample16/welcome.htm] in DispatcherServlet with name 'dispatcher'â€Â�


      Where as the same application is running in jBoss4 and Tomcat.


      Please help me out from this problem.

      Please give me some advice how to solve it in jBoss5/6.

      Sample code-
      import org.springframework.stereotype.Controller;

      import org.springframework.web.bind.annotation.RequestMapping;



      @Controller

      public class WelcomeController {



      @RequestMapping("/welcome.htm")

      public String redirect()

      {

      return "welcome";

      }

      }


      Best Regards,
      Bibhudatta Nayak
      91-9029701223