Up until tonight, I've personally never had a problem sticking cayenne's
configuration files in the root of src/class directory.
You can also put it in WEB-INF, but to do that, you'll need to do a
little extra work by extending ApplicationServlet and overriding init to
add the following line:
See also cayenne.tutorial.tapestry.ArtistAppServlet
in the cayenne-tapestry-app tutorial.
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 - 03:50:48 EST