Fixed some JPA conflicts.
Changed logger.
Update persistence.xml.