If you have a
@PersitenceUnit
private EntityManager em;
you need to change it to
@PersitenceUnit(unitName="foo")
Where "foo" is the name of a PU defined in your persistence.xml
Reply to this message by going to Community
Start a new discussion in JBoss Tools at Community