• Post Reply Bookmark Topic Watch Topic
  • New Topic

entity bean annotation to entity bean in another jar  RSS feed

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 br.com.dminder.budget.domain.Budget.userProfile references an unknown entity: br.com.dminder.signon.domain.UserProfile

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?
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!