For what it's worth, I have a separate project (in Eclipse) which
contains my business objects and Cayenne XML files. This way I can
reuse them if needed. In that context, they are located under:
My default output folder is "bin" instead of "src", so the
xml/classes/etc get put over there, too, when Eclipse builds the
project. To use the business objects, I make other Eclipse projects
depend upon that project. Seems to work pretty decently (simulates NeXT
Gary's idea was kind of interesting, too. I didn't know about that
feature. Thanks for the tip.
From: Todd O'Bryan [mailto:toddobrya..ac.com]
Sent: Friday, November 05, 2004 6:25 AM
To: Todd O'Bryan
Subject: Re: cayenne.xml is not found
After hunting around a bit, I discovered the warning about putting
cayenne.jar in tomcat/shared/libs. That's, in fact, what I'd been
After creating a lib folder in my WEB-INF and moving all the associated
jars there, everything seems to be working fine.
Unfortunately, I now have to write an ant script so that my high school
students' computers all get set up correctly. Woo-hoo.
On Nov 5, 2004, at 3:39 AM, Todd O'Bryan wrote:
> I'm trying to create a Tapestry app. In my Visit object, I have a
> getDataContext() method that checks to see if an instance variable is
> null, and if so calls DataContext.createDataContext() to initialize
> it. I then use that same DataContext for all of that user's session.
> Unfortunately, I can't figure out where to stick cayenne.xml to have
> it load. I've tried the WEB-INF directory, at the top-level of the
> context directory, and at the root of the src directory (which Eclipse
> copies to the root of the class directory). None of these work, as I
> get the "Domain configuration file "cayenne.xml" is not found." error.
> I'm using Cayenne 1.1B3 and Tomcat 5.0.28.
> Anyone have any ideas?
This archive was generated by hypermail 2.0.0 : Fri Nov 05 2004 - 10:38:59 EST