Fixed classnotfoundexception by upgrading to spring 3.2.1