There is another point: If you face this problem within an Eclipse RCP environment, you might have to change the Factory generation from Persistence.createEntityManagerFactory
to new PersistenceProvider().createEntityManagerFactory
see ECF for a detailed discussion on this.