Fix application context configuration problem.