I got the following error :
Error creating bean with name \'org.springframework.dao.annotation.PersistenceExceptionTranslationPostProcessor#0\' de
If you had to comment out the "class" elements, it is likely that one of those classes is either not defined, or is not available in the classpath.
I faced the same exact error, and it was resolved once the fully qualified names were all correct. Ideally, Hibernate should tell you what class is not found, but sadly it does not do it in this case.