swarnim ranjitkar [
http://community.jboss.org/people/swarnimranjitkar] created the
discussion
"spring application works in jboss 4 but not in jboss 5"
To view the discussion, visit:
http://community.jboss.org/message/544347#544347
--------------------------------------------------------------
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
[
http://community.jboss.org/message/544347#544347]
Start a new discussion in Spring Integration at Community
[
http://community.jboss.org/choose-container!input.jspa?contentType=1&...]