Win a copy of Penetration Testing Basics this week in the Security forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

entity bean annotation to entity bean in another jar

Henrique Ordine
Ranch Hand
Posts: 129
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello again,

I annotated my entity bean to reference an entity bean which is located in another EJBJar. At deployment time I get the following erro:

13:54:43,687 WARN [ServiceController] Problem starting service persistence.units:ear=Budget.ear,jar=BudgetEJB.jar,unitName=BudgetEJBPU
org.hibernate.AnnotationException: @OneToOne or @ManyToOne on references an unknown entity:

Although the classes are in different EJB Jars, the EJB Jars are both in the same EAR. Also, they're being deployed on Jboss in an Expanded Diretory structure.
Could anyone help please?
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic