You need to take care about the number of ClassServiceImpl instances created.
The new ClassServiceImpl(daoFactory) invocation must exists in just one location.
Please, review the code to find other invocations like this and let us refactor it.