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

    spring application works in jboss 4 but not in jboss 5

    swarnim ranjitkar Newbie

      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


      public class UserController {


          private UserService userService;


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


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