Re: 4.0 web.xml filter config files

2015-07-05 Thread Joe Baldwin
OK, so the question is “how”. (I spent about 45min hacking different combinations and none worked. All I could get working is depositing all the config files in the top level WEB-INF/classes dir. I am sure I am missing something but the previous two solutions stopped working with 4.0) >

Re: 4.0 web.xml filter config files

2015-07-05 Thread Andrus Adamchik
> On Jul 5, 2015, at 8:51 PM, Joe Baldwin wrote: > >> >> "configuration-location" init parameter.” > > > This was mentioned in the docs. Is this not good practice? > > I would *prefer* to put them in a separate directory under “classes”. Is > there a better way to do this - in your experi

Re: 4.0 web.xml filter config files

2015-07-05 Thread Joe Baldwin
> IIRC the last time this changed was in 3.1. 4.0 and 3.1 should be the same in > this respect. I wrote my code a couple of versions back. This is the second change is location for me so far. (1. dir defined in web.xml, and then 2. in the top level WEB-INF/lib dir) > "configuration-location

Re: Cayenne Modeler - DbEntity Configuration - Catalog

2015-07-05 Thread Joe Baldwin
I guess these definitions change a bit given the DBMS. Some discussions claim that Catalog is like Database, while Schema is like Table. That seems to fit with the Modeler’s implementation (MySQL), so that when the sql is generated it looks like Catalog.Schema MySQL Workbench has a

Re: Migration to 4.0

2015-07-05 Thread Andrus Adamchik
Yep, absolutely right. > On Jul 5, 2015, at 8:27 PM, Joe Baldwin wrote: > > Andrus, > > in the interim, I did some hacking and found out that I needed > cayenne-di-4.0.M2.jar > as well > cayenne-server-4.0.M2.jar > > The error, without the the di jar was that Modules were missing.

Re: 4.0 web.xml filter config files

2015-07-05 Thread Andrus Adamchik
IIRC the last time this changed was in 3.1. 4.0 and 3.1 should be the same in this respect. All XML file locations are relative to CLASSPATH, regardless of whether you are using CayenneFilter or not. CayenneFilter simply creates a ServerRuntime with location parameter, so everything we say abo

Re: Migration to 4.0

2015-07-05 Thread Joe Baldwin
Andrus, in the interim, I did some hacking and found out that I needed cayenne-di-4.0.M2.jar as well cayenne-server-4.0.M2.jar The error, without the the di jar was that Modules were missing. So, if I haven’t missed anything, you need server, di, and all the 3rd party jars at a

Re: Cayenne Modeler - DbEntity Configuration - Catalog

2015-07-05 Thread Andrus Adamchik
> On Jul 5, 2015, at 2:44 PM, Joe Baldwin wrote: > > What does Cayenne Modeler -> DbEntity Configuration -> Catalog configuration > field refer to? > > (I could find no documentation on this. The Javadocs simply note the name.) > It appears to pre-append a name to the database-name in the

Re: Migration to 4.0

2015-07-05 Thread Andrus Adamchik
Yes. Alternatively you can use ServerRuntimeBuilder (especially if you have various customizations), but ServerRuntime constructor works just as well. Andrus > On Jul 4, 2015, at 1:30 PM, Joe Baldwin wrote: > > Is this example from (https://cayenne.apache.org/docs/4.0/tutorial/ch05.html >

4.0 web.xml filter config files

2015-07-05 Thread Joe Baldwin
While migrating to 4.0, I have found that the config files assoicatated with the filter cannot be located. It appears that the location rules have changed again. This doc https://cayenne.apache.org/docs/4.0/cayenne-guide/starting-cayenne.html#webapps says: "When started by the web c

Cayenne Modeler - DbEntity Configuration - Catalog

2015-07-05 Thread Joe Baldwin
What does Cayenne Modeler -> DbEntity Configuration -> Catalog configuration field refer to? (I could find no documentation on this. The Javadocs simply note the name.) It appears to pre-append a name to the database-name in the generated SQL.

4.0 web.xml filter config files

2015-07-05 Thread Joe Baldwin
While migrating to 4.0, I have found that the config files assoicatated with the filter cannot be located. It appears that the location rules have changed again. This doc https://cayenne.apache.org/docs/4.0/cayenne-guide/starting-cayenne.html#webapps says: "When started by the web c

Cayenne Modeler - DbEntity Configuration - Catalog

2015-07-05 Thread Joe Baldwin
What does Cayenne Modeler -> DbEntity Configuration -> Catalog configuration field refer to? (I could find no documentation on this. The Javadocs simply note the name.) It appears to pre-append a name to the database-name in the generated SQL.