Re: 4.0 web.xml filter config files

2015-07-06 Thread Joe Baldwin
Probably a good idea to include it in the docs then? > On Jul 6, 2015, at 2:43 PM, Andrus Adamchik wrote: > > Yeah, this looks about right. This is a correct way to use CayenneFilter. > >> On Jul 6, 2015, at 12:35 PM, Joe Baldwin wrote: >> >> OK, after over an hour of hacking, I think I ha

Re: 4.0 web.xml filter config files

2015-07-06 Thread Andrus Adamchik
Yeah, this looks about right. This is a correct way to use CayenneFilter. > On Jul 6, 2015, at 12:35 PM, Joe Baldwin wrote: > > OK, after over an hour of hacking, I think I have figured out at least some > of the rules for specifying the location of Cayenne config files in a Tomcat > environm

Re: 4.0 web.xml filter config files

2015-07-06 Thread Joe Baldwin
OK, after over an hour of hacking, I think I have figured out at least some of the rules for specifying the location of Cayenne config files in a Tomcat environment. I put this together from bits an pieces I found in the docs - I could not find a full example. For anyone who is configuring a

Re: 4.0 web.xml filter config files

2015-07-06 Thread Joe Baldwin
John > You can use subfolders inside WEB-INF/classes. These are essentially java > packages, although it doesn't really matter. How you handle it would depend > on your dev environment and build tool. I write with minimal IDE tools - so I don’t think that is the issue. My understanding is

Re: 4.0 web.xml filter config files

2015-07-06 Thread John Huss
You can use subfolders inside WEB-INF/classes. These are essentially java packages, although it doesn't really matter. How you handle it would depend on your dev environment and build tool. With ant based projects, just throw in the src folder under whatever package you want, then ensure your an

Re: 4.0 web.xml filter config files

2015-07-06 Thread Joe Baldwin
OK, lets start over. You say below: >>> Yes, XML files can be placed in subdirectories of any CLASSPATH directory. >>> So if you have the project file under >>> "WEB-INF/classes/org/example/cayenne-myproject.xml" , your location would >>> be "org/example/cayenne-myproject.xml". And I am rep

Re: 4.0 web.xml filter config files

2015-07-06 Thread Andrus Adamchik
Try debugging your app, putting a breakpoint in ClassLoaderResourceLocator.findResources(..) method. This may give you an idea. Andrus > On Jul 5, 2015, at 9:11 PM, Joe Baldwin wrote: > > OK, so the question is “how”. > > (I spent about 45min hacking different combinations and none worked.