As the title says: I can no longer inject entity managers with @PersistenceContext.
Simple text class:
public class TestResource
private EntityManager em;
public String testInject()
with configuration class:
public class Configuration extends Application
The project contains a persistence.xml with one persistence unit in it.
I have to exact same problems in @Provider classes.
And for some reason, I do not have it all the time. I have one older project where the injection works in resources classes, but not provider classes. In newer projects, nothing works.