Fixed 404 issues and added java controller as beans to mvn-config.xml