Re: App not starting using 2 servers

2014-07-03 Thread Gino Pacitti
I did look at that page and I do have that configuration yet it does not go 
into the exact process to get wotaskd and womonitor and the apps to work 
together in unison. There are lots of commented out values that I don’t seem to 
have any documentation of how to set  in the scenario that I need.

i will try the reverse look up though and see if that sorts it out.

Gino
On 2 Jul 2014, at 22:12, Chuck Hill ch...@global-village.net wrote:

 Hi Gino,
 
 Hi Chuck
 Could it really come down to the reverse lookup?
 
 The domain is resolving to the IP address but the reverse is not… But I will 
 get a PTR record set up to check.
 
 Yes, it can come down to reverse lookup.  WO and wotaskd are unusually 
 particular about this.
 
 
 Another funny thing is that the config information of the SiteConfig.xml is 
 lost on Server1 on server restart or WOMonitor restart…  Am I right to have 
 the host and adaptor set to be on Server 2 and not Server 1?
 
 I am not sure what you mean.  Both servers should be setup as hosts in 
 Monitor.  If the SiteConfig.xml is actually getting written to the file 
 system on that server and then over written, that would indicate a 
 JavaMonitor / wotaskd communication problem… I think.  Make sure that you 
 don’t accidentally have Monitor running on both machines.
 
 Chuck
 
 
 
 Gino
 On 2 Jul 2014, at 21:04, Chuck Hill ch...@global-village.net wrote:
 
 Hi Gino,
 On 2014-07-02, 11:08 AM, Gino Pacitti wrote:
 Hi Chuck I tried localhost in the Properties file of wotaskd on both machines 
 only to get an error message that WOMonitor could not contact the wotaskd on 
 the second server.
 Localhost is best used only on your development machine.  You want the fully 
 qualified domain name and it needs to reverse-resolve correctly (e.g. Needs 
 to be a canonical name).
 I then set them to the IP address for each server and that seemed to allow 
 WOMonitor to continue to talk to the second server.
 I also changed the ServerName property of apache2.2 to the IP address on each 
 machine…
 That is not relevant to this problem.
 I did try and launch again and I got this:
 logging.ERXNSLogLog4jBridge (ERXNSLogLog4jBridge.java:44) - Application 
 'Daysout-1' on apps.daysout.co.uk:2001 stopped running at 2014-07-02 18:05:56 
 Etc/GMT.
 The app's current state was: STARTING.
 The app did not respond for 63530244236seconds which is greater than the 
 allowed threshold of 12 seconds (Lifebeat Interval * 
 WOAssumeApplicationIsDeadMultiplier) so it is assumed to be dead.
 The last successful communication occurred at: 1-04-25 00:00:00 Etc/GMT. This 
 may be the result of a crash or an intentional shutdown from outside of 
 wotaskd
 I expect that is caused by name / IP confusion between the machines.
 Have you reviewed this?
 http://wiki.wocommunity.org/pages/viewpage.action?pageId=7143530
 Chuck
 On 2 Jul 2014, at 18:42, Chuck Hill ch...@global-village.net wrote:
 Lots of details here
 http://wiki.wocommunity.org/dosearchsite.action?queryString=WOHost
 On 2014-07-02, 10:09 AM, Gino Pacitti wrote:
 Are you referring to Property files Chuck ?
 Perhaps you can point me in the right direction?
 G
 On 2 Jul 2014, at 18:04, Chuck Hill ch...@global-village.net wrote:
 How have you set WOHost for wotaskd, monitor, and the apps?
 Chuck
 On 2014-07-02, 9:52 AM, Gino Pacitti wrote:
 I have WOMonitor and WOTaskd running on server1 and only WOTaskd running on 
 server 2 but cannot get the app on Server 2 to start using WOMonitor...
 Tying a different configuration with WOMonitor and WOTaskd on Server 1
 I can get server 1 to run the app and all is well if I us server 1 as the 
 Host and Adaptor location.
 And again with a different configuration with WOMonitor and WOTaskd on Server 
 2
 I can get server 2 to run the app and is well if I use server 2 and the Host 
 and Adaptor location…
 But when I try to use Server1 as  the Load balancer with WOMonitor and 
 WOTaskd using Server 2 as the host I cannot get the app to start from Monitor 
 ?
 I can start it by command line … I have looked around but don’t seem to find 
 anything definitive as to what the issue can be…
 Any help?
 Gino
 ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 https://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net
 This email sent to ch...@global-village.net
 
 
 ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 https://lists.apple.com/mailman/options/webobjects-dev/ginokris%40me.com
 
 This email sent to ginok...@me.com


 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  

App not starting from Monitor

2014-07-03 Thread Gino Pacitti
Ok so I have 3 servers.

Server1 WOMonitor, WOTaskd, Apache2

Server2 WOTaskd, Apache2, WOApplications

Server3 Database


I have DNS and reverse look up on 2 domains. domain1.com points to Server1 and 
domain2 points to Server2

Server1 has the WOAdaptor loaded and has this setting in 

/etc/httpd/conf.d/webobjects.conf
WebObjectsConfig http://domain1.com:1085,http://domain2.com:1085 10

Properties file for wotaskd properties
/opt/Local/Library/WebObjects/JavaApplications/wotaskd.woa/Contents/Resources/Properties
WOHost=domain1.com


Server2 has the WOAdaptor loaded and has this setting in

/etc/httpd/conf.d/webobjects.conf
WebObjectsConfig http://domain1.com:1085,http://domain2.com:1085 10

/opt/Local/Library/WebObjects/JavaApplications/wotaskd.woa/Contents/Resources/Properties
WOHost=domain2.com



Using WOMonitor on Server1 I have both HOSTS set up and can view the config 
files from both WOTaskd SiteConfig.xml

I have an instance set up but it just will not start….

There is no WOHost set in the application Properties file or WOPort setting.

I have debugging turned  on but it never creates the log file in location...


Any help in resolving this?











 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: App not starting from Monitor

2014-07-03 Thread Gino Pacitti
When using this URL:

http://domain1:1085/WebObjects/wotaskd.woa/wa/woconfig
and
http://domain2:1085/WebObjects/wotaskd.woa/wa/woconfig

I get an empty node?

This XML file does not appear to have any style information associated with it. 
The document tree is shown below.
adaptor/adaptor

Does this help in debugging?

Gino


On 3 Jul 2014, at 10:29, Gino Pacitti ginok...@mac.com wrote:

 Ok so I have 3 servers.
 
 Server1 WOMonitor, WOTaskd, Apache2
 
 Server2 WOTaskd, Apache2, WOApplications
 
 Server3 Database
 
 
 I have DNS and reverse look up on 2 domains. domain1.com points to Server1 
 and domain2 points to Server2
 
 Server1 has the WOAdaptor loaded and has this setting in 
 
 /etc/httpd/conf.d/webobjects.conf
 WebObjectsConfig http://domain1.com:1085,http://domain2.com:1085 10
 
 Properties file for wotaskd properties
 /opt/Local/Library/WebObjects/JavaApplications/wotaskd.woa/Contents/Resources/Properties
 WOHost=domain1.com
 
 
 Server2 has the WOAdaptor loaded and has this setting in
 
 /etc/httpd/conf.d/webobjects.conf
 WebObjectsConfig http://domain1.com:1085,http://domain2.com:1085 10
 
 /opt/Local/Library/WebObjects/JavaApplications/wotaskd.woa/Contents/Resources/Properties
 WOHost=domain2.com
 
 
 
 Using WOMonitor on Server1 I have both HOSTS set up and can view the config 
 files from both WOTaskd SiteConfig.xml
 
 I have an instance set up but it just will not start….
 
 There is no WOHost set in the application Properties file or WOPort setting.
 
 I have debugging turned  on but it never creates the log file in location...
 
 
 Any help in resolving this?
 
 
 
 
 
 
 
 
 
 
 
 ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 https://lists.apple.com/mailman/options/webobjects-dev/ginokris%40mac.com
 
 This email sent to ginok...@mac.com


 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: App not starting from Monitor

2014-07-03 Thread Gino Pacitti
Hi Chuck
Actually its OK I resolved the problems…

All working now…

Gino
On 3 Jul 2014, at 19:21, Chuck Hill ch...@global-village.net wrote:

 Hi Gino,
 
 
 On 2014-07-03, 2:29 AM, Gino Pacitti wrote:
 
 Ok so I have 3 servers.
 
 Server1 WOMonitor, WOTaskd, Apache2
 
 Why is wotaskd on this machine if there are no applications?
 
 
 Server2 WOTaskd, Apache2, WOApplications
 
 Why is Apache on this machine if it is also on Server 1?
 
 This is not necessarily wrong, just curious.
 
 
 Server3 Database
 
 
 I have DNS and reverse look up on 2 domains. domain1.com points to Server1 
 and domain2 points to Server2
 
 Server1 has the WOAdaptor loaded and has this setting in
 
 /etc/httpd/conf.d/webobjects.conf
 WebObjectsConfig http://domain1.com:1085,http://domain2.com:1085 10
 
 Properties file for wotaskd properties
 /opt/Local/Library/WebObjects/JavaApplications/wotaskd.woa/Contents/Resources/Properties
 WOHost=domain1.com
 
 
 Server2 has the WOAdaptor loaded and has this setting in
 
 /etc/httpd/conf.d/webobjects.conf
 WebObjectsConfig http://domain1.com:1085,http://domain2.com:1085 10
 
 /opt/Local/Library/WebObjects/JavaApplications/wotaskd.woa/Contents/Resources/Properties
 WOHost=domain2.com
 
 
 
 Using WOMonitor on Server1 I have both HOSTS set up and can view the config 
 files from both WOTaskd SiteConfig.xml
 
 I have an instance set up but it just will not start….
 
 Won’t start (probably a permissions problem on the log file or path to log 
 file) or Monitor does not see it start (communications problem).
 
 
 There is no WOHost set in the application Properties file or WOPort setting.
 
 I’d set the WOHost to the domain of the server.
 
 
 I have debugging turned  on but it never creates the log file in location...
 
 That does sound like a permission problem.
 
 Any help in resolving this?
 
 I presented some improvements to wotaskd and Monitor at WOWODC this year.  
 You can get the presentation from the community site and the code from 
 https://github.com/chillatgvc/wonder/tree/WOWODC14
 
 It provides much better debug and diagnostic information.  See if that sheds 
 some light on your problem.
 
 Chuck
 


 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: App not starting from Monitor

2014-07-03 Thread Chuck Hill
Hi Gino,


On 2014-07-03, 2:29 AM, Gino Pacitti wrote:

Ok so I have 3 servers.

Server1 WOMonitor, WOTaskd, Apache2

Why is wotaskd on this machine if there are no applications?


Server2 WOTaskd, Apache2, WOApplications

Why is Apache on this machine if it is also on Server 1?

This is not necessarily wrong, just curious.


Server3 Database


I have DNS and reverse look up on 2 domains. domain1.com points to Server1 and 
domain2 points to Server2

Server1 has the WOAdaptor loaded and has this setting in

/etc/httpd/conf.d/webobjects.conf
WebObjectsConfig http://domain1.com:1085,http://domain2.com:1085 10

Properties file for wotaskd properties
/opt/Local/Library/WebObjects/JavaApplications/wotaskd.woa/Contents/Resources/Properties
WOHost=domain1.com


Server2 has the WOAdaptor loaded and has this setting in

/etc/httpd/conf.d/webobjects.conf
WebObjectsConfig http://domain1.com:1085,http://domain2.com:1085 10

/opt/Local/Library/WebObjects/JavaApplications/wotaskd.woa/Contents/Resources/Properties
WOHost=domain2.com



Using WOMonitor on Server1 I have both HOSTS set up and can view the config 
files from both WOTaskd SiteConfig.xml

I have an instance set up but it just will not start….

Won’t start (probably a permissions problem on the log file or path to log 
file) or Monitor does not see it start (communications problem).


There is no WOHost set in the application Properties file or WOPort setting.

I’d set the WOHost to the domain of the server.


I have debugging turned  on but it never creates the log file in location...

That does sound like a permission problem.

Any help in resolving this?

I presented some improvements to wotaskd and Monitor at WOWODC this year.  You 
can get the presentation from the community site and the code from 
https://github.com/chillatgvc/wonder/tree/WOWODC14

It provides much better debug and diagnostic information.  See if that sheds 
some light on your problem.

Chuck

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: App not starting from Monitor

2014-07-03 Thread Chuck Hill
What was the problem?

On 2014-07-03, 11:22 AM, Gino Pacitti wrote:

Hi Chuck
Actually its OK I resolved the problems…

All working now…

Gino
On 3 Jul 2014, at 19:21, Chuck Hill 
ch...@global-village.netmailto:ch...@global-village.net wrote:

Hi Gino,
On 2014-07-03, 2:29 AM, Gino Pacitti wrote:
Ok so I have 3 servers.
Server1 WOMonitor, WOTaskd, Apache2
Why is wotaskd on this machine if there are no applications?
Server2 WOTaskd, Apache2, WOApplications
Why is Apache on this machine if it is also on Server 1?
This is not necessarily wrong, just curious.
Server3 Database
I have DNS and reverse look up on 2 domains. domain1.com points to Server1 and 
domain2 points to Server2
Server1 has the WOAdaptor loaded and has this setting in
/etc/httpd/conf.d/webobjects.conf
WebObjectsConfig http://domain1.com:1085,http://domain2.com:1085 10
Properties file for wotaskd properties
/opt/Local/Library/WebObjects/JavaApplications/wotaskd.woa/Contents/Resources/Properties
WOHost=domain1.com
Server2 has the WOAdaptor loaded and has this setting in
/etc/httpd/conf.d/webobjects.conf
WebObjectsConfig http://domain1.com:1085,http://domain2.com:1085 10
/opt/Local/Library/WebObjects/JavaApplications/wotaskd.woa/Contents/Resources/Properties
WOHost=domain2.com

Using WOMonitor on Server1 I have both HOSTS set up and can view the config 
files from both WOTaskd SiteConfig.xml
I have an instance set up but it just will not start….
Won’t start (probably a permissions problem on the log file or path to log 
file) or Monitor does not see it start (communications problem).
There is no WOHost set in the application Properties file or WOPort setting.
I’d set the WOHost to the domain of the server.
I have debugging turned  on but it never creates the log file in location...
That does sound like a permission problem.
Any help in resolving this?
I presented some improvements to wotaskd and Monitor at WOWODC this year.  You 
can get the presentation from the community site and the code from 
https://github.com/chillatgvc/wonder/tree/WOWODC14
It provides much better debug and diagnostic information.  See if that sheds 
some light on your problem.
Chuck


___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  
(Webobjects-dev@lists.apple.commailto:Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net

This email sent to ch...@global-village.netmailto:ch...@global-village.net
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: App not starting from Monitor

2014-07-03 Thread Gino Pacitti
Hi Chuck
Must have been the reverse lookup and proper configuration of the wotaskd 
properties and webobjects adaptor…

Documentation is a bit vague when it comes to profiling configurations and so I 
muddled through… :-)
Thank goodness I am not a total newbie as it was not very straight forward…

All working now… And its on a virtualised system with Centos OS and all seems 
fast…

G
 

On 3 Jul 2014, at 19:24, Chuck Hill ch...@global-village.net wrote:

 What was the problem?
 
 On 2014-07-03, 11:22 AM, Gino Pacitti wrote:
 
 Hi Chuck
 Actually its OK I resolved the problems…
 
 All working now…
 
 Gino
 On 3 Jul 2014, at 19:21, Chuck Hill ch...@global-village.net wrote:
 
 Hi Gino,
 On 2014-07-03, 2:29 AM, Gino Pacitti wrote:
 Ok so I have 3 servers.
 Server1 WOMonitor, WOTaskd, Apache2
 Why is wotaskd on this machine if there are no applications?
 Server2 WOTaskd, Apache2, WOApplications
 Why is Apache on this machine if it is also on Server 1?
 This is not necessarily wrong, just curious.
 Server3 Database
 I have DNS and reverse look up on 2 domains. domain1.com points to Server1 
 and domain2 points to Server2
 Server1 has the WOAdaptor loaded and has this setting in
 /etc/httpd/conf.d/webobjects.conf
 WebObjectsConfig http://domain1.com:1085,http://domain2.com:1085 10
 Properties file for wotaskd properties
 /opt/Local/Library/WebObjects/JavaApplications/wotaskd.woa/Contents/Resources/Properties
 WOHost=domain1.com
 Server2 has the WOAdaptor loaded and has this setting in
 /etc/httpd/conf.d/webobjects.conf
 WebObjectsConfig http://domain1.com:1085,http://domain2.com:1085 10
 /opt/Local/Library/WebObjects/JavaApplications/wotaskd.woa/Contents/Resources/Properties
 WOHost=domain2.com
 
 Using WOMonitor on Server1 I have both HOSTS set up and can view the config 
 files from both WOTaskd SiteConfig.xml
 I have an instance set up but it just will not start….
 Won’t start (probably a permissions problem on the log file or path to log 
 file) or Monitor does not see it start (communications problem).
 There is no WOHost set in the application Properties file or WOPort setting.
 I’d set the WOHost to the domain of the server.
 I have debugging turned  on but it never creates the log file in location...
 That does sound like a permission problem.
 Any help in resolving this?
 I presented some improvements to wotaskd and Monitor at WOWODC this year.  
 You can get the presentation from the community site and the code from 
 https://github.com/chillatgvc/wonder/tree/WOWODC14
 It provides much better debug and diagnostic information.  See if that sheds 
 some light on your problem.
 Chuck
 
 
 ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 https://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net
 
 This email sent to ch...@global-village.net


 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

EO_PK_TABLE and weird stuff

2014-07-03 Thread Timothy Worman
All:

This week I had something happen that I’d never experienced before. I had two 
EO’s get inserted without incrementing the pk value in EO_PK_TABLE. The app is 
a self-serve account creation tool that injects records into LDAP - so the EO 
is Person.

The last id’s to be used for this Person entity were:

16662   2014-06-25 13:57:33 -0700  
16663   2014-06-25 13:59:49 -0700  
16664   2014-07-02 08:25:37 -0700  
16665   2014-07-02 12:35:36 -0700

Jul 02 12:02:43PM I have a person trying to create a record for themselves and 
it attempts to use 16662 as the person_id. Then, at Jul 02 12:11:23PM, there is 
an attempt by the same person and the pk selected is 16663.

On the chance that this possibly continues to happen, where should I be looking 
to figure out what might be occurring here.

Tim
UCLA GSEIS
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: EO_PK_TABLE and weird stuff

2014-07-03 Thread Ken Anderson
This usually happens to me when I restore database tables and forget about 
EO_PK_TABLE.  Have you checked to see what value is in EO_PK_TABLE right now?

Have you done any maintenance to your DB lately?

Ken

On Jul 3, 2014, at 5:56 PM, Timothy Worman li...@thetimmy.com wrote:

 All:
 
 This week I had something happen that I’d never experienced before. I had two 
 EO’s get inserted without incrementing the pk value in EO_PK_TABLE. The app 
 is a self-serve account creation tool that injects records into LDAP - so the 
 EO is Person.
 
 The last id’s to be used for this Person entity were:
 
 16662 2014-06-25 13:57:33 -0700  
 16663 2014-06-25 13:59:49 -0700  
 16664 2014-07-02 08:25:37 -0700  
 16665 2014-07-02 12:35:36 -0700
 
 Jul 02 12:02:43PM I have a person trying to create a record for themselves 
 and it attempts to use 16662 as the person_id. Then, at Jul 02 12:11:23PM, 
 there is an attempt by the same person and the pk selected is 16663.
 
 On the chance that this possibly continues to happen, where should I be 
 looking to figure out what might be occurring here.
 
 Tim
 UCLA GSEIS
 ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 https://lists.apple.com/mailman/options/webobjects-dev/kenlists%40anderhome.com
 
 This email sent to kenli...@anderhome.com


 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: EO_PK_TABLE and weird stuff

2014-07-03 Thread Timothy Worman
I haven’t done any maintenance lately and I’ve never done any individual table 
restores with this database - I always do full dumps. So it’s unlikely that any 
tables would individually have their state changed.

I checked the value yesterday to confirm that it properly incremented after a 
successful add of a record. It did - so I was relieved about that. It sits 
(properly) at 16667 right now.

Where is the code that handles this? Deep in the bowels of EOF or in the DB 
plug-in?

Tim

On Jul 3, 2014, at 3:00 PM, Ken Anderson kenli...@anderhome.com wrote:

 This usually happens to me when I restore database tables and forget about 
 EO_PK_TABLE.  Have you checked to see what value is in EO_PK_TABLE right now?
 
 Have you done any maintenance to your DB lately?
 
 Ken
 
 On Jul 3, 2014, at 5:56 PM, Timothy Worman li...@thetimmy.com wrote:
 
 All:
 
 This week I had something happen that I’d never experienced before. I had 
 two EO’s get inserted without incrementing the pk value in EO_PK_TABLE. The 
 app is a self-serve account creation tool that injects records into LDAP - 
 so the EO is Person.
 
 The last id’s to be used for this Person entity were:
 
 166622014-06-25 13:57:33 -0700  
 166632014-06-25 13:59:49 -0700  
 166642014-07-02 08:25:37 -0700  
 166652014-07-02 12:35:36 -0700
 
 Jul 02 12:02:43PM I have a person trying to create a record for themselves 
 and it attempts to use 16662 as the person_id. Then, at Jul 02 12:11:23PM, 
 there is an attempt by the same person and the pk selected is 16663.
 
 On the chance that this possibly continues to happen, where should I be 
 looking to figure out what might be occurring here.
 
 Tim
 UCLA GSEIS
 ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 https://lists.apple.com/mailman/options/webobjects-dev/kenlists%40anderhome.com
 
 This email sent to kenli...@anderhome.com
 


 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

ERMigration and skipModelNames

2014-07-03 Thread Matt Ness
Hi all,

I seem to be missing something with the wonder Property

er.migration.skipModelNames

If I have an application-level Model, say AppLevelModel, which has an EO or 
two with relationships to a framework model, say ERAttachment, and have the 
following Properties in the application:

er.migration.migrateAtStartup=true
er.migration.createTablesIfNecessary=true
er.migration.modelNames=AppLevelModel
er.migration.skipModelNames=ERAttachment


what should I expect to occur at runtime? As it stands, the migration process 
attempts to run the ERAttachment0 java class, which is not really what I want, 
and fails as those tables are already in the db. I perhaps naively expected all 
values in that property to be skipped.

This comes about (for me at least) when introducing the migration pattern into 
an existing application with a db schema already up and running. I obviously 
want to keep my db values in place and not have to 'start from scratch'.

Anyone used/using er.migration.skipModelNames? I have an (ugly) workaround, but 
I'd like to know if my understanding of the pattern is wrong.

Regards,

Matt
--
http://logicsquad.net

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: EO_PK_TABLE and weird stuff

2014-07-03 Thread Ray Kiddy
On Thu, 03 Jul 2014 14:56:49 -0700
Timothy Worman li...@thetimmy.com wrote:

 All:
 
 This week I had something happen that I’d never experienced before. I
 had two EO’s get inserted without incrementing the pk value in
 EO_PK_TABLE. The app is a self-serve account creation tool that
 injects records into LDAP - so the EO is Person.
 
 The last id’s to be used for this Person entity were:
 
 16662 2014-06-25 13:57:33 -0700  
 16663 2014-06-25 13:59:49 -0700  
 16664 2014-07-02 08:25:37 -0700  
 16665 2014-07-02 12:35:36 -0700
 
 Jul 02 12:02:43PM I have a person trying to create a record for
 themselves and it attempts to use 16662 as the person_id. Then, at
 Jul 02 12:11:23PM, there is an attempt by the same person and the pk
 selected is 16663.
 
 On the chance that this possibly continues to happen, where should I
 be looking to figure out what might be occurring here.
 
 Tim
 UCLA GSEIS

Are you doing some things to this table in another app also? I may be
confused here. LDAP is handled by the JavaJNDIAdaptor framework.
References to the EO_PK_TABLE appear only in the JavaDJDBCAdaptor
framework.

I can see that there is code in the newPrimaryKeys() method in the
JDBCPlugin class that manipulates the EO_PK_TABLE. I do not see
anything similar in the primaryKeysForNewRowsWithEntity() method in the
JNDIChannel class. Since LDAP is not a relational database, what sort
of primary keys do you think are being used?

Insofar as LDAP has keys, they seem to be strings. So again, what would
the EO_PK_TABLE, which stores numbers, do with them?

Your info suggests that this sometimes works and sometimes does not. I
do not see how it would ever work. Any ideas?

- ray

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: EO_PK_TABLE and weird stuff

2014-07-03 Thread Timothy Worman
On Jul 3, 2014, at 3:37 PM, Ray Kiddy r...@ganymede.org wrote:

 On Thu, 03 Jul 2014 14:56:49 -0700
 Timothy Worman li...@thetimmy.com wrote:
 
 All:
 
 This week I had something happen that I’d never experienced before. I
 had two EO’s get inserted without incrementing the pk value in
 EO_PK_TABLE. The app is a self-serve account creation tool that
 injects records into LDAP - so the EO is Person.
 
 The last id’s to be used for this Person entity were:
 
 166622014-06-25 13:57:33 -0700  
 166632014-06-25 13:59:49 -0700  
 166642014-07-02 08:25:37 -0700  
 166652014-07-02 12:35:36 -0700
 
 Jul 02 12:02:43PM I have a person trying to create a record for
 themselves and it attempts to use 16662 as the person_id. Then, at
 Jul 02 12:11:23PM, there is an attempt by the same person and the pk
 selected is 16663.
 
 On the chance that this possibly continues to happen, where should I
 be looking to figure out what might be occurring here.
 
 Tim
 UCLA GSEIS
 
 Are you doing some things to this table in another app also? I may be
 confused here. LDAP is handled by the JavaJNDIAdaptor framework.
 References to the EO_PK_TABLE appear only in the JavaDJDBCAdaptor
 framework.
 
 I can see that there is code in the newPrimaryKeys() method in the
 JDBCPlugin class that manipulates the EO_PK_TABLE. I do not see
 anything similar in the primaryKeysForNewRowsWithEntity() method in the
 JNDIChannel class. Since LDAP is not a relational database, what sort
 of primary keys do you think are being used?
 
 Insofar as LDAP has keys, they seem to be strings. So again, what would
 the EO_PK_TABLE, which stores numbers, do with them?
 
 Your info suggests that this sometimes works and sometimes does not. I
 do not see how it would ever work. Any ideas?
 
 - ray

Ray, these insertions are not happening directly to LDAP. They are happening 
against a relational db which the app then subsequently utilizes to perform 
scheduled insertions into LDAP.

I will be looking at my JDBCPlugin to be sure something isn’t going afoul there.

Thanks,

Tim
UCLA GSEIS
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com