Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) 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?
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!