Yes, dependent on your servlet version, context-param definitely has to be the first section in the file.
Also, make sure that you're including the files in your war/ear. Obvious, but sometimes still the cause :) On Thu, May 24, 2012 at 8:54 AM, Michael Gentry <[email protected]> wrote: > Hi there, > > I'm not a servlet guru (I know enough to get by and have my Tapestry > apps run), but I always put my <context-param> section before <filter> > and <filter-mapping>. May not make a difference, but worth trying. I > haven't looked through the source extensively, but you seem to be on > the right path from what the JavaDocs say. > > mrg > > > On Thu, May 24, 2012 at 3:13 AM, Kanwar Manish <[email protected]> wrote: >> Sorry guys, I am posting this bugger again. >> >> But it has turned out to be a bummer for me. >> >> I am using NetBeans 7.1.1 >> JDK 1.7 >> >> cayenne files are in the folder - "/WEB-INF/config/cayenne-files". Total >> three files cayenne.xml, map and node files. >> >> Error: >> "[v.3.0.2 Jun 11 2011 09:26:09] Error during Configuration initialization. >> [v.3.0.2 Jun 11 2011 09:26:09] >> [org.apache.cayenne.conf.DefaultConfiguration] : Domain configuration file >> "cayenne.xml" is not found." >> >> My XML File section for cayenne: >> " >> <filter> >> <filter-name>CayenneFilter</filter-name> >> >> <filter-class>org.apache.cayenne.conf.WebApplicationContextFilter</filter-class> >> </filter> >> <filter-mapping> >> <filter-name>CayenneFilter</filter-name> >> <url-pattern>/*</url-pattern> >> </filter-mapping> >> <context-param> >> <param-name>cayenne.configuration.path</param-name> >> <param-value>/WEB-INF/config/cayenne-files</param-value> >> </context-param> >> " >> >> Thanks in Advance >> >> I have searched this where I can - but not able to find a solution. >> >> Thanks >> KM
