OK, after setting some more DEBUG logging (log4j.logger.org.apache.cayenne.util=DEBUG) I found out that one of the model jars actually included a false copy of mapping file - the one that should be in the other model jar. Somehow new SNAPSHOT jar was not picked up by my web app. God damn. I assumed how the model jar looks like and caught myself in the saying: "Assumption is the mother of all fuckups!"
Now everything works, but I believe I got the ulcer...need a holiday. Thanks for help. 2010/2/17 Andrus Adamchik <[email protected]> > > On Feb 16, 2010, at 5:42 PM, Borut Bolčina wrote: > > Is it possible that cayenne picks up either of cayenne.xml files despite I >> am explicitly loading redbox-cayenne.xml with >> >> DefaultConfiguration conf = new >> DefaultConfiguration("redbox-cayenne.xml"); >> > > > No, redbox-cayenne.xml is read correctly from the logs (and from checking > the code). Looks like that DataMap is not mapped to a DataNode though. > > Andrus > >
