This week's book giveaway is in the Testing forum.
We're giving away four copies of The Way of the Web Tester: A Beginner's Guide to Automating Tests and have Jonathan Rasmusson on-line!
See this thread for details.
Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Hibernate issue

Chad Foor
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I have a problem with hibernate (I think) when I try to deploy to a JBoss 4.2.1 GA app server.

What I'm trying to do - have JBoss run the EJB (dao) tier + Entity beans on a dedicated server (separate from web client apps.)

I developed a series of stateless session beans to talk to an auto-built set of Enitity objects by Netbeans 5.5.1. (Using a pre-existing database built with Sybase 15.) On the setup, I told Netbeans that I was using Hibernate for handling the persistence.)

The deployment seems to work except there's a hiccup that I dont quite understand how to 'fix'.

Here's the beginning of the stack trace when I try to deploy this on JBoss.
11:45:17, 483 INFO [EntityBinder] Bind entity on table XPATH
11:45:17, 653 WARN [ServiceController] Problem starting service persistence.units:jar=ChadProjectDataTier.jar, unitName=ChadProjectDataTierPU
org.hibernate.AnnotationException: Column name MODEL_ID of not faound in JoinColumns.referencedColumnName
at org.hibernate.cfg.annotations.TableBinder.bindFk(
at org.hibernate.cfg.FkSecondPass(
at org.hibernate.cfg.AnnotationConfiguration.processFkSecondPassInOrder(
at org.hibernate.cfg.AnnotationConfiguration.secondPassCompile(

I looked at the JoinColumns between the 2 tables the error was alluding to. The field MODEL_ID is defined / declared in both of them. I dont understand what Hibernate has a problem with here.

I'd appreciate any advice.

Thank you,
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic