0 Replies Latest reply on May 1, 2009 8:56 AM by Lars Clausen

    Empty foreign key circular dependency

    Lars Clausen Newbie


      I'm implementing a new (fairly simple) model using JBoss 5.1.0.CR1 (but saw the same problem with 5.0.1). While my model doesn't appear to have any circular dependencies, on deployment I get the following:

      14:48:51,397 ERROR [AbstractKernelController] Error installing to Start: name=persistence.unit:unitName=ampep.ear/AasSystem.jar#Aas state=Create
      org.hibernate.AnnotationException: Foreign key circularity dependency involving the following tables:
      at org.hibernate.cfg.AnnotationConfiguration.buildRecursiveOrderedFkSecondPasses(AnnotationConfiguration.java:518)
      ...more stack trace...

      WTF? Empty dependency? I have not assigned any foreign keys in the database, so I can only assume this is a hibernate problem. Anyone seen this before? Any ideas whay could be happenening?

      For the record, the database is an Oracle 11, and JBoss is running on an Ubuntu 8.10 x86 box.

      Thanks in advance,