Not being a JBoss expert, I can't give much advice on the specifics, other than to look into differences between the two environments. Such errors are usually an indicator of some nested ClassLoader problem. Another random thought - you are on Cayenne 1.1-dev from February 2005. Could you try replacing that with Cayenne version 1.2.3 (that should be mostly compatible) and see if it makes any difference. I recall us changing how we handle class loading some time in 1.2.

Anyone else has any hints?

Andrus


On Sep 17, 2007, at 3:20 PM, chetan ingle wrote:
Hi Adamchik,

I already have all these xml files in proper place.
I am getting this error in my code which is deployed in Qa jboss server.
As well I am not getting any errors with same code in Production

Thanks,
Chetan


----- Original Message ----
From: Andrus Adamchik <[EMAIL PROTECTED]>
To: [email protected]
Sent: Monday, September 17, 2007 5:10:11 PM
Subject: Re: org.objectstyle.cayenne.CayenneRuntimeException


Hi Chetan,

Here is the comment that I posted on Jira. Was it helpful at all?

"The easiest way to fix it is to put all Cayenne xml files in the
root of the jar that contains EmployeeHistory class. Those would
include 'cayenne.xml' and any number of "*.map.xml" and
"*.driver.xml" that you might have."

Cheers,
Andrus


On Sep 17, 2007, at 2:37 PM, chetan ingle wrote:

I am getting following errors when running my java class in side
jboss1.4.2 under GNU/linux 2.4.21-32.ELsmp


Caused by: org.objectstyle.cayenne.CayenneRuntimeException: [v.1.1-
dev February 7 2005] No DataMap found for query with root: class
org.nfib.core.model.EmployeeHistory

Any help on this ? I am new to this

Thanks,
Chetan

Reply via email to