Community

spring application works in jboss 4 but not in jboss 5

created by swarnim ranjitkar in Spring Integration - View the full discussion

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) {

Reply to this message by going to Community

Start a new discussion in Spring Integration at Community