1 Reply Latest reply on May 23, 2010 3:59 PM by alesj

    spring application works in jboss 4 but not in jboss 5

      Here is a sample app that runs with jboss 4 but in jboss 5 it doesn't seem to recognize annotated urlmapping.

       

      It has following annotated RequestMapping but when i try to go to userRegistration.htm. It says

      [PageNotFound] No mapping found for HTTP request with URI [/SpringExample11/userRegistration.htm] in DispatcherServlet with name 'dispatcher'

      int the log. I have attached the sample application. Does someone have the same problem with jboss 5, would really appreciate your help

       

      @Controller
      @RequestMapping("/userRegistration.htm")
      @SessionAttributes("user")
      public class UserController {

       

          private UserService userService;

       

          @Autowired
          public void setUserService(UserService userService) {
              this.userService = userService;
          }
         
          @RequestMapping(method = RequestMethod.GET)
          public String showUserForm(ModelMap model)
          {
              User user = new User();
              model.addAttribute(user);
              return "userForm";
          }

       

          @RequestMapping(method = RequestMethod.POST)
          public String onSubmit(@ModelAttribute("user") User user) {