Updated persistence.xml to use JPA 2.1, added custom resources handling for glassfish