Exception while trying to deploy EAP application referencing entities or named finder from another module

Solution Verified - Updated -

Issue

While deploying the application which contains entities with annotations pointing to entities or calling named finder located in another module, it fails with
org.hibernate.AnnotationException: @OneToOne or @ManyToOne on <FQCN.fieldName> references an unknown entity... or similar exception.

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 6.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content