Assuming your using JPA, is the Entity class explicitly mapped in the
persistence.xml? I've had a problem similar to this is if just do a package
mapping instead of explicitly mapping each class.
On Mon, Aug 1, 2016 at 10:01 PM, Qbyte Consulting <[hidden email] > wrote:
> I have a Maven dependency tree like this:
> Entity Classes
> DAO Layer
> DAO Consumer (Tynamo resteasy layer)
> java.lang.IllegalArgumentException: NamedQuery of name:
> EUser.findByUsername not found.
> In my consumer project everything runs, I can see the entity classes
> registering in JPA and my DAO is wired up, but somehow the named queries
> aren't available. Any ideas why?
> I thought if I referenced the Entity Classes dependency directly in my
> consumer layer that it may help because if I access the Entity Classes as a
> direct dependency they work.
> [EL Config]: metadata: 2016-08-01
> alias name for the entity class [class EUser] is being defaulted to: EUser.