Added spring-context dependency; able to get bean from applicationContext successfully.