This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
The moose likes JBoss/WildFly and the fly likes Hibernate issue Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Hibernate issue" Watch "Hibernate issue" New topic

Hibernate issue

Chad Foor

Joined: Jul 03, 2007
Posts: 23

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,
I agree. Here's the link:
subject: Hibernate issue
It's not a secret anymore!