Fixed the registration bug. NOTE: The beans should always be defined in the dispatcher servlet, which in this case would be appServlet.xml