CayenneModeler 3.2M1 on Mac OS X Mavericks

2013-11-06 Thread D Tim Cummings
I have just upgraded to Mac OS X Mavericks and the Mac specific CayenneModeler 3.2M1 is no longer working. It just won't open. When I tried installing again, Mavericks says CayenneModeler is damaged and gives me the option to delete it. I have started using the platform independent version of Ca

Re: CayenneModeler 3.2M1 on Mac OS X Mavericks

2013-11-06 Thread D Tim Cummings
> Eclipse app for the first time, it prompted me to install it. > > Anyways, looks like we need to test a Java7-only case. > > Andrus > > > > On Nov 6, 2013, at 12:17 PM, D Tim Cummings wrote: >> I have just upgraded to Mac OS X Mavericks and the Mac spec

How to use cayenne-migrations

2014-03-21 Thread D Tim Cummings
I would like to try using cayenne-migrations to do database schema updates when my application starts but I am not sure how the cayenne sandbox works. I have checked out cayenne-migrations svn co http://svn.apache.org/repos/asf/cayenne/sandbox/cayenne-migrations/ and then I tried to install it

Re: How to use cayenne-migrations

2014-03-22 Thread D Tim Cummings
t, Mar 22, 2014 at 9:40 AM, John Huss wrote: > >> Ah, sorry, the pom wasn't really right due to my lack of maven knowledge. >> If you update it should work now. Thanks! >> >> >> On Sat, Mar 22, 2014 at 1:42 AM, D Tim Cummings wrote: >> >>>

Re: How to use cayenne-migrations

2014-03-23 Thread D Tim Cummings
tor. So take advantage of that. > > > On Sat, Mar 22, 2014 at 9:40 AM, John Huss wrote: > >> Ah, sorry, the pom wasn't really right due to my lack of maven knowledge. >> If you update it should work now. Thanks! >> >> >> On Sat, Mar 22, 2014 at

Re: How to use cayenne-migrations

2014-03-23 Thread D Tim Cummings
Mar 2014, at 11:12, D Tim Cummings wrote: > > Another thing I find unusual is that when I add a maven dependency of > cayenne-migrations to my tapestry app using the following > > > org.apache.cayenne > cayenne-server

Re: How to use cayenne-migrations

2014-03-23 Thread D Tim Cummings
("cayenne-project.xml", "output"); } 6. Run the tapestry app and file will be output to tapgen/output/Datamap0.java mvn jetty:run # ^C to stop when logs show generation complete I hope this is helpful to someone. :) Tim On 24 Mar 2014, at 14:06, D Tim Cummings wrote:

Re: How to use cayenne-migrations

2014-03-24 Thread D Tim Cummings
Thanks. I didn't think of that. So now I am putting the migrations into my app. 1. I have worked out I need to change the Cayenne Model schema update strategy in cayenne-project.xml from schema-update-strategy="org.apache.cayenne.access.dbsync.CreateIfNoSchemaStrategy" to schema-update-str

Re: How to use cayenne-migrations

2014-03-25 Thread D Tim Cummings
ns for you or throw an exception on failure. > > Not sure if this helps you or not, but thought I'd toss an alternative > approach out for your consideration. If this interests you, I can answer > more questions about it. > > mrg > > > > On Mon, Mar 24, 2014 at 11

Re: How to use cayenne-migrations

2014-03-25 Thread D Tim Cummings
Thanks. I didn't think of that. So now I am putting the migrations into my app. 1. I have worked out I need to change the Cayenne Model schema update strategy in cayenne-project.xml from schema-update-strategy="org.apache.cayenne.access.dbsync.CreateIfNoSchemaStrategy" to schema-update-str

How to use JNDI in development

2014-04-24 Thread D Tim Cummings
Hi I am using cayenne in a tapestry project and my final deployment will be in Tomcat 7 using JNDI for defining the data source. I am developing in Eclipse 4.3.1 and would like my development environment to be as close to deployment as possible. What is the recommended way of using JNDI in deve

Re: How to use JNDI in development

2014-04-25 Thread D Tim Cummings
>> Hi Tim, >> >> RunJettyRun uses plain Jetty and not Jetty+ (which includes the JNDI >> extension). What I do in my development is use the Jetty Maven plugin and >> then just use Maven to run Jetty. Has worked pretty well so far for me. >> >> >>

Re: How to use JNDI in development

2014-04-25 Thread D Tim Cummings
Maven to run Jetty. Has worked pretty well so far for me. >> >> >> On Thu, Apr 24, 2014 at 9:38 PM, D Tim Cummings wrote: >> >>> Hi >>> >>> I am using cayenne in a tapestry project and my final deployment will be >>> in Tomcat 7 using JN

Re: How to use JNDI in development

2014-04-25 Thread D Tim Cummings
what you need to define to get > yourself a local DataSource without JNDI. > > Andrus > > On Apr 25, 2014, at 4:38 AM, D Tim Cummings wrote: > >> Hi >> >> I am using cayenne in a tapestry project and my final deployment will be in >> Tomcat 7 using JND

Re: How to use JNDI in development

2014-04-25 Thread D Tim Cummings
gt; of jetty. > > The specific problem you are having with jetty appears to be that you > haven't added the libs from jetty that deal with JNDI. Jetty is > modular, and by default, it ships with a minimal set of supported > features -- you need to add additional jars if you

Re: How to use JNDI in development

2014-04-26 Thread D Tim Cummings
27;s suggestion of system properties to bypass JNDI in development, unless someone can advise how to get live class reloading from mvn jetty:run or how to get JNDI working in RunJettyRun. Cheers Tim On 26 Apr 2014, at 10:11, Mike Kienenberger wrote: > On Fri, Apr 25, 2014 at 7:27 PM, D Tim Cum

Re: How to use JNDI in development

2014-04-26 Thread D Tim Cummings
; > > mrg > > > On Fri, Apr 25, 2014 at 6:39 PM, D Tim Cummings wrote: > >> Thanks Michael. >> >> This is very handy. I downloaded cbe and was able to get it running >> talking to a mysql database by changing the jndi config. Now I am trying

Re: How to use JNDI in development

2014-04-27 Thread D Tim Cummings
> > This overrides the default when you run the application via Maven. > > mrg > > > > On Sat, Apr 26, 2014 at 4:54 PM, D Tim Cummings wrote: > >> Hi Michael >> >> Problem was a wrong case on the s in DataSource in my web.xml file >> >

Re: How to use JNDI in development

2014-04-27 Thread D Tim Cummings
It turns out I can ignore these IllegalArgumentExceptions. I had another error later on which was stopping my app from running in jetty. Tim On 26 Apr 2014, at 19:22, D Tim Cummings wrote: > I got mvn jetty:run to run. It turned out I had a mistake in my web.xml. In > the resource-ref

Re: How to use JNDI in development

2014-04-27 Thread D Tim Cummings
o leave my JNDI configuration in place during development. Thanks for everyone's help Tim On 27 Apr 2014, at 6:54, D Tim Cummings wrote: > Hi Michael > > Problem was a wrong case on the s in DataSource in my web.xml file > > I had > >

How to link to user record who made changes in audit trail

2014-07-19 Thread D Tim Cummings
Hi all I want to set up a simple audit trail which basically links who was the person to create a record to that record. I am using Cayenne 3.2M1 and Tapestry 5.3.7. I figure I need to set up a data channel filter to catch changes to that record and then save a link to the user who made the cha

Re: How to link to user record who made changes in audit trail

2014-08-01 Thread D Tim Cummings
hich is normally your request thread. Could you possibly print > thread names from within setTheUserId and doPrePersist methods ? Maybe that > will give you a hint. Request threads in Tomcat and Jetty have easily > identifiable names. > > Andrus > > > On Jul 20, 2014, at

Re: How to link to user record who made changes in audit trail

2014-08-04 Thread D Tim Cummings
semi-randomly. Note that qtp1248572294-23 and qtp1248572294-19 > are also Jetty threads, so they are called within a request. So make sure you > call ‘setTheUserId’ in every single request (and reset it to null at the end > of that request). > > Andrus > > On Aug 2, 2014, at 2

Re: How to link to user record who made changes in audit trail

2014-08-04 Thread D Tim Cummings
t;> can be 100% sure that security code is always executed. >> >> Perhaps you can do something similar using a custom T5 dispatcher: >> http://wiki.apache.org/tapestry/Tapestry5HowToCreateADispatcher >> >> Andrus >> >>> On Aug 4, 2014, at 4:23 PM,

Re: Cayenne 4.1M1 xml errors in Eclipse

2018-05-27 Thread D Tim Cummings
to a given schema URL in Eclipse. Don't have > Eclipse installed to try now. > > Andrus > >> On May 24, 2018, at 6:56 PM, D Tim Cummings wrote: >> >> >> I have upgraded my cayenne to 4.1M1 and now I am getting the following >> errors in Eclip

Re: Cayenne 4.1M1 xml errors in Eclipse

2018-07-12 Thread D Tim Cummings
tion="http://cayenne.apache.org/schema/10/modelMap https://cayenne.apache.org/schema/10/modelMap.xsd"; Regards Tim > On 27 May 2018, at 18:15, D Tim Cummings wrote: > > I don’t think it is a network problem. I can access domain.xsd in a web > browser. Problem occurred immediat

4.1.M2 deprecates DataChannelFilter

2018-07-26 Thread D Tim Cummings
I see that 4.1.M2 has deprecated DataChannelFilter. Apparently we should use either DataChannelQueryFilter or DataChannelSyncFilter. I am following the example on https://cayenne.apache.org/docs/4.1/cayenne-guide/#lifecycle-events which still refers to DataChannelFilter. I would use DataChannel

Examples of Cayenne Tapestry apps

2021-05-12 Thread D Tim Cummings
Does anyone know of any good open-source Cayenne Tapestry apps that show best practice and latest features for using these two frameworks together? Most of the Tapestry examples use Hibernate. Tim OpenPGP_signature Description: OpenPGP digital signature

Re: Examples of Cayenne Tapestry apps

2021-05-13 Thread D Tim Cummings
his.sharedContext = sharedContext; > } > > @Override public ObjectContext get() { > return sharedContext; > } > } > > > >> On May 13, 2021, at 9:56 AM, D Tim Cummings > <mailto:t...@triptera.com.au>> wrote: >> >> Thanks Andrus. I am

Re: Examples of Cayenne Tapestry apps

2021-05-13 Thread D Tim Cummings
hen doing a submit. >> >> mrg >> >> [1] We learned the hard way that Tomcat has a default limit of 10k form >> inputs because one of our users was reporting data wasn't saving at the >> BOTTOM of the page, but was saving at the TOP. To make it worse, Tom

Re: Examples of Cayenne Tapestry apps

2021-06-08 Thread D Tim Cummings
international-capstone-exchange > > > That uses the integration service. Versions are kind of old, but the > idea is the same. > > > On 5/12/21 5:50 AM, D Tim Cummings wrote: >> Does anyone know of any good open-source Cayenne Tapestry apps that show >> best practice and

Re: Missing Injector inconsistently

2022-06-25 Thread D Tim Cummings
Thanks Andrus. This helps me too. I was clearing the folder /var/lib/tomcat9/work/Catalina/localhost after stopping tomcat and before starting it again to avoid the error. This hint is worthy of being part of the documentation. Tim On 24/6/22 17:54, Andrus Adamchik wrote: Hi Richard, I assu

Re: Which to pick: Cayenne 4.2 vs. 5.0?

2022-11-21 Thread D Tim Cummings
I am using 4.2 RC in production. No problems. Tim On 22/11/2022 07:40, Hugi Thordarson wrote: Hi guys! I'm about to be rid of a legacy DB that's been keeping my most important application stuck on a heavily modified Cayenne 4.1 stack. So, finally looking into joining modernity and upgrading C