NamedQuery: IllegalArgumentException (Query not found) after externalizing entities
问题 I have successfully used javax.persistence.NamedQuery in combination with JPA2. The named queries are defined at the top of the entity class files, and are used from Stateless EJBs (entity facade). Now I had to extract the entity class files into a separate Jar file (so we can use them from a Google Web Toolkit project). Obviously I still incude the jar, but now the facade bean does not find the query anymore: java.lang.IllegalArgumentException: NamedQuery of name: Store.findByExternalId not