File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Hibernate issue" Watch "Hibernate issue" New topic
Author

Hibernate issue

Chad Foor
Greenhorn

Joined: Jul 03, 2007
Posts: 23
Hi,

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 com.chadproject.bo.Xpath 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 com.chadproject.bo.CPEntity not faound in JoinColumns.referencedColumnName
at org.hibernate.cfg.annotations.TableBinder.bindFk(TableBinder.java:306)
at org.hibernate.cfg.FkSecondPass(FkSecondPass.java:64)
at org.hibernate.cfg.AnnotationConfiguration.processFkSecondPassInOrder(AnnotationConfiguration.java:428)
at org.hibernate.cfg.AnnotationConfiguration.secondPassCompile(AnnotationConfiguration.java:286)
----------------------------

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,
Chad
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Hibernate issue
 
Similar Threads
Difficulty accessing Postgres.
Hibernate issue
Getting exception of org.dom4j.DocumentException : feature read only while deploying war file in tom
Hibernate Oracle BuildSessionFactory initial Error
NetBeans and MySQL