1 Reply Latest reply on May 31, 2006 11:40 PM by epbernard

    Dependencies between ejb-jar's

    tlu

      Hi,

      in ear file I have two ejb-jar (data.jar and address.jar), each of them defining its own persistence unit. When deploying I get the following error:


      org.hibernate.AnnotationException: @OneToOne or @ManyToOne on com.test.data.Customer.address references an unknown entity: com.test.address.Address


      The Customer is depending on the Address, the adress.jar is deploying before (its generating the table correct). JBoss doesnt seem to find the entity of the other ejb-jar. I have to somehow tell JBoss that data.jar is depending on address.jar? How do I have to do this? Any ideas?

      Thank you, Torsten