The following producer produces null: static @Produces @PersistenceContext(unitName = "defaultPU") @DefaultDatabase EntityManager defaultEM;
remove the "static" and the producer produces the correct object.