[jboss-user] [Spring Integration] - spring application works in jboss 4 but not in jboss 5
swarnim ranjitkar
do-not-reply at jboss.com
Sat May 22 23:10:32 EDT 2010
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&containerType=14&container=2082]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20100522/afd023cf/attachment-0001.html
More information about the jboss-user
mailing list