Not sure if it changed but typically it goes directly in src so it is at the classpath root, and ends up in Web-inf/classes. On Sat, Jun 13, 2015 at 8:26 AM Andrew Willerding <[email protected]> wrote:
> Hi, > > I'm experiencing a new problem now with deploying a V4 Cayenne project. > With Version 3 projects I was able to place the cayenne-xx.xml file > where I wanted under the WEB-INF folder and provide a params option in > the web.xml file and everything worked as expected. > > With Cayenne V4 I am not experiencing the same. I am getting the > following error: > > org.apache.cayenne.configuration.server.DataDomainLoadException: > [v.4.0.M2 Feb 26 2015 08:47:05] Configuration resource > "cayenne-CSCTCBridgeWeb.xml" is not found. > > org.apache.cayenne.configuration.server.DataDomainProvider.descriptorFromConfigs(DataDomainProvider.java:198) > > org.apache.cayenne.configuration.server.DataDomainProvider.createAndInitDataDomain(DataDomainProvider.java:110) > > even with what I believe are the appropriate cayenne directives in the > web.xml file. > > <context-param> > <param-name>cayenne.configuration.path</param-name> > <param-value>/WEB-INF/DBConfig</param-value> > </context-param> > > <filter> > <filter-name>cayenne-CSCTCBridgeWeb</filter-name> > > <filter-class>org.apache.cayenne.configuration.web.CayenneFilter</filter-class> > </filter> > > where the cayenne-CSCTCBridge.xml and support files are located in the > DBConfig directory. > > I am deploying on Tomcat V8.0.23 and jdk 1.8.0.45 > > Has something changed in Cayenne V4? > > Thanks, > > Andrew > >
