Can you try obtaining the metamodel from the entityManager rather than the factory? It could be that the persistence unit is being lazy loaded, so only initialized after an entitymanager has been accessed. If so, this might be fixed in the transaction forhttps://bugs.eclipse.org/bugs/show_bug.cgi?id=322585