Re: WOLips bugfixes and new features planning

2021-04-26 Thread Mark Gowdy via Webobjects-dev


> On 26 Apr 2021, at 13:58, Jesse Tayler via Webobjects-dev 
>  wrote:
> 
> I sure look forward to a refresh, not sure why but my current install often 
> renders wrong, or basically you have to assume a file is what you expect and 
> double-smack and then it draws the fresh name but mostly it is stale screen 
> dirt leftover from whatever was there before…

I think that might be a rendering bug in your version of Eclipse (not WOLips 
related) - Maybe.

Mark

> 
> 
> 
>> On Apr 26, 2021, at 8:54 AM, Maik Musall via Webobjects-dev 
>> mailto:webobjects-dev@lists.apple.com>> 
>> wrote:
>> 
>> Hi everyone,
>> 
>> regarding our WOLips project, I’d like to give a short progress update that 
>> I received from Stepan.
>> 
>> As he can only work on this on weekends, and vacations happened, there’s 
>> nothing to show yet, but he’s in the midst of working on migration to the 
>> latest Eclipse version. This work could be splitted into 2 parts: code 
>> migration and build migration. He reports good progress with code migration 
>> but the build system being used is really old. So, he's currently trying to 
>> change it to the new build framework based on Maven.
>> 
>> I’ll keep you updated.
>> 
>> Maik
>> 
>> ___
>> 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/jtayler%40oeinc.com 
>> 
>> 
>> This email sent to jtay...@oeinc.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/mark%40gowdy.co.uk 
> 
> 
> This email sent to m...@gowdy.co.uk 
 ___
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: DirectConnect and Security

2019-08-13 Thread Mark Gowdy via Webobjects-dev


> On 12 Aug 2019, at 14:01, Samuel Pelletier  wrote:
> 
> Hi Mark,
> 
> If you want to simulate a WOAdaotor environment and have the app generate 
> static file URL, configure your load balancer to add 
> "x-webobjects-adaptor-version" header like I do using apache reverse proxy:
> 
> RequestHeader set x-webobjects-adaptor-version “1"

It doesn’t look like I can set RequestHeaders within AWS - Application Load 
Balancer.

:-(


> 
> Regards,
> 
> Samuel
> 
> 
>> Le 12 août 2019 à 06:52, Mark Gowdy via Webobjects-dev 
>> mailto:webobjects-dev@lists.apple.com>> a 
>> écrit :
>> 
>> 
>> 
>>> On 12 Aug 2019, at 10:03, Matthew Ness via Webobjects-dev 
>>> mailto:webobjects-dev@lists.apple.com>> 
>>> wrote:
>>> 
>>> 
>>> 
>>> On Sat, Aug 10, 2019, at 5:54 AM, Mark Gowdy via Webobjects-dev wrote:
>>>> Hi.
>>>> 
>>>> Is anyone aware of any security issues (or other considerations) with 
>>>> Direct Connect mode for a live deployment?
>>>> 
>>>> This will be using the Amazon’s Application Load Balancer.
>>>> And it _might_ mean that I can ditch Apache once and for all :-)
>>>> 
>>>> Thanks, 
>>>> 
>>>> Mark
>>> 
>>> 
>>> Hi Mark,
>>> 
>>> If you are applying a cert to your ALB, then SSL effectively terminates at 
>>> that point and the request is forwarded on to your direct connect EC2 
>>> instances.
>>> I'm not sure what kind of security issues you are envisioning. Your should 
>>> hold your EC2 instances security considerations to the same standard 
>>> whether using Apache over 443 or your app on, say, 5.
>>> To that end, there should be no accessibility outside the above mentioned 
>>> ALB connectivity and some administration bastion host for your terminal 
>>> access.
>>> 
>>> Having said all that, if your application is completely session-less, then 
>>> you're good to go.
>>> 
>>> If you have sessions in your app you still have some problems to overcome.
>>> You can use session affinity (sticky sessions) in ALB/ELB (but not Network 
>>> LB), but be aware they require cookies on the client.
>>> So, you have the sticky sessions working, great! As your load balancer 
>>> horizontally scales out, it's creating EC2 instances running your java app. 
>>> But when your ALB decides to scale _in_, it'll wipe one or more of your EC2 
>>> instances, which could still have active sessions.
>>> So, unless you de-/serialise your Sessions at the start and end of the R-R 
>>> loop and store that somewhere else (db/redis/etc) which your EC2 instances 
>>> would have access to, it may annoy some users. 
>>> Because of proprietary classes in WO, Session serialisation is unsolved and 
>>> inflexible.
>> 
>> Wow..
>> 
>> Thanks for the info.
>> 
>> My apps have session, and I was planning on using sticky sessions with the 
>> AWS’s ALB (Application Load Balancer).  I am aware of the cookie monster :-)
>> 
>> I will be using the ALB with an explicit list of AppServers, so I don’t 
>> _think_ that will be a problem.  There will be no auto-scaling (for now).
>> Basically, I plan to use ALB in the _similar_ way to Apache’s mod_proxy.
>> 
>> I tried session serialisation (in the DB) a long time ago, and it wasn’t an 
>> ideal solution.. I would rather not go there.
>> 
>> I am happy enough with any network security concerns (i.e. nothing within 
>> the VPC can be accessed externally).  The only way in is via the ALB (with 
>> SSL) with SSL redirection rules etc..
>> 
>> My question was mainly around Direct Connect mode in the Application.
>> e.g. I know it accesses the WebServer resources using a full system path in 
>> the URL.
>> But I know in that case it can’t access any files outside of its scope, so 
>> that should be fine.
>> 
>> I just wanted to check if anyone knew of any security ‘gotchas’ I was 
>> unaware when using DirectConnect.
>> 
>> Thanks, 
>> 
>> Mark
>> 
>>> 
>>> 
>>> Regards,
>>> 
>>> 
>>> -- 
>>> Matt
>>> http://logicsquad.net <http://logicsquad.net/>
>>> https://www.linkedin.com/company/logic-squad/
>>> ___
>>> Do not post admin requests to the list. They will be ignored.
>>> Webobjects-dev mailing list

Re: DirectConnect and Security

2019-08-12 Thread Mark Gowdy via Webobjects-dev


> On 12 Aug 2019, at 10:03, Matthew Ness via Webobjects-dev 
>  wrote:
> 
> 
> 
> On Sat, Aug 10, 2019, at 5:54 AM, Mark Gowdy via Webobjects-dev wrote:
>> Hi.
>> 
>> Is anyone aware of any security issues (or other considerations) with 
>> Direct Connect mode for a live deployment?
>> 
>> This will be using the Amazon’s Application Load Balancer.
>> And it _might_ mean that I can ditch Apache once and for all :-)
>> 
>> Thanks, 
>> 
>> Mark
> 
> 
> Hi Mark,
> 
> If you are applying a cert to your ALB, then SSL effectively terminates at 
> that point and the request is forwarded on to your direct connect EC2 
> instances.
> I'm not sure what kind of security issues you are envisioning. Your should 
> hold your EC2 instances security considerations to the same standard whether 
> using Apache over 443 or your app on, say, 5.
> To that end, there should be no accessibility outside the above mentioned ALB 
> connectivity and some administration bastion host for your terminal access.
> 
> Having said all that, if your application is completely session-less, then 
> you're good to go.
> 
> If you have sessions in your app you still have some problems to overcome.
> You can use session affinity (sticky sessions) in ALB/ELB (but not Network 
> LB), but be aware they require cookies on the client.
> So, you have the sticky sessions working, great! As your load balancer 
> horizontally scales out, it's creating EC2 instances running your java app. 
> But when your ALB decides to scale _in_, it'll wipe one or more of your EC2 
> instances, which could still have active sessions.
> So, unless you de-/serialise your Sessions at the start and end of the R-R 
> loop and store that somewhere else (db/redis/etc) which your EC2 instances 
> would have access to, it may annoy some users. 
> Because of proprietary classes in WO, Session serialisation is unsolved and 
> inflexible.

Wow..

Thanks for the info.

My apps have session, and I was planning on using sticky sessions with the 
AWS’s ALB (Application Load Balancer).  I am aware of the cookie monster :-)

I will be using the ALB with an explicit list of AppServers, so I don’t _think_ 
that will be a problem.  There will be no auto-scaling (for now).
Basically, I plan to use ALB in the _similar_ way to Apache’s mod_proxy.

I tried session serialisation (in the DB) a long time ago, and it wasn’t an 
ideal solution.. I would rather not go there.

I am happy enough with any network security concerns (i.e. nothing within the 
VPC can be accessed externally).  The only way in is via the ALB (with SSL) 
with SSL redirection rules etc..

My question was mainly around Direct Connect mode in the Application.
e.g. I know it accesses the WebServer resources using a full system path in the 
URL.
But I know in that case it can’t access any files outside of its scope, so that 
should be fine.

I just wanted to check if anyone knew of any security ‘gotchas’ I was unaware 
when using DirectConnect.

Thanks, 

Mark

> 
> 
> Regards,
> 
> 
> -- 
> Matt
> http://logicsquad.net
> https://www.linkedin.com/company/logic-squad/
> ___
> 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/mark%40gowdy.co.uk
> 
> This email sent to m...@gowdy.co.uk

 ___
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


DirectConnect and Security

2019-08-09 Thread Mark Gowdy via Webobjects-dev
Hi.

Is anyone aware of any security issues (or other considerations) with Direct 
Connect mode for a live deployment?

This will be using the Amazon’s Application Load Balancer.
And it _might_ mean that I can ditch Apache once and for all :-)

Thanks, 

Mark
 ___
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: Date - time picker

2017-10-13 Thread Mark Gowdy
Hi, 

I found that bootstrap (with jQuery) and the Ajax framework (prototype.js) 
would tend to clash a bit.

Try these 3 things in order:

1) Try putting this just before 
jQuery.noConflict();
And when you access jQuery in your page, don’t use the ‘$.someThing()’ 
notation, use the full ‘jQuery.someThing()’ instead.

2) The order in which you put the  is also 
significant (but this can be tricky to control because Ajax injects its own 
ones at runtime).

3) If things start randomly disappearing from the browser.
I found that the prototype.js has a hide(element) function that causes issues 
with Bootstrap v3.

My comment:  (in my /js/ajax_prototype_fix.js file)
 * Contains a minor update to help with an issue with Twitter Bootstrap v3, 
where certain elements (pop-ups, etc) would disappear after a roll-over.
 * See the 'hide(element)' function below.
 * To use, add 'noProtoJs' to your element's class (if you find they disappear 
for no obvious reason). 
 * E.g. Tab 1
 *
 * TODO: There is certainly a better way to fix this issue, but this works for 
now.

I replaced the hide function with:

  function hide(element) {
/*  MG - See intro text at top. This helps with Twitter BootStrap 3 */
if(!hasClassName(element, 'noProtoJs')){
element = $(element);
element.style.display = 'none';
}
return element;
  }

You can tell Wonder to load a different prototype.js using config:
# Replace the default Ajax:prototype.js with my own one (to fix a bootstrap 
issue)
er.extensions.ERXResponseRewriter.resource.Ajax.prototype.js=MGUtilities.mg/js/ajax_prototype_fix.js


Good luck.

Mark


> On 13 Oct 2017, at 15:43, Stavros Panidis <stavros.pani...@gmail.com> wrote:
> 
> Dear Theodore,
> 
> sure you are not. Sure it is my problem to explain due also to my pure 
> english.
> 
> 
> In my application I use bootstrap css framework for styling (getbootstrap.com 
> <http://getbootstrap.com/>) . This framework has also a nice date/time picker 
> component. This works fine inside my WOComponent but when I add a 
> AjaxUpdateContainer at the same component does not work anymore.
> 
> Then I tried the AjaxDate picker from Ajax examples. This works fine but it 
> is not conforms in style with other elements like text fields, check boxes 
> etc.
> 
> I hope that I explained a little bit.
> 
> Stavros
> 
>> On 13 Oct 2017, at 16:30, Stavros Panidis <stavros.pani...@gmail.com 
>> <mailto:stavros.pani...@gmail.com>> wrote:
>> 
>> Dear,
>> 
>> I try to implement Bootstrap date time picker style in a WOComponent. 
>> Javascript and css works fine except the case that in this component the is 
>> also a AjaxUpdateContainer (which I certainly need for other controls).
>> 
>> I tried also with AjaxDatePicker which works fine but I don’t know if it is 
>> possible to apply bootstrap styling on this.
>> 
>> Any suggestions?
>> 
>> Stavros
> 
> ___
> 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/mark%40gowdy.co.uk
> 
> This email sent to m...@gowdy.co.uk

_
Mark Gowdy
Gowdy Associates Ltd
M: +44 7808 400 941
Skype: markgowdy




 ___
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: Migrating to google cloud

2017-07-23 Thread Mark Gowdy

On 22 Jul 2017, at 02:38, Paul Hoadley  wrote:

>> nginx as a front-end for future load-balancing
> 
> ELB. https://aws.amazon.com/elasticloadbalancing/
> 

Has anyone considered using the more advanced ELB setup as an alternative to 
apache and the adaptor? 
Similar to how mod_proxy works.

Static stuff could be served from S3, and ELB would load balance across the 
instances?

Just a thought.

MarkG

>> WO instances run from a command-line. 
> 
> We still use JavaMonitor and have Apache on board the appservers
 ___
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: cryptoString prototype

2017-06-11 Thread Mark Gowdy

> On 11 Jun 2017, at 12:51, Mark Gowdy <m...@gowdy.co.uk> wrote:
> 
> Hi, 
> 
> Are there any examples on how to use the prototype ‘cryptoString’
> I was hoping it was going to be as simple as binding it my forms, and it 
> would take care of everything else.  But that doesn’t seem to be the case.
> 
> Or do I need to use a formatter to do that?

Ignore me.

This works (for reference). 



public ERXCryptoStringFormatter cryptoStrFormatter = new 
ERXCryptoStringFormatter();

> 
> Thanks, 
> 
> Mark
> _
> Mark Gowdy
> Gowdy Associates Ltd
> M: +44 7808 400 941
> Skype: markgowdy
> 
> 
> 
> 

_
Mark Gowdy
Gowdy Associates Ltd
M: +44 7808 400 941
Skype: markgowdy




 ___
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


cryptoString prototype

2017-06-11 Thread Mark Gowdy
Hi, 

Are there any examples on how to use the prototype ‘cryptoString’
I was hoping it was going to be as simple as binding it my forms, and it would 
take care of everything else.  But that doesn’t seem to be the case.

Or do I need to use a formatter to do that?

Thanks, 

Mark
_
Mark Gowdy
Gowdy Associates Ltd
M: +44 7808 400 941
Skype: markgowdy




 ___
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


AWS ELB "Application Load Balancer"?

2017-06-06 Thread Mark Gowdy
Hi, has anyone looked at AWS - ELB (Elastic Load Balancer) "Application Load 
Balancer" as an alternative to Apache and the adaptor (in a similar way that 
mod_proxy config works)?

Mark




 ___
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: WOWODC17?? a little OT

2017-01-13 Thread Mark Gowdy

> On 13 Jan 2017, at 17:15, Chuck Hill <ch...@gevityinc.com> wrote:
> 
> Are those…. Goats?

I ain’t afraid of no goats!

>  
>  
> From: <webobjects-dev-bounces+chill=gevityinc@lists.apple.com 
> <mailto:webobjects-dev-bounces+chill=gevityinc@lists.apple.com>> on 
> behalf of Hugi Thordarson <h...@karlmenn.is <mailto:h...@karlmenn.is>>
> Date: Friday, January 13, 2017 at 6:39 AM
> To: "webobjects-dev@lists.apple.com <mailto:webobjects-dev@lists.apple.com>" 
> <webobjects-dev@lists.apple.com <mailto:webobjects-dev@lists.apple.com>>
> Subject: Re: WOWODC17?? a little OT
>  
> Awesome, I’ve already booked a venue. Look forward to seeing you guys.
>  
> 
>  
> 
> 
> On 13. jan. 2017, at 14:22, Markus Ruggiero <mailingli...@kataputt.com 
> <mailto:mailingli...@kataputt.com>> wrote:
> 
> Iceland? Would be interesting. And I may go if there is a WOWODC17 at all
> 
> 
> On 13.01.2017, at 04:10, Chuck Hill <ch...@gevityinc.com 
> <mailto:ch...@gevityinc.com>> wrote:
> 
> You have an extremely lenient definition of food!
>  
> +1 on women and hot springs
> 
> 
> 
> 
> -100 on hakarl
> hakarl? what's that? Must be aful judging by Chuck's thumbs down
> 
> ---markus---
> 
> 
> ___
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com 
> <mailto:Webobjects-dev@lists.apple.com>)
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/hugi%40karlmenn.is 
> <https://lists.apple.com/mailman/options/webobjects-dev/hugi%40karlmenn.is>
> 
> This email sent to h...@karlmenn.is <mailto:h...@karlmenn.is>
>  
> ___
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com 
> <mailto:Webobjects-dev@lists.apple.com>)
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/mark%40gowdy.co.uk 
> <https://lists.apple.com/mailman/options/webobjects-dev/mark%40gowdy.co.uk>
> 
> This email sent to m...@gowdy.co.uk <mailto:m...@gowdy.co.uk>

_
Mark Gowdy
Gowdy Associates Ltd
M: +44 7808 400 941
Skype: markgowdy




 ___
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: Maven + WOnder 7

2017-01-06 Thread Mark Gowdy
Hi, 

Nearly there.

I have my frameworks converted to use Maven (dependencies are nice btw), and 
have got my first app to run in Development.
I deploy it (for now), using [Run As : Maven Install], and copy the resulting 
tar.gz file to the server.

When I run it on the server, the app tries to start up, goes 100% CPU for about 
4 minutes, then finally starts.
To be fair, it is on a Raspberry Pi, but the old (pre-maven) ant build didn’t 
have this problem.

java version "1.8.0_65"
Java(TM) SE Runtime Environment (build 1.8.0_65-b17)
Java HotSpot(TM) Client VM (build 25.65-b01, mixed mode)

Application log:
..etc..
  
/opt/mg/apps/Switches/Switches-V3.woa/Contents/Resources/Java/com/webobjects/JavaWebServicesSupport/5.4.3/JavaWebServicesSupport-5.4.3.jar
  
/opt/mg/apps/Switches/Switches-V3.woa/Contents/Resources/Java/com/webobjects/JavaXML/5.4.3/JavaXML-5.4.3.jar
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further 
details.
WILL ADD SHUTDOWNHOOK
Jan 06 13:56:37 N/A[N/A] INFO  org.apache.log4j.Logger  - Updated the logging 
configuration with the current system properties.
Jan 06 13:56:37 N/A[N/A] INFO  org.apache.log4j.Logger  - Updated the logging 
configuration with the current system properties.
<<== LONG WAIT HERE ==>>
Jan 06 14:00:10 N/A[N/A] WARN  NSLog  - Couldn't load properties file: 
/home/pi/WebObjects.properties at path: /home/pi
Jan 06 14:00:10 N/A[N/A] DEBUG NSLog  - WOMaxIOBufferSize=8196
..etc..

Any thoughts on what is causing it to go mental?

Mark

> On 5 Jan 2017, at 09:20, Mark Gowdy <m...@gowdy.co.uk> wrote:
> 
> Paul, 
> 
> I was going to show you the error.
> (which was something like ‘wonder.ajax : Ajax.jar not found’)
> 
> but when I tried to reproduce it, it only went and worked !! (rather 
> suspiciously)
> 
> Although I am not complaining.
> 
> Thanks for you help,
> 
> Mark
> 
>> On 4 Jan 2017, at 22:50, Paul Hoadley <pa...@logicsquad.net 
>> <mailto:pa...@logicsquad.net>> wrote:
>> 
>> Hi Mark,
>> 
>> On 5 Jan 2017, at 3:34 am, Mark Gowdy <m...@gowdy.co.uk 
>> <mailto:m...@gowdy.co.uk>> wrote:
>> 
>>> My issue now is trying to get Ajax (from the Wonder Frameworks) into the 
>>> mix.
>>> 
>>> I have tried various entries in the pom file (such as)
>>> --
>>> 
>>> wonder.ajax
>>> Ajax
>>> ${wonder.version}
>>> 
>>> --
>>> But no success yet.
>>> 
>>> Any ideas?
>> 
>> That should certainly do it, as long as you’re declaring wonder.version 
>> somewhere, either in that project’s POM or some parent of it. What’s the 
>> error you’re seeing?
>> 
>> 
>> -- 
>> Paul Hoadley
>> http://logicsquad.net/ <http://logicsquad.net/>
>> https://www.linkedin.com/company/logic-squad/ 
>> <https://www.linkedin.com/company/logic-squad/>
>> 
>> 
>> 
> 
> _
> Mark Gowdy
> Gowdy Associates Ltd
> M: +44 7808 400 941
> Skype: markgowdy
> 
> 
> 
> 

_
Mark Gowdy
Gowdy Associates Ltd
M: +44 7808 400 941
Skype: markgowdy




 ___
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: Maven + WOnder 7

2017-01-05 Thread Mark Gowdy
Paul, 

I was going to show you the error.
(which was something like ‘wonder.ajax : Ajax.jar not found’)

but when I tried to reproduce it, it only went and worked !! (rather 
suspiciously)

Although I am not complaining.

Thanks for you help,

Mark

> On 4 Jan 2017, at 22:50, Paul Hoadley <pa...@logicsquad.net> wrote:
> 
> Hi Mark,
> 
> On 5 Jan 2017, at 3:34 am, Mark Gowdy <m...@gowdy.co.uk 
> <mailto:m...@gowdy.co.uk>> wrote:
> 
>> My issue now is trying to get Ajax (from the Wonder Frameworks) into the mix.
>> 
>> I have tried various entries in the pom file (such as)
>> --
>> 
>>  wonder.ajax
>>  Ajax
>>  ${wonder.version}
>> 
>> --
>> But no success yet.
>> 
>> Any ideas?
> 
> That should certainly do it, as long as you’re declaring wonder.version 
> somewhere, either in that project’s POM or some parent of it. What’s the 
> error you’re seeing?
> 
> 
> -- 
> Paul Hoadley
> http://logicsquad.net/ <http://logicsquad.net/>
> https://www.linkedin.com/company/logic-squad/
> 
> 
> 

_
Mark Gowdy
Gowdy Associates Ltd
M: +44 7808 400 941
Skype: markgowdy




 ___
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: Maven + WOnder 7

2017-01-04 Thread Mark Gowdy

> On 4 Jan 2017, at 13:49, G Brown <gsbr...@umich.edu> wrote:
> 
> Mark,
> 
> I see on github many tags for different versions, but I think the 
> 7.00-SNAPSHOT is the ever changing shifting current wonder version.

Yea, I think so too.

My issue now is trying to get Ajax (from the Wonder Frameworks) into the mix.

I have tried various entries in the pom file (such as)
--

wonder.ajax
Ajax
${wonder.version}

--
But no success yet.

Any ideas?

Mark

> 
> You may also want to  create a wonder parent
>   
>wonder
>generic-woparent
>7.00-SNAPSHOT
> ./generic-woparent
>  
> As that will save you much typing, and you will have the exact jar versions, 
> plugins and their versions, etc. that was used to create wonder 7, or any 
> version you like.
> 
> https://github.com/gitgb/splitpom <https://github.com/gitgb/splitpom>
> 
> I will put in a pull request so the wonder pom.xml is split into a reusable 
> parent, and the non-reusable ….soon….

I am only starting to play with Maven, I am not anywhere near ‘Ninja’ status 
yet.
This looks like sorcery to me !

> 
> G Brown
> gsbr...@umich.edu <mailto:gsbr...@umich.edu>
> 
> 
> 
> 
> On Jan 4, 2017, at 7:34 AM, Mark Gowdy <m...@gowdy.co.uk 
> <mailto:m...@gowdy.co.uk>> wrote:
> 
>> Hi, 
>> 
>> Finally moving everything over to Maven and Wonder 7
>> 
>> Can anyone confirm the Wonder Version that I should specify in the 
>> dependencies?
>> Is it always: 7.0.0-SNAPSHOT
>> 
>> Or are there updated versions.  If so, how do I find the latest version 
>> number?
>> 
>> Thanks,
>> 
>> Mark
>> _
>> Mark Gowdy
>> Gowdy Associates Ltd
>> M: +44 7808 400 941
>> Skype: markgowdy
>> 
>> 
>> 
>> 
>> 
>> ___
>> Do not post admin requests to the list. They will be ignored.
>> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com 
>> <mailto:Webobjects-dev@lists.apple.com>)
>> Help/Unsubscribe/Update your Subscription:
>> https://lists.apple.com/mailman/options/webobjects-dev/gsbrown%40umich.edu 
>> <https://lists.apple.com/mailman/options/webobjects-dev/gsbrown%40umich.edu>
>> 
>> This email sent to gsbr...@umich.edu
> 

_
Mark Gowdy
Gowdy Associates Ltd
M: +44 7808 400 941
Skype: markgowdy




 ___
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


Maven + WOnder 7

2017-01-04 Thread Mark Gowdy
Hi, 

Finally moving everything over to Maven and Wonder 7

Can anyone confirm the Wonder Version that I should specify in the dependencies?
Is it always: 7.0.0-SNAPSHOT

Or are there updated versions.  If so, how do I find the latest version number?

Thanks,

Mark
_
Mark Gowdy
Gowdy Associates Ltd
M: +44 7808 400 941
Skype: markgowdy





 ___
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: Tweaking the model on start-up

2016-06-03 Thread Mark Gowdy

> On 3 Jun 2016, at 11:49, Mark Gowdy <m...@gowdy.co.uk> wrote:
> 
>> 
>> On 2 Jun 2016, at 21:18, Chuck Hill <ch...@gevityinc.com 
>> <mailto:ch...@gevityinc.com>> wrote:
>> 
>> finishInitialization() in your application. 
> 
> I have attempted to tweak my ‘User’ entity at 
> ‘Application.finishInitialization()’,
> But when the app tries to get a User object, it blows up:
> 
> ERROR er.extensions.eof.ERXEntityClassDescription  - Unable to register 
> descriptions for class: class com.es.eo.User
> RuntimeException: Dummy
>   at 
> er.extensions.eof.ERXEntityClassDescription$Factory.registerDescriptionForClass(ERXEntityClassDescription.java:615)
>   at 
> er.extensions.eof.ERXEntityClassDescription$Factory.classDescriptionNeededForClass(ERXEntityClassDescription.java:392)
> 
> The smallest change that causes the error above is:
> ---
> EOEditingContext tmpEc = ERXEC.newEditingContext();
> EOEntity entity = EOUtilities.entityNamed(tmpEc, "User");
> entity.setClassName("com.es.eo.User"); // changed from 'com.mg.users.eo.User'
> ---
> 
> I guess I need to re-initialise or register something, but I am not sure what 
> exactly.

I discovered that the other tweaks to the model (adding the ‘User' —>> ‘Hubs’) 
actually worked.

My problem appears to primarily be the class name change.
It looks like I need to register it somehow.  Any ideas?

Mark


> 
> Thanks, 
> 
> Mark
> 
>>  
>> Chuck
>>  
>>  
>> From: <webobjects-dev-bounces+chill=gevityinc@lists.apple.com 
>> <mailto:webobjects-dev-bounces+chill=gevityinc@lists.apple.com>> on 
>> behalf of Mark Gowdy <m...@gowdy.co.uk <mailto:m...@gowdy.co.uk>>
>> Date: Thursday, June 2, 2016 at 1:14 PM
>> To: WebObjects-Dev <webobjects-dev@lists.apple.com 
>> <mailto:webobjects-dev@lists.apple.com>>
>> Subject: Tweaking the model on start-up
>>  
>> Hi,  
>>  
>> Is there a convenient way to update an Entity details when the app starts up?
>>  
>> e.g.
>> 'Model Framework’ (A) has an Entity called ‘User’
>> ‘Model Framework’ (B) has an Entity called ‘Hub’ that is joined (to-one) 
>> with to ‘User’
>> i.e.
>> com.B.Hub   —> com.A.User
>> (where ‘User’ knows nothing about ‘Hub’, it is out of scope)
>>  
>> I can create a class in (B) called 
>> com.B.User extends com.A.User
>>  
>> so that I can add the additional set/get code, 
>>  
>> and then apply something like this (at start-up):
>> {
>> className = "com.B.User";
>> relationships = (
>> {
>> destination = Hub; 
>> isToMany = Y; 
>> joinSemantic = EOInnerJoin; 
>> joins = ({destinationAttribute = userID; sourceAttribute = id; }); 
>> name = hubs; 
>> }
>> );
>> }
>>  
>> Any suggestions?
>>  
>> Mark
>>  
>> _
>> Mark Gowdy
>> Gowdy Associates Ltd
>> Skype: markgowdy
>> 
>> 
>> 
>>  
> 
> _
> Mark Gowdy
> Gowdy Associates Ltd
> M: +44 7808 400 941
> Skype: markgowdy

_
Mark Gowdy
Gowdy Associates Ltd
M: +44 7808 400 941
Skype: markgowdy




 ___
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: Tweaking the model on start-up

2016-06-03 Thread Mark Gowdy

> On 2 Jun 2016, at 21:18, Chuck Hill <ch...@gevityinc.com> wrote:
> 
> finishInitialization() in your application. 

I have attempted to tweak my ‘User’ entity at 
‘Application.finishInitialization()’,
But when the app tries to get a User object, it blows up:

ERROR er.extensions.eof.ERXEntityClassDescription  - Unable to register 
descriptions for class: class com.es.eo.User
RuntimeException: Dummy
  at 
er.extensions.eof.ERXEntityClassDescription$Factory.registerDescriptionForClass(ERXEntityClassDescription.java:615)
  at 
er.extensions.eof.ERXEntityClassDescription$Factory.classDescriptionNeededForClass(ERXEntityClassDescription.java:392)

The smallest change that causes the error above is:
---
EOEditingContext tmpEc = ERXEC.newEditingContext();
EOEntity entity = EOUtilities.entityNamed(tmpEc, "User");
entity.setClassName("com.es.eo.User"); // changed from 'com.mg.users.eo.User'
---

I guess I need to re-initialise or register something, but I am not sure what 
exactly.

Thanks, 

Mark

>  
> Chuck
>  
>  
> From: <webobjects-dev-bounces+chill=gevityinc@lists.apple.com> on behalf 
> of Mark Gowdy <m...@gowdy.co.uk>
> Date: Thursday, June 2, 2016 at 1:14 PM
> To: WebObjects-Dev <webobjects-dev@lists.apple.com>
> Subject: Tweaking the model on start-up
>  
> Hi,  
>  
> Is there a convenient way to update an Entity details when the app starts up?
>  
> e.g.
> 'Model Framework’ (A) has an Entity called ‘User’
> ‘Model Framework’ (B) has an Entity called ‘Hub’ that is joined (to-one) with 
> to ‘User’
> i.e.
> com.B.Hub   —> com.A.User
> (where ‘User’ knows nothing about ‘Hub’, it is out of scope)
>  
> I can create a class in (B) called 
> com.B.User extends com.A.User
>  
> so that I can add the additional set/get code, 
>  
> and then apply something like this (at start-up):
> {
> className = "com.B.User";
> relationships = (
> {
> destination = Hub; 
> isToMany = Y; 
> joinSemantic = EOInnerJoin; 
> joins = ({destinationAttribute = userID; sourceAttribute = id; }); 
> name = hubs; 
> }
> );
> }
>  
> Any suggestions?
>  
> Mark
>  
> _
> Mark Gowdy
> Gowdy Associates Ltd
> Skype: markgowdy
> 
> 
> 
>  

_
Mark Gowdy
Gowdy Associates Ltd
M: +44 7808 400 941
Skype: markgowdy




 ___
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

Tweaking the model on start-up

2016-06-02 Thread Mark Gowdy
Hi, 

Is there a convenient way to update an Entity details when the app starts up?

e.g.
'Model Framework’ (A) has an Entity called ‘User’
‘Model Framework’ (B) has an Entity called ‘Hub’ that is joined (to-one) with 
to ‘User’
i.e.
com.B.Hub   —> com.A.User
(where ‘User’ knows nothing about ‘Hub’, it is out of scope)

I can create a class in (B) called 
com.B.User extends com.A.User

so that I can add the additional set/get code, 

and then apply something like this (at start-up):
{
className = "com.B.User";
relationships = (
{
destination = Hub; 
isToMany = Y; 
joinSemantic = EOInnerJoin; 
joins = ({destinationAttribute = userID; 
sourceAttribute = id; }); 
name = hubs; 
}
);
}

Any suggestions?

Mark

_____
Mark Gowdy
Gowdy Associates Ltd
Skype: markgowdy




 ___
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: Closure of WOCommunity Association

2016-05-12 Thread Mark Gowdy

> On 12 May 2016, at 10:03, Markus Ruggiero <mailingli...@kataputt.com> wrote:
> 
>> 
>> On 11.05.2016, at 21:06, jazzsalsa <jazzsa...@me.com 
>> <mailto:jazzsa...@me.com>> wrote:
>> 
>> Hi WebObjects fans,
>> 
>> I just read this message on Facebook from Pascal:
>> 
>> Pascal Robert
>> 
>> 21 hrs 
>> <https://www.facebook.com/groups/wodevelopers/permalink/10154257762061209/> 
>> · Montreal, QC, Canada
>> With the official death of WebObjects, it is time to announce the closure of 
>> the WOCommunity Association. We don't have any cash left to pay the expenses 
>> of WOWODC 2016 and the hosting.
>> 
>> WOWODC 2016 won't be cancelled. Unless someone wants to host the wiki and 
>> Jenkins, they will be shutdown at the end of the month. Recordings of WOWODC 
>> 2016 will only be available to attendees.
>> 
>> 
>> Very bad indeed. Therefore I created an overview of WebObjects fans I found 
>> on the wiki:
>> 
>> https://onedrive.live.com/redir?resid=ADCCC076DD8AF29D!106=!ACckRFppMHmbsog=file%2cxlsx
>>  
>> <https://onedrive.live.com/redir?resid=ADCCC076DD8AF29D!106=!ACckRFppMHmbsog=file,xlsx>
>> 
> 
> someone sorted the table by last name. Well, actually not the table but just 
> the last name column. This results in an unusable table as I have no idea, 
> what other columns have been reordered.

Would a GoogleDoc Sheet not be better for this type of collaboration?
It has a great version history feature (that Microsoft may, or may not have)

I am sure that 'Chuck Hanviriyapunt’ would agree.

Mark

> 
> ---markus---
> 
> 
>> Let's find out how to organize the migration. I just sent an email to RedHat 
>> (openshift) to see if they support it. 
>> 1. Could you be so kind to add your email address in case your are 
>> interested to receive updates about the migration? 
>> 2. Fill in the column ("continent") as well to figure out how we are 
>> distributed on the planet(for skype calls and meetups). 
>> 3. Mention if you support (need) the migration of the services maven, 
>> jenkins, wiki, others I forgot
>> 
>> Pascal, could you be so kind to fill in sheet "Infrastructure" about the 
>> size of the services we are talking about. This will help to migrate this 
>> easily.
>> 
>> Many thanks, Bart
>> ___
>> Do not post admin requests to the list. They will be ignored.
>> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com 
>> <mailto:Webobjects-dev@lists.apple.com>)
>> Help/Unsubscribe/Update your Subscription:
>> https://lists.apple.com/mailman/options/webobjects-dev/mailinglists%40kataputt.com
>>  
>> <https://lists.apple.com/mailman/options/webobjects-dev/mailinglists%40kataputt.com>
>> 
>> This email sent to mailingli...@kataputt.com 
>> <mailto:mailingli...@kataputt.com>
> 
> ___
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com 
> <mailto:Webobjects-dev@lists.apple.com>)
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/mark%40gowdy.co.uk 
> <https://lists.apple.com/mailman/options/webobjects-dev/mark%40gowdy.co.uk>
> 
> This email sent to m...@gowdy.co.uk <mailto:m...@gowdy.co.uk>
_
Mark Gowdy
Gowdy Associates Ltd
M: +44 7808 400 941
Skype: markgowdy




 ___
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: Closure of WOCommunity Association

2016-05-12 Thread Mark Gowdy

> On 12 May 2016, at 00:06, Ramsey Gurley <rgur...@smarthealth.com> wrote:
> http://store.wocommunity.org/products/membership 
> <http://store.wocommunity.org/products/membership>
Is there a way to donate an arbitrary amount to the community?

_____
Mark Gowdy
Gowdy Associates Ltd
Skype: markgowdy




 ___
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: Issue with Legacy frameworks

2016-04-22 Thread Mark Gowdy
On 22 Apr 2016, at 14:34, Butchi Reddy Velagala <v.butchire...@gmail.com> wrote:
> 
> Hello All,
> 
> We would like update by using the webobjets 5.4.5. But while launching the 
> application we are getting the following error message. Could you please 
> provide us the supported frameworks for this version.

5.4.3?
Or have I missed something?

> 
> - A fatal exception occurred ERXExtensions have not been initialized. Please 
> report the classpath and the rest of the bundles to the Wonder mailing list: 
> Remaining frameworks: [JavaFoundation, JavaWebObjects, JavaXML, 
> JavaEOApplication, Ajax, JavaEOAccess, JavaEOControl, CCBJava, CCBXJava, 
> JavaWOExtensions, CCBViewJava, ERExtensions, JavaJDBCAdaptor, ERJars]

It usually (8 times out of 11) has something to do with the classpath (or the 
order of it).

Someone once said (regarding the error: "ERXExtensions have not been 
initialized" and the .classpath file):
> is ERExtensions from wonder still in front of other WO libraries?

For reference, one of mine looks like this:




























Regards, 

Mark


> 
> Regards,
> Butchi Reddy.

_
Mark Gowdy
Gowdy Associates Ltd
M: +44 7808 400 941
Skype: markgowdy




 ___
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: WebObjects and Apache 2.4 on El Capitan

2016-03-14 Thread Mark Gowdy
nough to get the Adaptors project to compile and link.  I've 
> provided both a patch file of my changes, and a .tar.gz file of the files I 
> changed, which some may find easier to read.  Submitting a patch file to this 
> list is not the approved way of proposing changes to Project Wonder, but I'm 
> not expecting my changes to make it in anyway.
> 
> [There is another gotcha which no longer applies to building on OSX.  
> Nowadays, whatever Apple-supplied C or C++ compiler you ask for, you'll get a 
> compiler based on LLVM, which outputs compact omtimised code and ignores 
> optimisation flags.  The makefiles for the mod_WebObjects adaptors refer to 
> gcc and -O2.  If somebody built Apache using -Os (and Apple used to do that) 
> then there is a risk of structure size mismatch problems.]
> 
> -- Patrick
> 
> 
>  ___
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com 
> <mailto:Webobjects-dev@lists.apple.com>)
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/mark%40gowdy.co.uk 
> <https://lists.apple.com/mailman/options/webobjects-dev/mark%40gowdy.co.uk>
> 
> This email sent to m...@gowdy.co.uk <mailto:m...@gowdy.co.uk>
_
Mark Gowdy
Gowdy Associates Ltd
M: +44 7808 400 941
Skype: markgowdy




 ___
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

Wonder 7 - Release Date?

2016-02-26 Thread Mark Gowdy
Hi, 

I just wanted to confirm that Wonder 7 is production ready?
If not, is there a planned (approx) release date.

It’s not entirely clear from:
https://github.com/wocommunity/wonder/wiki 


Although, I noticed, that when I download the src from:
git clone https://github.com/wocommunity/wonder.git 


The pom.xml file states that:
wonder
7.0.0-SNAPSHOT

I guess that means it is?
Was I asleep, when did that happen?

Mark ___
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: Apache 2.4 WebObjects adaptor for CentOS 6 i86_64

2016-02-18 Thread Mark Gowdy
Hi, 

These are my notes on building the Adaptor for Apache2.4
This was for the new Jessie OS (on the Raspberry Pi)
I would first try the Centos package installer:
https://wiki.wocommunity.org/display/documentation/Installing+a+deployment+environment+on+RedHat%2C+CentOS+or+Amazon+Linux
 
<https://wiki.wocommunity.org/display/documentation/Installing+a+deployment+environment+on+RedHat,+CentOS+or+Amazon+Linux>

And if that doesn’t quite complete, build the adaptor manually (below).

—
Apache2.4
Note: After trying:
https://wiki.wocommunity.org/display/documentation/Installing+a+deployment+environment+on+Debian+or+Ubuntu
 
<https://wiki.wocommunity.org/display/documentation/Installing+a+deployment+environment+on+Debian+or+Ubuntu>
 
DIST=debian
SUITE=wheezy
sudo apt-get install projectwonder-wotaskd projectwonder-javamonitor
sudo apt-get install libapache2-mod-wo
Last command fail, but adds most of the useful files.  Need to compile Adaptor 
manually (from: https://github.com/alextu/wodocker/blob/master/Dockerfile#L6 
<https://github.com/alextu/wodocker/blob/master/Dockerfile#L6> )
# Get latest Wonder
curl -LOk https://github.com/wocommunity/wonder/archive/master.tar.gz 
<https://github.com/wocommunity/wonder/archive/master.tar.gz>
tar xfz master.tar.gz

# Go to Adaptor Folder
cd wonder-master/Utilities/Adaptors

# Updates make.config for Apache2.4 and Linux
sed -ri 's/ADAPTOR_OS = MACOS/ADAPTOR_OS = LINUX/g' make.config
sed -ri 's/ADAPTORS = CGI Apache2.2/ADAPTORS = Apache2.4/g' make.config

# Build (requires apxs)
sudo apt-get install apache2-dev
make

# Copy to modules folder
sudo cp Apache2.4/mod_WebObjects.so /usr/lib/apache2/modules/.

# Enable / Disable
sudo a2enmod webobjects
sudo a2dismod webobjects

> On 18 Feb 2016, at 09:58, Stéphan Mertz <sme...@me.com> wrote:
> 
> Hi,
> 
> I'm looking for the binary of Apache 2.4 WebObjects adaptor for CentOS 6 
> i86_64.
> It is not in http://wocommunity.org/documents/tools/mod_WebObjects/Apache2.4/ 
> <http://wocommunity.org/documents/tools/mod_WebObjects/Apache2.4/>
> 
> Thank you,
> 
> Stéphan
> ___
> 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/mark%40gowdy.co.uk
> 
> This email sent to m...@gowdy.co.uk

_
Mark Gowdy
Gowdy Associates Ltd
M: +44 7808 400 941
Skype: markgowdy




 ___
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

Apache Adaptor on debian:jessie

2016-01-11 Thread Mark Gowdy
Trying to install WO + Apache Adaptor onto the latest Debian release (‘jessie' 
- on a Raspberry Pi 2)

Following:
https://wiki.wocommunity.org/display/documentation/Installing+a+deployment+environment+on+Debian+or+Ubuntu
 


However, there does not appear to be a jessie distribution on:
http://packages.wocommunity.org/debian/dists/ 


So I set the variables to:
DIST=debian
SUITE=wheezy
and followed the other instructions.

WO installed perfectly (using):
sudo apt-get install projectwonder-wotaskd projectwonder-javamonitor

Didn’t go so well with the webobjects apache adaptor
sudo apt-get install libapache2-mod-wo
— 
Job for apache2.service failed. See 'systemctl status apache2.service' and 
'journalctl -xn' for details.
invoke-rc.d: initscript apache2, action "reload" failed.
dpkg: error processing package libapache2-mod-wo (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 libapache2-mod-wo
E: Sub-process /usr/bin/dpkg returned an error code (1)
—

When I tried copying the module and config from an older wheezy install, I get 
a simlar issue when trying to restart apache.
— 
Jan 11 12:22:39 PI-ZERO apache2[21227]: apache2: Syntax error on line 140 of 
/etc/apache2/apache2.conf: Syntax error on line 1 of 
/etc/apache2/mods-enabled/webobjects.load: Cannot load 
/usr/lib/apache2/modules/mod_WebObjects.so into server: 
/usr...p_get_server_version
Jan 11 12:22:39 PI-ZERO apache2[21227]: Action 'configtest' failed.
Jan 11 12:22:39 PI-ZERO apache2[21227]: The Apache error log may have more 
information.
— 

About to try compiling it on the machine, I don’t suppose anyone else has 
achieved that and is willing to share the binary?

Regards, 

Mark ___
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: [Solved] - Apache Adaptor on debian:jessie

2016-01-11 Thread Mark Gowdy
Managed to get the adaptor to build directly on the machine:
I got most of what I needed from: 
https://github.com/alextu/wodocker/blob/master/Dockerfile#L6 
<https://github.com/alextu/wodocker/blob/master/Dockerfile#L6>

After running 
sudo apt-get install libapache2-mod-wo 
then uninstalling, 
sudo apt-get remove libapache2-mod-wo

It left behinds most of the files it needed, I then compiled mod_WebObjects.so 
locally
— 
# Get latest Wonder
curl -LOk https://github.com/wocommunity/wonder/archive/master.tar.gz 
<https://github.com/wocommunity/wonder/archive/master.tar.gz>
tar xfz master.tar.gz

# Go to Adaptor Folder
cd wonder-master/Utilities/Adaptors

# Updates make.config for Apache2.4 and Linux
sed -ri 's/ADAPTOR_OS = MACOS/ADAPTOR_OS = LINUX/g' make.config
sed -ri 's/ADAPTORS = CGI Apache2.2/ADAPTORS = Apache2.4/g' make.config

# Build (needs apxs)
sudo apt-get install apache2-dev
make

# Copy to modules folder (mine were in /usr/lib/apache2/)
sudo cp Apache2.4/mod_WebObjects.so /usr/lib/apache2/modules/.

# Enable
sudo a2enmod webobjects
— 

After that, it was just config file tweaking, and it worked.

Hope this will help someone else.

Thanks, 

Mark

> On 11 Jan 2016, at 12:59, Mark Gowdy <m...@gowdy.co.uk> wrote:
> 
> Trying to install WO + Apache Adaptor onto the latest Debian release 
> (‘jessie' - on a Raspberry Pi 2)
> 
> Following:
> https://wiki.wocommunity.org/display/documentation/Installing+a+deployment+environment+on+Debian+or+Ubuntu
>  
> <https://wiki.wocommunity.org/display/documentation/Installing+a+deployment+environment+on+Debian+or+Ubuntu>
> 
> However, there does not appear to be a jessie distribution on:
> http://packages.wocommunity.org/debian/dists/ 
> <http://packages.wocommunity.org/debian/dists/>
> 
> So I set the variables to:
> DIST=debian
> SUITE=wheezy
> and followed the other instructions.
> 
> WO installed perfectly (using):
> sudo apt-get install projectwonder-wotaskd projectwonder-javamonitor
> 
> Didn’t go so well with the webobjects apache adaptor
> sudo apt-get install libapache2-mod-wo
> — 
> Job for apache2.service failed. See 'systemctl status apache2.service' and 
> 'journalctl -xn' for details.
> invoke-rc.d: initscript apache2, action "reload" failed.
> dpkg: error processing package libapache2-mod-wo (--configure):
>  subprocess installed post-installation script returned error exit status 1
> Errors were encountered while processing:
>  libapache2-mod-wo
> E: Sub-process /usr/bin/dpkg returned an error code (1)
> —
> 
> When I tried copying the module and config from an older wheezy install, I 
> get a simlar issue when trying to restart apache.
> — 
> Jan 11 12:22:39 PI-ZERO apache2[21227]: apache2: Syntax error on line 140 of 
> /etc/apache2/apache2.conf: Syntax error on line 1 of 
> /etc/apache2/mods-enabled/webobjects.load: Cannot load 
> /usr/lib/apache2/modules/mod_WebObjects.so into server: 
> /usr...p_get_server_version
> Jan 11 12:22:39 PI-ZERO apache2[21227]: Action 'configtest' failed.
> Jan 11 12:22:39 PI-ZERO apache2[21227]: The Apache error log may have more 
> information.
> — 
> 
> About to try compiling it on the machine, I don’t suppose anyone else has 
> achieved that and is willing to share the binary?
> 
> Regards, 
> 
> Mark

_
Mark Gowdy
Gowdy Associates Ltd
M: +44 7808 400 941
Skype: markgowdy




 ___
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

ERQMAjaxUpdateContainer : lookup of unknown key: 'value'

2016-01-07 Thread Mark Gowdy
Hi, 

Short Story:
The problem (in my app) appears to be that put a WOstring in an html comment 
(with an WOGNL $ binding), it throws [ lookup of unknown key: ‘value’. ]  e.g.

  
  

---

In the example (jQueryMobileExample), it works great and 
  
renders as:
  
  

Re: ERQMAjaxUpdateContainer : lookup of unknown key: 'value'

2016-01-07 Thread Mark Gowdy
When I tried a new vanilla “Hello World” wonder project, it worked fine:

(I probably should have tried the first).

I will start adding in my usual additional, and see when it breaks.
Will post a solution when I find it.

Thanks, 

Mark


> On 7 Jan 2016, at 19:05, Chuck Hill <ch...@gevityinc.com> wrote:
> 
> That is indeed a very odd bug.
> 
> From: Mark Gowdy <m...@gowdy.co.uk <mailto:m...@gowdy.co.uk>>
> Date: Thursday, January 7, 2016 at 10:59 AM
> To: Chuck Hill <ch...@gevityinc.com <mailto:ch...@gevityinc.com>>
> Cc: "webobjects-dev@lists.apple.com <mailto:webobjects-dev@lists.apple.com>" 
> <webobjects-dev@lists.apple.com <mailto:webobjects-dev@lists.apple.com>>
> Subject: Re: ERQMAjaxUpdateContainer : lookup of unknown key: 'value'
> 
> 
>> On 7 Jan 2016, at 18:45, Chuck Hill <ch...@gevityinc.com 
>> <mailto:ch...@gevityinc.com>> wrote:
>> 
>> Is there a stack trace?  It would be useful to know which object it was 
>> looking up “value” on.
> 
> It is on the component that holds the commented WOString.  So, in the case of 
> ERQMAjaxUpdateContainer:
> 
> <com.webobjects.foundation.NSKeyValueCoding$UnknownKeyException message 
> '[ er.jqm.components.core.ERQMAjaxUpdateContainer subcomponents: null > 
> valueForKey()]: lookup of unknown key: 'value'. The WOComponent 
> er.jqm.components.core.ERQMAjaxUpdateContainer does not have an instance 
> variable of the name value or _value, nor a method of the name value, _value, 
> getValue, or _getValue' object 
> ' er.jqm.components.core.ERQMAjaxUpdateContainer subcomponents: null >' key 
> 'value’>
> 
> When I put this into Main.html
> 
>   
>   
> 
> ——
> elementID : WOString {
>   value = javaScriptElementID;
> }
> 
> Very odd indeed.
> 
> Mark
> 
>> 
>> 
>> From: <webobjects-dev-bounces+chill=gevityinc@lists.apple.com 
>> <mailto:webobjects-dev-bounces+chill=gevityinc@lists.apple.com>> on 
>> behalf of Mark Gowdy <m...@gowdy.co.uk <mailto:m...@gowdy.co.uk>>
>> Date: Thursday, January 7, 2016 at 8:52 AM
>> To: "webobjects-dev@lists.apple.com <mailto:webobjects-dev@lists.apple.com>" 
>> <webobjects-dev@lists.apple.com <mailto:webobjects-dev@lists.apple.com>>
>> Subject: ERQMAjaxUpdateContainer : lookup of unknown key: 'value'
>> 
>> Hi, 
>> 
>> Short Story:
>> The problem (in my app) appears to be that put a WOstring in an html comment 
>> (with an WOGNL $ binding), it throws [ lookup of unknown key: ‘value’. ]  
>> e.g.
>> > 

Re: ERQMAjaxUpdateContainer : lookup of unknown key: 'value'

2016-01-07 Thread Mark Gowdy
Found the problem, but it does smell a bit like a can of worms.

It explodes when I add this to the newly created HelloWorld.app Properties file:
ognl.parseStandardTags=true

My test Main.html has:

Hello

I use wognl in standard tags a lot.

Thoughts?

Mark


> On 7 Jan 2016, at 19:21, Mark Gowdy <m...@gowdy.co.uk> wrote:
> 
> When I tried a new vanilla “Hello World” wonder project, it worked fine:
> 
> (I probably should have tried the first).
> 
> I will start adding in my usual additional, and see when it breaks.
> Will post a solution when I find it.
> 
> Thanks, 
> 
> Mark
> 
> 
>> On 7 Jan 2016, at 19:05, Chuck Hill <ch...@gevityinc.com 
>> <mailto:ch...@gevityinc.com>> wrote:
>> 
>> That is indeed a very odd bug.
>> 
>> From: Mark Gowdy <m...@gowdy.co.uk <mailto:m...@gowdy.co.uk>>
>> Date: Thursday, January 7, 2016 at 10:59 AM
>> To: Chuck Hill <ch...@gevityinc.com <mailto:ch...@gevityinc.com>>
>> Cc: "webobjects-dev@lists.apple.com <mailto:webobjects-dev@lists.apple.com>" 
>> <webobjects-dev@lists.apple.com <mailto:webobjects-dev@lists.apple.com>>
>> Subject: Re: ERQMAjaxUpdateContainer : lookup of unknown key: 'value'
>> 
>> 
>>> On 7 Jan 2016, at 18:45, Chuck Hill <ch...@gevityinc.com 
>>> <mailto:ch...@gevityinc.com>> wrote:
>>> 
>>> Is there a stack trace?  It would be useful to know which object it was 
>>> looking up “value” on.
>> 
>> It is on the component that holds the commented WOString.  So, in the case 
>> of ERQMAjaxUpdateContainer:
>> 
>> <com.webobjects.foundation.NSKeyValueCoding$UnknownKeyException message 
>> '[> er.jqm.components.core.ERQMAjaxUpdateContainer subcomponents: null > 
>> valueForKey()]: lookup of unknown key: 'value'. The WOComponent 
>> er.jqm.components.core.ERQMAjaxUpdateContainer does not have an instance 
>> variable of the name value or _value, nor a method of the name value, 
>> _value, getValue, or _getValue' object 
>> '> er.jqm.components.core.ERQMAjaxUpdateContainer subcomponents: null >' key 
>> 'value’>
>> 
>> When I put this into Main.html
>> 
>>   
>>   
>> 
>> ——
>> elementID : WOString {
>>   value = javaScriptElementID;
>> }
>> 
>> Very odd indeed.
>> 
>> Mark
>> 
>>> 
>>> 
>>> From: <webobjects-dev-bounces+chill=gevityinc@lists.apple.com 
>>> <mailto:webobjects-dev-bounces+chill=gevityinc@lists.apple.com>> on 
>>> behalf of Mark Gowdy <m...@gowdy.co.uk <mailto:m...@gowdy.co.uk>>
>>> Date: Thursday, January 7, 2016 at 8:52 AM
>>> To: "webobjects-dev@lists.apple.com 
>>> <mailto:webobjects-dev@lists.apple.com>" <webobjects-dev@lists.apple.com 
>>> <mailto:webobjects-dev@lists.apple.com>>
>>> Subject: ERQMAjaxUpdateContainer : lookup of unknown key: 'value'
>>> 
>>> Hi, 
>>> 
>>> Short Story:
>>> The problem (in my app) appears to be that put a WOstring in an html 
>>> comment (with an WOGNL $ binding), it throws [ lookup of unknown key: 
>>> ‘value’. ]  e.g.
>>> >> 

Ajax jQuery

2016-01-07 Thread Mark Gowdy
Hi, 

In a nutshell, the Ajax.framework is great, but it causes issues when you try 
to use it in tandem with various jQuery libraries and particularly with the 
BootStrap themes.
All I really need is a basic Ajax Container, Link and SubmitButton.

I tried ERJQMobile, it sorta worked, but I experienced various reliability 
problems with it.
I had a look at ERJQuery, but couldn’t really figure out if it could do what I 
needed, or even what it was supposed to do at all.  Can’t find any examples 
anywhere.

Can someone please point me in the right direction.

It’s has driven me to beer (well, slightly more beer than normal).

Thanks in advance,

Mark Gowdy



 ___
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

Aspect-Orientated Programming (AOP)

2015-06-15 Thread Mark Gowdy
Hi, 

I am keen to try and incorporate these techniques into my new projects.  So I 
have a few questions (assume almost zero knowledge of AOP).

1) Is AOP an option within WebObjects / Wonder projects?  Has anyone got this 
to work?
2) There appears to be a few ways of doing this (Aspect/J, Spring AOP).  Where 
is a good place to start?
3) Any other things I should be aware of?

Any tutorial links / sample code would be nice.

Kind regards, 

Mark
 ___
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: MySqlPlugin

2014-03-07 Thread Mark Gowdy
This might be unrelated, but we experience an issue where our apps would 
periodically freeze.  From memory, LIMIT might have been a factor.
It was solved by upgrading the mysql-connector-java jar from 3.1.8 to 5.1.16

 By examining the state of the hung instance, we saw that the mysql connector 
 class ReadAheadInputStream was just sitting with a constant socketRead.
 
 So, it turned out that it is a problem in the mysql-connector-java-3.1.8.jar
 See:
   - http://bugs.mysql.com/bug.php?id=9515
   - http://bugs.mysql.com/bug.php?id=31353
 
 Those links describe the bug i.e. Hangs in ReadAheadInputStream.fill() 
 
 We upgraded from:
 mysql-connector-java-3.1.8.jar 
   to 
 mysql-connector-java-5.1.26.jar
   
 and the problem went away.
 
 This may also have been the cause of an occasional freezing of our instances 
 (which was happening infrequently and randomly).  We had to force-quit them 
 to get them going again.

Mark

On 7 Mar 2014, at 18:20, Robin Smith wrote:

 I'm not sure about fetch plans, all i know at the moment is if i remove the 
 LIMIT query i get millisecond performance on my query but if i include a 
 LIMIT clause i get a full table scan.
 
 
 On 7 March 2014 17:15, Jesse Tayler jtay...@oeinc.com wrote:
 did you check to make sure your database is using the index fetch plan you 
 expect?
 
 I recall with MySQL sometimes indexes would fail but there would be no 
 indication until I actually reviewed the fetch internals…
 
 something chuck would know off the top of his head I’m sure…
 
 
 
 
 On Mar 7, 2014, at 12:02 PM, Robin Smith robin.sm...@clicktravel.com wrote:
 
 Hi All
 
 We have been experiencing some performace issues with our DB queries that we 
 have narrowed down to the limitClause applied to sql queries. It seems 
 that out of the box MySQL uses no indexes when supplied with a LIMIT clause.
 
 Taking this into consideration we were wondering if anything like batch 
 fetch iterator rely on the limit clause being applied to queries or if we 
 could safely remove (or add switch to) this part of _MySqlPlugin.
 
 Thanks
 
 Robin
 
 -- 
 Robin Smith
 Engineering Team Leader  BEng (Hons) MBCS
 
 http://www.clicktravel.com
 
 Think: Do you really need to print this email?
 ___
 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/jtayler%40oeinc.com
 
 This email sent to jtay...@oeinc.com
 
 
 
 
 -- 
 Robin Smith
 Engineering Team Leader  BEng (Hons) MBCS
 
 http://www.clicktravel.com
 
 Think: Do you really need to print this email?
 ___
 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/gowdy%40mac.com
 
 This email sent to go...@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

HELP : Apache2.4.6 on Windows 2003 Server (R2) SP2

2014-03-07 Thread Mark Gowdy
Hi, 

I am installing our app on a Windows server for our client, I thought I had it 
working, but when I started to use it a little more heavily Apache keeps 
crashing.
(btw, I really don't like windows, cygwin makes it almost bearable)

The config is:
Windows 2003 Server (R2) SP2
Apache2.4.6 (32 bit)
mod_WebObjects.so   from  
http://wocommunity.org/documents/tools/mod_WebObjects/Apache2.4/windows/32bit/

I checked the installed version against the one from the link, and they are the 
same:
shasum -a256 mod_WebObjects.so
4ecf3ce0aa5584ba3b8d871bf8e71bfbbab3802d0087ffccfb5e8e325fad26bf  
mod_WebObjects.so


It works fine for a little while, then it simply stops.
1) Apache continues to work with static files
2) Monitor + wotaskd + apps are all happy
3) Any /apps/WebObjects/anything.woa  simply hangs.
4) There is nothing of relevance in the apache error.log file.

The 'Event Viewer' states:
Faulting application httpd.exe, faulting module ntdll.dll
and
Faulting application httpd.exe, faulting module mod_WebObjects.so

I have seen the ntdll.dll error exclusively without the other one.

Has anyone (either of you ;-) seen this behaviour or have any suggestions?

If I can't solve this, I was considering:
1) Attempting the FastCGI adaptor (a copy or a link to a windows compiled 
version would be handy if anyone has that)
2) Installing Apache 2.2
3) IIS (although some consider that 'cruel and unusual')

Thanks in advance, 

Mark

 ___
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

ERCAuditTrail - Relationship updates.

2013-12-17 Thread Mark Gowdy
Posted this to the Wonder list (sourceforge), but it didn't appear to come 
through.  Also, noticed that the activity on that account was quite low too.  
Is there a problem with it, or is there somewhere new/cool to hangout?

Hi, 

The ERCoreBusinessLogic stuff works great when simple values are updated.
But, what I can't figure out, is how to record changes in relationships between 
other objects.

e.g.  Media -- Category

Can it do that?
Am I missing something obvious?

Cheers, 

Mark

On 29 Jun 2012, at 12:31, Dieter Stollorcz wrote:

 Hi Duc,
 
 here is how i set up ERCAuditTrails and ERCPreference:
 
 1. Add the ERCoreBusinessLogic to build path
 
 2. Create the ERCoreBusinessLogic Tables in DB 
 Run migrations or add the relevant tables to DB
 
 3. Implement ERCoreUserInterface on user entity ( my UserEntity is ECOM_Actor)
 public class ECOM_Actor extends _ECOM_Actor implements ERCoreUserInterface {
   ...
   public static final String  PreferencesKey = preferences;
   @Override
   public NSArray preferences() {
   return (NSArray)storedValueForKey(PreferencesKey);
   }
 
   @Override
   public void setPreferences(NSArray array) {
   takeStoredValueForKey(array.mutableClone(), PreferencesKey);
 
   }
 
   @Override
   public void newPreference(EOEnterpriseObject pref) {
   addObjectToBothSidesOfRelationshipWithKey(pref, PreferencesKey);
   }
 
 
 
 4. In Application.java add 
 @Override
   public void finishInitialization() {
   super.finishInitialization();
   
 ERCoreBusinessLogic.sharedInstance().addPreferenceRelationshipToActorEntity(ECOM_Actor);
   }
   
 5.  Set the user as the actor at login (DirectAction.java)
 public WOActionResults loginAction() {
   ...
   ((Session)session()).setCurrentUser(user);
   
 }
 
 6.  Set the Actor in session.java 
 public void setCurrentUser(ECOM_Actor user) {
   ERCoreBusinessLogic.setActor(user);
   _currentUser = user;
   }
   
 public void awake() {
 super.awake();
 if (currentUser() != null) {
 ERCoreBusinessLogic.setActor(currentUser());
 }
 }
 
 public void sleep() {
 ERCoreBusinessLogic.setActor(null);
 super.sleep();
 }
 
 7. In EntityModeler add the ERXAuditKeys 
 Include your list of ERXAuditKeys in the userInfo dictionary for the Entity.
 If you include the ERXAuditKeys key with an empty value, it will log all your 
 attributes by default. 
 
 
 Dieter
 
 
 ERXAuditKeys.png
 
 
 
 Am 29.06.2012 um 08:00 schrieb Duc Thanh Nguyen:
 
 Hi everyone,
 Could you pls share with me some sample code of ERCAuditTrail? I'd love to 
 see examples on how to use ERCAuditTrail. Thanks so much.
 Bin
 --
 Live Security Virtual Conference
 Exclusive live event will cover all the ways today's security and 
 threat landscape has changed and how IT managers can respond. Discussions 
 will include endpoint security, mobile security and the latest in malware 
 threats. 
 http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___
 Wonder-disc mailing list
 wonder-d...@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wonder-disc
 
 
 
 
 --
 Live Security Virtual Conference
 Exclusive live event will cover all the ways today's security and 
 threat landscape has changed and how IT managers can respond. Discussions 
 will include endpoint security, mobile security and the latest in malware 
 threats. 
 http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___
 Wonder-disc mailing list
 wonder-d...@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wonder-disc


 ___
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: Duplicate entry '4183884' for key 'PRIMARY'

2013-05-18 Thread Mark Gowdy
Using SequalPro, it lets me change the table type (in the Table Info tab).
This issues the statement:
ALTER TABLE `EO_PK_TABLE` ENGINE = InnoDB;

Is there any likely downside to this, compared with recreating the schema from 
scratch?

Mark



On 17 May 2013, at 23:26, Kieran Kelleher wrote:

 InnoDB is all or nothing . don't waste your time mixing InnoDB and MyISAM 
 in transactions - makes the results even more confusing.
 
 Convert them all. evidently, InnoDB is faster nowadays anyway. innoDB can 
 cache everything in memory. MyISAM IIRC only can cache PKs in memory and must 
 always get rows from disk. There is no benefit to staying on MyISAM format.
 
 
 On May 17, 2013, at 4:36 PM, Mark Gowdy go...@mac.com wrote:
 
 Thanks Paul, it looks like you are correct.
 
 Two 'Kieran Kelleher' email stated:
 
 There is also no row locking on EO_PK_TABLE with myisam, so you will get 
 primary key clashes and subsequent failed inserts if the db is sufficiently 
 contended.
 
 
 and
 
 (1) Never use MyISAM - no transactional support means a failed 
 editingContext.saveChanges() will not result in a rollback and semi-saved 
 changes to the database. data integrity goes out the window. Use InnoDB 
  don't just convert live DB though, dump/import to a standby server, 
 configure InnoDB first completely and actually do a little bit of studying 
 the MySQL docs to understand how. Also, get a head start here: 
 https://github.com/kierankelleher/gic-mysql-tools
 
 (2) Don't create real foreign key constraints because MySQL does not 
 support deferred constraints (which is the biggest negative of using 
 MySQL). Instead just manually create indexes on every foreign key field. 
 Otherwise your performance will deteriorate as tables sizes get larger.
 
 Seems like sound advise.
 I now have some careful un-picking to do.
 
 Also, incase anyone is interested, I eventually found the primary key 
 generation code in JDBCPlugIn.class : newPrimaryKeys(int count, EOEntity 
 entity, JDBCChannel channel)
 Other DB plugins do their own thing, but the MySQL one appears to fall back 
 on JDBCPlugIn.
 
 Thanks again, 
 
 Mark
 
 
 On 17 May 2013, at 21:18, Paul Yu wrote:
 
 Well you certainly should not use MyIsam system.  Innodb is the right 
 answer.  See Kieran's post on this subject.
 
 But I'm not sure that will be the end of your issues.
 
 Sent from my iPad
 
 On May 17, 2013, at 4:03 PM, Mark Gowdy go...@mac.com wrote:
 
 Hi, 
 
 We have started getting more of these errors recently, now that the system 
 is under more load.
 
 
 EvaluateExpression failed: 
 com.webobjects.jdbcadaptor._MySQLPlugIn$MySQLExpression: INSERT INTO 
 queue_item(ITEM_DATE,  ...  etc)
 Duplicate entry '4183884' for key 'PRIMARY'
 
 
 I believe the problem is due to the fact that there is more than one 
 instance trying to write to the 'queue_item' table, and the EO_PK_TABLE 
 mechanism is handing out the same ID more than once.
 Probably something to do with locking.
 
 Our Database is MySQL 5, and the EO_PK_TABLE is of type MyISAM.
 
 I tried to find the mechanism that allocate the primary key, but I keep 
 bumping up against:
 
 EOAdaptorChannel:
   @Deprecated
   public NSDictionaryString, Object 
 primaryKeyForNewRowWithEntity(EOEntity entity){
   return null;
   }
 
 
 Any advise would be appreciated, 
 
 Thanks, 
 
 Mark
 
 ___
 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/pyu%40mac.com
 
 This email sent to p...@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/kelleherk%40gmail.com
 
 This email sent to kelleh...@gmail.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


Duplicate entry '4183884' for key 'PRIMARY'

2013-05-17 Thread Mark Gowdy
Hi, 

We have started getting more of these errors recently, now that the system is 
under more load.


EvaluateExpression failed: 
com.webobjects.jdbcadaptor._MySQLPlugIn$MySQLExpression: INSERT INTO 
queue_item(ITEM_DATE,  ...  etc)
Duplicate entry '4183884' for key 'PRIMARY'


I believe the problem is due to the fact that there is more than one instance 
trying to write to the 'queue_item' table, and the EO_PK_TABLE mechanism is 
handing out the same ID more than once.
Probably something to do with locking.

Our Database is MySQL 5, and the EO_PK_TABLE is of type MyISAM.

I tried to find the mechanism that allocate the primary key, but I keep bumping 
up against:

EOAdaptorChannel:
@Deprecated
public NSDictionaryString, Object 
primaryKeyForNewRowWithEntity(EOEntity entity){
return null;
}


Any advise would be appreciated, 

Thanks, 

Mark

 ___
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: Duplicate entry '4183884' for key 'PRIMARY'

2013-05-17 Thread Mark Gowdy
Thanks Paul, it looks like you are correct.

Two 'Kieran Kelleher' email stated:

 There is also no row locking on EO_PK_TABLE with myisam, so you will get 
 primary key clashes and subsequent failed inserts if the db is sufficiently 
 contended.


and

 (1) Never use MyISAM - no transactional support means a failed 
 editingContext.saveChanges() will not result in a rollback and semi-saved 
 changes to the database. data integrity goes out the window. Use InnoDB 
  don't just convert live DB though, dump/import to a standby server, 
 configure InnoDB first completely and actually do a little bit of studying 
 the MySQL docs to understand how. Also, get a head start here: 
 https://github.com/kierankelleher/gic-mysql-tools
 
 (2) Don't create real foreign key constraints because MySQL does not 
 support deferred constraints (which is the biggest negative of using MySQL). 
 Instead just manually create indexes on every foreign key field. Otherwise 
 your performance will deteriorate as tables sizes get larger.

Seems like sound advise.
I now have some careful un-picking to do.

Also, incase anyone is interested, I eventually found the primary key 
generation code in JDBCPlugIn.class : newPrimaryKeys(int count, EOEntity 
entity, JDBCChannel channel)
Other DB plugins do their own thing, but the MySQL one appears to fall back on 
JDBCPlugIn.

Thanks again, 

Mark


On 17 May 2013, at 21:18, Paul Yu wrote:

 Well you certainly should not use MyIsam system.  Innodb is the right answer. 
  See Kieran's post on this subject.
 
 But I'm not sure that will be the end of your issues.
 
 Sent from my iPad
 
 On May 17, 2013, at 4:03 PM, Mark Gowdy go...@mac.com wrote:
 
 Hi, 
 
 We have started getting more of these errors recently, now that the system 
 is under more load.
 
 
 EvaluateExpression failed: 
 com.webobjects.jdbcadaptor._MySQLPlugIn$MySQLExpression: INSERT INTO 
 queue_item(ITEM_DATE,  ...  etc)
 Duplicate entry '4183884' for key 'PRIMARY'
 
 
 I believe the problem is due to the fact that there is more than one 
 instance trying to write to the 'queue_item' table, and the EO_PK_TABLE 
 mechanism is handing out the same ID more than once.
 Probably something to do with locking.
 
 Our Database is MySQL 5, and the EO_PK_TABLE is of type MyISAM.
 
 I tried to find the mechanism that allocate the primary key, but I keep 
 bumping up against:
 
 EOAdaptorChannel:
   @Deprecated
   public NSDictionaryString, Object primaryKeyForNewRowWithEntity(EOEntity 
 entity){
   return null;
   }
 
 
 Any advise would be appreciated, 
 
 Thanks, 
 
 Mark
 
 ___
 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/pyu%40mac.com
 
 This email sent to p...@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: Tool-tip framework

2012-10-23 Thread Mark Gowdy
One word - Twitter Bootstrap.
(well, two words)

Mark

Sent from my iPhone

On 23 Oct 2012, at 19:21, Chuck Hill ch...@global-village.net wrote:

 Mine was made for a specific purpose, but here it is:
 
 CSS:
 
 /* Tooltips inspired by  
 // http://www.jlhaslip.trap17.com/samples/tooltips/index.html*/
 
 a.tooltip {
position:relative;   /*this is the key*/
z-index:24;
text-decoration:none;
font-size: 1em;
 }
 
 a.tooltip:hover {
z-index:25;
 }
 
 ul a.tooltip:link {  /* remove underline when used in AjaxTabbedPanel */
text-decoration: none;
 }
 
 a.tooltip span {
display: none;  /* hide the span text using this css */
 }
 
 a.tooltip:hover span { /*the span will display just on :hover state*/
display:block;
position:absolute;
top: 1.5em;
left: 1em;
border:1px solid #00; /* border colour */
background-color:#D6E4F5; /* background colour here */
color:#00; /* text colour */
text-align: center;
font-size: .8em;
font-style:italic;
z-index:30;
 }
 
 /* End tooltips */
 
 
 Here is an excerpt of the code
 
 package net.hhshoppers.cadre.core.components;
 
 public class StateHover extends com.webobjects.appserver.WOComponent
 {
private State state;
 
 
 
/**
 * Basic class constructor.
 *
 * @param context of current page
 */
public StateHover(WOContext context)
{
super(context);
}
 
 
 
/**
 * @return codetrue/code
 */
public boolean isStateless()
{
return true;
}
 
 
 
/**
 * @return State corresponding to the stateCode binding
 */
public State state()
{
if (state == null)
{
if (hasBinding(stateCode))
{
state = StateMachine.instance().stateForCode((Number) 
 valueForBinding(stateCode));
}
}
 
return state;
}
 
 
 
/**
 * @return codetrue/code if there is a non-null {@link State} bound
 */
public boolean hasState()
{
return state() != null;
}
 
 
 
 
/**
 * Returns the special tooltip class that generates the custom tooltip 
 along with any class.
 * from the class binding
 *
 * @return CSS class for the link
 */
public String cssClass()
{
return (hasState() ? state().cssClass() : ) +  tooltip  + 
 valueForStringBinding(class, );
/** ensure [valid_result] Result != null;   **/
}
 
 
 
/**
 * Returns style to not show link cursor plus any style from the style 
 binding.
 *
 * @return CSS style for the link
 */
public String style()
{
return cursor:default; + valueForStringBinding(style, );
}
 
 
 
/**
 * Clears cached State.
 *
 * @see com.webobjects.appserver.WOComponent#reset()
 */
public void reset()
{
state = null;
super.reset();
/** ensure [state_discarded] state == null;   **/
 
}
 
 }
 
 
 Template:
 WEBOBJECT NAME=StateHoverWEBOBJECT NAME=ShortName/ spanWEBOBJECT 
 NAME=LongName//span/WEBOBJECT
 
 WOD:
 StateHover: WOHyperlink {
href = javascript:void(0);;
id  = ^id;
class = cssClass;
style = style;
 }
 
 ShortName : WOString {
value = state.shortName;
 }
 
 LongName : WOString {
value = state.longName;
 }
 
 
 
 
 On 2012-10-23, at 11:07 AM, Taylor Hadden wrote:
 
 Hi Chuck,
 
 It looks like I'm getting a 404 and 403 error from that link.
 
 taylorchadden.com
 @drizztmainsword
 
 
 
 
 
 On Oct 23, 2012, at 1:54 PM, Chuck Hill ch...@global-village.net wrote:
 
 I just made a simple component that used this:
 http://www.jlhaslip.trap17.com/samples/tooltips/index.html
 
 Chuck
 
 
 On 2012-10-23, at 10:29 AM, Taylor Hadden wrote:
 
 Hello,
 
 Is there an existing framework for using Ajax-based tooltips within the 
 Ajax Wonder framework or elsewhere in Wonder?
 
 Thanks,
 Taylor
 
 taylorchadden.com
 @drizztmainsword
 
 
 
 
 
 ___
 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
 
 -- 
 Chuck Hill Senior Consultant / VP Development
 
 Practical WebObjects - for developers who want to increase their overall 
 knowledge of WebObjects or who are trying to solve specific problems.
 http://www.global-village.net/gvc/practical_webobjects
 
 Global Village Consulting ranks 13th in 2012 in BIV's Top 100 Fastest 
 Growing Companies in B.C! 
 Global Village Consulting ranks 76th in 24th annual PROFIT 200 ranking of 
 Canada’s Fastest-Growing Companies by PROFIT Magazine!
 
 -- 
 Chuck Hill Senior Consultant / VP Development
 
 Practical WebObjects - for developers who want to increase their overall 
 knowledge of WebObjects 

Re: **SOLVED** Or qualifier (including a many-to-many 'containsObject') give wrong results

2012-05-19 Thread Mark Gowdy
Thanks Chuck,
Half the battle with this stuff is knowing what road to choose.

When I constructed my query in the following way, it worked correctly.

EOQualifier q1 = 
Media.PRIMARY_CATEGORY.eq(cat).or(Media.SECONDARY_CATEGORY.eq(cat)); // result 
count = 16 (correct)
EOQualifier q2 = Media.OTHER_CATEGORIES.containsObject(cat); // result count = 
11 (correct)
// Turn q2 into a subquery
ERXQualifierInSubquery q2AsSubQuery = new ERXQualifierInSubquery(q2);
ERXOrQualifier finalQuery = new ERXOrQualifier(new NSArray( new EOQualifier[] 
{q1, q2AsSubQuery } ));  // result count = 27 (CORRECT !!)

The SQL it generates is:
SELECT DISTINCT t0.MEDIA_PK, t0.PRIMARY_CAT_FK, t0.SECONDARY_CAT_FK
FROM mb_media t0 
WHERE (t0.MEDIA_PK IN ( SELECT t0.MEDIA_PK FROM mb_media t0, mb_cat_media_join 
T1, mb_categories T2 WHERE T2.CAT_PK = ? AND t0.MEDIA_PK = T1.MEDIA_CK AND 
T1.CAT_CK = T2.CAT_PK )  OR (t0.SECONDARY_CAT_FK = ? OR t0.PRIMARY_CAT_FK = ?))


The only problem now is, that  fetchSpec.setPrefetchingRelationshipKeyPaths(new 
NSArrayString(Media.TO_ONE_INFO)); no longer works.
CLASS   : java.lang.IllegalStateException
MESSAGE : sqlStringForKeyValueQualifier: attempt to generate SQL for 
er.extensions.qualifiers.ERXKeyValueQualifier (otherCategories contains 
(com.aetopia.MediaCategory)'com.aetopia.MediaCategory pk:1118') failed 
because attribute identified by key 'otherCategories' was not reachable from 
from entity 'MediaInfo'

But I think I can probably live with that for the minute.


Interestingly, the javadoc of ERXQualifierInSubquery mentions:
This class can be used to work around the EOF bug where OR queries involving 
many-to-manies are incorrectly generated


ERXQualifierInSubquery


Generates a subquery for the qualifier given in argument:


 EOQualifier q = EOQualifier.qualifierWithQualifierFormat(firstName = 'Max', 
null);
 ERXQualifierInSubquery qq = new ERXQualifierInSubquery(q, User, group);
 EOFetchSpecification fs = new EOFetchSpecification(Group, qq, null);
 
Would generate: SELECT t0.GROUP_ID, t0.NAME FROM USER t0 WHERE t0.GROUP_ID IN 
( SELECT t0.GROUP_ID FROM GROUP t0 WHERE t0.NAME = ? )  This class can be used 
to work around the EOF bug where OR queries involving many-to-manies are 
incorrectly generated 
It will also generate ... t0.FOREIGN_KEY_ID in (select t1.ID from X where [your 
qualifier here]) with the 3 arg constructor
---

My head just melted.

Mark
  

On 18 May 2012, at 22:09, Mark Gowdy wrote:

 Nope, MySQL
 
 I believe the equivalent memory filter works correctly.
 
 Mark
 
 Sent from my iPhone
 
 On 18 May 2012, at 19:51, Ramsey Gurley rgur...@smarthealth.com wrote:
 
 Using OpenBase by chance?  I remember having issues with OR qualifiers on 
 that a couple years ago.  The qualifiers would only work correctly in 
 memory. Using them on a db fetch failed to return the correct results.  I 
 never delved into the sql at the time, I just went with in memory qualifying 
 since it worked.
 
 Ramsey
 
 On May 18, 2012, at 5:20 AM, Mark Gowdy wrote:
 
 
 On 17 May 2012, at 18:27, Chuck Hill wrote:
 
 What are the three SQL statements being generated.  That is usually where 
 to start looking.
 
 For some reason, I cannot get EOAdaptorDebugEnabled to work.  So I turned 
 on sql logging (MySQL) using:
 SET GLOBAL general_log = 'ON';
 
 Some context:
 We have Media and MediaCategory entities with the following relationships:
 Media.primaryCat-- --  MediaCategory
 Media.secondaryCat  -- --  MediaCategory
 Media.otherCats -- 'mb_cat_media_join' -- MediaCategory
 
 These are the 4 queries and the resulting SQL:
 
 EOQualifier q1 = 
 Media.PRIMARY_CATEGORY.eq(cat).or(Media.SECONDARY_CATEGORY.eq(cat));
 // result count = 16 (CORRECT)
 SELECT DISTINCT t0.MEDIA_PK, t0.PRIMARY_CAT_FK, t0.SECONDARY_CAT_FK 
 FROM mb_media t0 
 WHERE (t0.SECONDARY_CAT_FK = ? OR t0.PRIMARY_CAT_FK = ?)
 
 EOQualifier q2 = Media.OTHER_CATEGORIES.containsObject(cat);
 // result count = 11 (CORRECT)
 SELECT DISTINCT t0.MEDIA_PK, t0.PRIMARY_CAT_FK, t0.SECONDARY_CAT_FK 
 FROM mb_media t0, mb_cat_media_join T1, mb_categories T2 
 WHERE T2.CAT_PK = ? AND t0.MEDIA_PK = T1.MEDIA_CK AND T1.CAT_CK = T2.CAT_PK
 
 Both of the above are correct, but when you try to OR them (in q3 and q4 
 below):
 
 EOQualifier q3 = 
 Media.PRIMARY_CATEGORY.eq(cat).or(Media.SECONDARY_CATEGORY.eq(cat)).or(Media.OTHER_CATEGORIES.containsObject(cat));
 // result count = 15 (WRONG, it should be 27)
 SELECT DISTINCT t0.MEDIA_PK, t0.PRIMARY_CAT_FK, t0.SECONDARY_CAT_FK 
 FROM mb_media t0, mb_cat_media_join T1, mb_categories T2 
 WHERE ((T2.CAT_PK = ? OR t0.SECONDARY_CAT_FK = ?) OR t0.PRIMARY_CAT_FK = ?) 
 AND t0.MEDIA_PK = T1.MEDIA_CK AND T1.CAT_CK = T2.CAT_PK
 
 EOOrQualifier q4 = new EOOrQualifier(new NSArray( new EOQualifier[] {q1,q2 
 } ));
 // result count = 15 (WRONG, it should be 27)
 SELECT DISTINCT t0.MEDIA_PK, t0.PRIMARY_CAT_FK, t0.SECONDARY_CAT_FK 
 FROM mb_media t0

Re: Or qualifier (including a many-to-many 'containsObject') give wrong results

2012-05-18 Thread Mark Gowdy

On 17 May 2012, at 18:27, Chuck Hill wrote:

 What are the three SQL statements being generated.  That is usually where to 
 start looking.

For some reason, I cannot get EOAdaptorDebugEnabled to work.  So I turned on 
sql logging (MySQL) using:
SET GLOBAL general_log = 'ON';

Some context:
We have Media and MediaCategory entities with the following relationships:
Media.primaryCat-- --  MediaCategory
Media.secondaryCat  -- --  MediaCategory
Media.otherCats -- 'mb_cat_media_join' -- MediaCategory

These are the 4 queries and the resulting SQL:

EOQualifier q1 = 
Media.PRIMARY_CATEGORY.eq(cat).or(Media.SECONDARY_CATEGORY.eq(cat));
// result count = 16 (CORRECT)
SELECT DISTINCT t0.MEDIA_PK, t0.PRIMARY_CAT_FK, t0.SECONDARY_CAT_FK 
FROM mb_media t0 
WHERE (t0.SECONDARY_CAT_FK = ? OR t0.PRIMARY_CAT_FK = ?)

EOQualifier q2 = Media.OTHER_CATEGORIES.containsObject(cat);
// result count = 11 (CORRECT)
SELECT DISTINCT t0.MEDIA_PK, t0.PRIMARY_CAT_FK, t0.SECONDARY_CAT_FK 
FROM mb_media t0, mb_cat_media_join T1, mb_categories T2 
WHERE T2.CAT_PK = ? AND t0.MEDIA_PK = T1.MEDIA_CK AND T1.CAT_CK = T2.CAT_PK

Both of the above are correct, but when you try to OR them (in q3 and q4 below):

EOQualifier q3 = 
Media.PRIMARY_CATEGORY.eq(cat).or(Media.SECONDARY_CATEGORY.eq(cat)).or(Media.OTHER_CATEGORIES.containsObject(cat));
// result count = 15 (WRONG, it should be 27)
SELECT DISTINCT t0.MEDIA_PK, t0.PRIMARY_CAT_FK, t0.SECONDARY_CAT_FK 
FROM mb_media t0, mb_cat_media_join T1, mb_categories T2 
WHERE ((T2.CAT_PK = ? OR t0.SECONDARY_CAT_FK = ?) OR t0.PRIMARY_CAT_FK = ?) AND 
t0.MEDIA_PK = T1.MEDIA_CK AND T1.CAT_CK = T2.CAT_PK

EOOrQualifier q4 = new EOOrQualifier(new NSArray( new EOQualifier[] {q1,q2 } ));
// result count = 15 (WRONG, it should be 27)
SELECT DISTINCT t0.MEDIA_PK, t0.PRIMARY_CAT_FK, t0.SECONDARY_CAT_FK 
FROM mb_media t0, mb_cat_media_join T1, mb_categories T2 
WHERE (T2.CAT_PK = ? OR (t0.SECONDARY_CAT_FK = ? OR t0.PRIMARY_CAT_FK = ?)) AND 
t0.MEDIA_PK = T1.MEDIA_CK AND T1.CAT_CK = T2.CAT_PK



If I run this _manually_ generated SQL, it give a result of 27 (which is 
correct):
SELECT DISTINCT t0.MEDIA_PK, t0.PRIMARY_CAT_FK, t0.SECONDARY_CAT_FK 
FROM mb_media t0, mb_cat_media_join T1, mb_categories T2 
WHERE (t0.SECONDARY_CAT_FK = 2 OR t0.PRIMARY_CAT_FK = 2) OR (T2.CAT_PK = 2 AND 
t0.MEDIA_PK = T1.MEDIA_CK AND T1.CAT_CK = T2.CAT_PK)

Any ideas how I can get WO to do the right thing?
(it looks like an EO sql generation bug to me)

Many thanks,

Mark


 
 Chuck
 
 
 On 2012-05-17, at 10:17 AM, Mark Gowdy wrote:
 
 Hi, 
 
 I have a 'Media' entity, and a 'Category' entity.
 I need to create a qualifier that queries on 2 'to-one' relationships, as 
 well as on a single 'to-many'.
 
 
 These are some test qualifiers and the number of distinct results they got:
 
 EOQualifier q1 = 
 Media.PRIMARY_CATEGORY.eq(cat).or(Media.SECONDARY_CATEGORY.eq(cat)); // 
 result count = 16 (correct)
 //
 EOQualifier q2 = Media.OTHER_CATEGORIES.containsObject(cat); // result count 
 = 11 (correct)
 //
 EOQualifier q3 = 
 Media.PRIMARY_CATEGORY.eq(cat).or(Media.SECONDARY_CATEGORY.eq(cat)).or(Media.OTHER_CATEGORIES.containsObject(cat));
  // result count = 15 (WRONG, should be 27)
 //
 // Another way
 EOOrQualifier q4 = new EOOrQualifier(new NSArray( new EOQualifier[] {q1,q2 } 
 ));  // result count = 15 (WRONG)
 
 
 In the past, I worked around the problem by doing two separate fetches and 
 combining the results.  But I would like to do it in one.
 So, any ideas how can I get 'q3' to work?
 
 The main reason for fixing this, is that I need to combine a few of these 
 with a larger AND qualifier, and some of the intermediary qualifiers are 
 likely to have LOTS of results.
 
 Regards, 
 
 Mark
 
 
 ___
 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
 
 -- 
 Chuck Hill Senior Consultant / VP Development
 
 Practical WebObjects - for developers who want to increase their overall 
 knowledge of WebObjects or who are trying to solve specific problems.
 http://www.global-village.net/gvc/practical_webobjects
 
 
 
 
 
 
 
 

 ___
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: Or qualifier (including a many-to-many 'containsObject') give wrong results

2012-05-18 Thread Mark Gowdy
Nope, MySQL

I believe the equivalent memory filter works correctly.

Mark

Sent from my iPhone

On 18 May 2012, at 19:51, Ramsey Gurley rgur...@smarthealth.com wrote:

 Using OpenBase by chance?  I remember having issues with OR qualifiers on 
 that a couple years ago.  The qualifiers would only work correctly in memory. 
 Using them on a db fetch failed to return the correct results.  I never 
 delved into the sql at the time, I just went with in memory qualifying since 
 it worked.
 
 Ramsey
 
 On May 18, 2012, at 5:20 AM, Mark Gowdy wrote:
 
 
 On 17 May 2012, at 18:27, Chuck Hill wrote:
 
 What are the three SQL statements being generated.  That is usually where 
 to start looking.
 
 For some reason, I cannot get EOAdaptorDebugEnabled to work.  So I turned on 
 sql logging (MySQL) using:
 SET GLOBAL general_log = 'ON';
 
 Some context:
 We have Media and MediaCategory entities with the following relationships:
 Media.primaryCat-- --  MediaCategory
 Media.secondaryCat  -- --  MediaCategory
 Media.otherCats -- 'mb_cat_media_join' -- MediaCategory
 
 These are the 4 queries and the resulting SQL:
 
 EOQualifier q1 = 
 Media.PRIMARY_CATEGORY.eq(cat).or(Media.SECONDARY_CATEGORY.eq(cat));
 // result count = 16 (CORRECT)
 SELECT DISTINCT t0.MEDIA_PK, t0.PRIMARY_CAT_FK, t0.SECONDARY_CAT_FK 
 FROM mb_media t0 
 WHERE (t0.SECONDARY_CAT_FK = ? OR t0.PRIMARY_CAT_FK = ?)
 
 EOQualifier q2 = Media.OTHER_CATEGORIES.containsObject(cat);
 // result count = 11 (CORRECT)
 SELECT DISTINCT t0.MEDIA_PK, t0.PRIMARY_CAT_FK, t0.SECONDARY_CAT_FK 
 FROM mb_media t0, mb_cat_media_join T1, mb_categories T2 
 WHERE T2.CAT_PK = ? AND t0.MEDIA_PK = T1.MEDIA_CK AND T1.CAT_CK = T2.CAT_PK
 
 Both of the above are correct, but when you try to OR them (in q3 and q4 
 below):
 
 EOQualifier q3 = 
 Media.PRIMARY_CATEGORY.eq(cat).or(Media.SECONDARY_CATEGORY.eq(cat)).or(Media.OTHER_CATEGORIES.containsObject(cat));
 // result count = 15 (WRONG, it should be 27)
 SELECT DISTINCT t0.MEDIA_PK, t0.PRIMARY_CAT_FK, t0.SECONDARY_CAT_FK 
 FROM mb_media t0, mb_cat_media_join T1, mb_categories T2 
 WHERE ((T2.CAT_PK = ? OR t0.SECONDARY_CAT_FK = ?) OR t0.PRIMARY_CAT_FK = ?) 
 AND t0.MEDIA_PK = T1.MEDIA_CK AND T1.CAT_CK = T2.CAT_PK
 
 EOOrQualifier q4 = new EOOrQualifier(new NSArray( new EOQualifier[] {q1,q2 } 
 ));
 // result count = 15 (WRONG, it should be 27)
 SELECT DISTINCT t0.MEDIA_PK, t0.PRIMARY_CAT_FK, t0.SECONDARY_CAT_FK 
 FROM mb_media t0, mb_cat_media_join T1, mb_categories T2 
 WHERE (T2.CAT_PK = ? OR (t0.SECONDARY_CAT_FK = ? OR t0.PRIMARY_CAT_FK = ?)) 
 AND t0.MEDIA_PK = T1.MEDIA_CK AND T1.CAT_CK = T2.CAT_PK
 
 
 
 If I run this _manually_ generated SQL, it give a result of 27 (which is 
 correct):
 SELECT DISTINCT t0.MEDIA_PK, t0.PRIMARY_CAT_FK, t0.SECONDARY_CAT_FK 
 FROM mb_media t0, mb_cat_media_join T1, mb_categories T2 
 WHERE (t0.SECONDARY_CAT_FK = 2 OR t0.PRIMARY_CAT_FK = 2) OR (T2.CAT_PK = 2 
 AND t0.MEDIA_PK = T1.MEDIA_CK AND T1.CAT_CK = T2.CAT_PK)
 
 Any ideas how I can get WO to do the right thing?
 (it looks like an EO sql generation bug to me)
 
 Many thanks,
 
 Mark
 
 
 
 Chuck
 
 
 On 2012-05-17, at 10:17 AM, Mark Gowdy wrote:
 
 Hi, 
 
 I have a 'Media' entity, and a 'Category' entity.
 I need to create a qualifier that queries on 2 'to-one' relationships, as 
 well as on a single 'to-many'.
 
 
 These are some test qualifiers and the number of distinct results they got:
 
 EOQualifier q1 = 
 Media.PRIMARY_CATEGORY.eq(cat).or(Media.SECONDARY_CATEGORY.eq(cat)); // 
 result count = 16 (correct)
 //
 EOQualifier q2 = Media.OTHER_CATEGORIES.containsObject(cat); // result 
 count = 11 (correct)
 //
 EOQualifier q3 = 
 Media.PRIMARY_CATEGORY.eq(cat).or(Media.SECONDARY_CATEGORY.eq(cat)).or(Media.OTHER_CATEGORIES.containsObject(cat));
  // result count = 15 (WRONG, should be 27)
 //
 // Another way
 EOOrQualifier q4 = new EOOrQualifier(new NSArray( new EOQualifier[] {q1,q2 
 } ));  // result count = 15 (WRONG)
 
 
 In the past, I worked around the problem by doing two separate fetches and 
 combining the results.  But I would like to do it in one.
 So, any ideas how can I get 'q3' to work?
 
 The main reason for fixing this, is that I need to combine a few of these 
 with a larger AND qualifier, and some of the intermediary qualifiers are 
 likely to have LOTS of results.
 
 Regards, 
 
 Mark
 
 
 ___
 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
 
 -- 
 Chuck Hill Senior Consultant / VP Development
 
 Practical WebObjects - for developers who want to increase their overall 
 knowledge of WebObjects or who are trying to solve specific problems.
 http://www.global

Or qualifier (including a many-to-many 'containsObject') give wrong results

2012-05-17 Thread Mark Gowdy
Hi, 

I have a 'Media' entity, and a 'Category' entity.
I need to create a qualifier that queries on 2 'to-one' relationships, as well 
as on a single 'to-many'.


These are some test qualifiers and the number of distinct results they got:

EOQualifier q1 = 
Media.PRIMARY_CATEGORY.eq(cat).or(Media.SECONDARY_CATEGORY.eq(cat)); // result 
count = 16 (correct)
//
EOQualifier q2 = Media.OTHER_CATEGORIES.containsObject(cat); // result count = 
11 (correct)
//
EOQualifier q3 = 
Media.PRIMARY_CATEGORY.eq(cat).or(Media.SECONDARY_CATEGORY.eq(cat)).or(Media.OTHER_CATEGORIES.containsObject(cat));
 // result count = 15 (WRONG, should be 27)
//
// Another way
EOOrQualifier q4 = new EOOrQualifier(new NSArray( new EOQualifier[] {q1,q2 } 
));  // result count = 15 (WRONG)


In the past, I worked around the problem by doing two separate fetches and 
combining the results.  But I would like to do it in one.
So, any ideas how can I get 'q3' to work?

The main reason for fixing this, is that I need to combine a few of these with 
a larger AND qualifier, and some of the intermediary qualifiers are likely to 
have LOTS of results.

Regards, 

Mark


 ___
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: Multiple foreign keys pointing to the same table

2012-05-14 Thread Mark Gowdy
The other option is to use a many-to-many relationship between the two 
entities. 
Select the two entities in EOModeller (or whatever it is called nowadays) and 
join in a 'many-to-many'.
It will create the join table (with a compound key created using the two 
primary keys), and wo will handle all of the magic required to make it work.

Mark

Sent from my iPhone

On 14 May 2012, at 11:14, Ralf Schuchardt r...@gmx.de wrote:

 Hi Pavan,
 
 the order of inserts of objects in a transaction is not specified. I think 
 you see the insert of a row in table1 before the depending row in table2 
 causing the error.
 You should mark the foreign keys as deferrable initially deferred to 
 postpone the integrity check to the end of the transaction, when all rows are 
 inserted.
 
 Regards,
 Ralf
 
 Am 14.05.2012 um 10:57 schrieb Pavan Kumar Jayam:
 
 Hi List,
 
 I want to have multiple foreign keys in Table1 representing same table 
 Table2.
 
 Eg: Employee table have a Department table primary key as foreign key, now I 
 want to have another foreign key in Employee table representing Department 
 table. Which means an employee can be a member of two departments.
 
 I have foreign key in table1 represents table 2 primary key, also I want to 
 have another foreign key in table 1 to represent the same table(table 2).
 
 Both the table 1 and table 2 records are creating in the same editing 
 context and saving the editing context changes with ec.saveChanges().
 
 With one foreign key I am able to save table1 and table2 records, but when I 
 am saving the editing context with multiple foreign keys of same table I am 
 getting error error code: 2291 == msg ORA-02291: integrity constraint() 
 violated - parent key not found.
 
 Please advise how to implement it with Oracle 11 and WO 5.4.3.
 
 Regards,
 Pavan.
 
 ___
 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/rasc%40gmx.de
 
 This email sent to r...@gmx.de
 
 
 ___
 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/gowdy%40mac.com
 
 This email sent to go...@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: Multiple foreign keys pointing to the same table

2012-05-14 Thread Mark Gowdy
Read the replies to this posting.  It should help.

http://markmail.org/message/ndp7jgdfjwfnouwa#query:webobject%20many%20to%20many%20tutorial+page:1+mid:ejbgzqebozximrda+state:results

 EOModeler can do this automatically for you. 1)Click on the model so you can 
 see the model in list mode. 2)Select the two entities you want to join 
 (Command Click on Mac Control Click on Windows) 3)Menu-Property-Join In 
 Many-to-Many
 Et Voilà!
 Just fill the missing info in the newly created entity. Also I leave the 
 correlation object to be of type EOGenericRecord (no need for create a custom 
 class).
 

Mark

Sent from my iPhone

On 14 May 2012, at 12:00, Pavan Kumar Jayam pavan.ja...@prithvisolutions.com 
wrote:

 Hi Ralf,
 
 Thanks for the suggestion and I will verify marking as deferrable constraint.
 
 And I followed another approach of storing the details in a join table, I am 
 encountering a null pointer exception while saving the data. Displayed all 
 the objects in the context by using context.insertedObjects() and I can see 
 all the objects and data in console.
 
 Can you suggest me where I am going wrong.
 
 Regards,
 Pavan.
 
 
 
 On 14-May-2012, at 3:44 PM, Ralf Schuchardt wrote:
 
 Hi Pavan,
 
 the order of inserts of objects in a transaction is not specified. I think 
 you see the insert of a row in table1 before the depending row in table2 
 causing the error.
 You should mark the foreign keys as deferrable initially deferred to 
 postpone the integrity check to the end of the transaction, when all rows 
 are inserted.
 
 Regards,
 Ralf
 
 Am 14.05.2012 um 10:57 schrieb Pavan Kumar Jayam:
 
 Hi List,
 
 I want to have multiple foreign keys in Table1 representing same table 
 Table2.
 
 Eg: Employee table have a Department table primary key as foreign key, now 
 I want to have another foreign key in Employee table representing 
 Department table. Which means an employee can be a member of two 
 departments.
 
 I have foreign key in table1 represents table 2 primary key, also I want to 
 have another foreign key in table 1 to represent the same table(table 2).
 
 Both the table 1 and table 2 records are creating in the same editing 
 context and saving the editing context changes with ec.saveChanges().
 
 With one foreign key I am able to save table1 and table2 records, but when 
 I am saving the editing context with multiple foreign keys of same table I 
 am getting error error code: 2291 == msg ORA-02291: integrity constraint() 
 violated - parent key not found.
 
 Please advise how to implement it with Oracle 11 and WO 5.4.3.
 
 Regards,
 Pavan.
 
 ___
 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/rasc%40gmx.de
 
 This email sent to r...@gmx.de
 
 
 
 
 
 
 ___
 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/gowdy%40mac.com
 
 This email sent to go...@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

AjaxUpdateLink Non-Ajax alternative link

2012-02-23 Thread Mark Gowdy
Hi, 

I am curious to know if there is a common and simple approach to serving both 
Ajax and non-Ajax (full page refresh) links together (preferably using Wonder's 
Ajax framework).  Where the browser (or spider) uses the appropriate thing 
depending on Java-script availability.   One of the main goals is to have a 
good user experience, while making it crawler friendly.

E.g.
We have a 'PreviewImage' page that has 'forward' + 'back' buttons to move 
through the images in an array.
1) The traditional approach is to have links (directActions - canonical + SEO 
friendly) that refresh the whole page.
2) The Ajax way is to only update the image container within the page.

e.g. something not entirely unlike this, but where the AJAX link would not 
appear in a non-js enabled browser.
!-- AJAX --
a  href=javascript:void(0); onclick=AUL.update('MainContentContainer', {}, 
'18.0.1.5.1.13.1'); class=buttonPrevious/a

!-- NON-AJAX --
noscripta class=button title=Previous 
href=http://local.dev.com/media/_OtCPoAsawcyK3lYd9HFjQ..a?ts=lsHSk5hvnz6rAJcZqdBOIQ..a;Previous/a/noscript


Btw: the 'http://local.dev.com/media/...' thing uses an apache URL rewrite to 
get it back into a normal WebObjects URLs.

Regards, 

Mark

 ___
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: Weird Crash

2012-02-16 Thread Mark Gowdy
The cause might be your SVN plugin.

http://lists.apple.com/archives/webobjects-dev/2012/Jan/msg00365.html

Mark

Sent from my iPhone

On 16 Feb 2012, at 18:00, Jaime Magiera ja...@sensoryresearch.net wrote:

 Hello folks,
 
 I've got weird problem that arose after setting up Eclipse + WO on OSX 
 10.7.2. I've imported projects from a previous Eclipse + WO install. The 
 editing of components, etc. works fine. However, when I go to save, about 50% 
 of the time, Eclipse will just freeze and go into SPOD. I've not been able to 
 determine any specific set of actions that causes this to happen. I've tried 
 opening/closing components, changing focus before saving, etc. Nothing seems 
 to stand out as a cause. 
 
 Any thoughts on how I could troubleshoot this?
 
 Jaime Magiera
 
 Sensory Research, Inc.
 http://www.sensoryresearch.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/gowdy%40mac.com
 
 This email sent to go...@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: **SOLVED** Eclipse 3.7.1 hangs a lot - Anyone else?

2012-01-26 Thread Mark Gowdy
Joe  / Paul / et al,

Joe, you were right about 'Subversive'.
I installed Subclipse instead, and my system has been stable for a day :-)

Using this excellent resource as my guide:
http://wiki.wocommunity.org/display/WONDER/Project+Wonder+Installation

This was my final install (with ssh+svn:// key-pair functionality):
Eclipse 3.7.1 (64-bit)
eclipse-jee-indigo-SR1-macosx-cocoa-x86_64

WOLips:
Current: (For Elipse 3.7) 
http://webobjects.mdimension.com/hudson/job/WOLips37Current/lastSuccessfulBuild/artifact/site/

WebObjects 5.4.3

Subversion - http://www.open.collab.net/downloads/community/
- Universal Subversion 1.6.17 Binaries for Lion (Mac OS X 10.7)
- Subversion JavaHL Native Library Adapter

Subclipse - http://subclipse.tigris.org/servlets/ProjectProcess?pageID=p4wYuA
Subclipse - I used 1.6.x (due to Subversion v1.6.17 above)
I installed everything under the eclipse 'update url': 
http://subclipse.tigris.org/update_1.6.x
(It is possible that it might work with 1.8.x, using Subversion 1.7 
from macports, the only question might be the JavaHL 32/64bit compatibility 
issues)

Another thing I noticed, is that you might have to re-import your projects 
again to get Subclipse to realise they are TEAM-able.

Mark


 On 24 Jan 2012, at 15:02, Joe Little wrote:
 
 well, use Eclipse Classic and Subclipse -- otherwise the same as me.
 Subversive I recall is problematic and could be your problem.
 
 
 On Tue, Jan 24, 2012 at 2:16 AM, Mark Gowdy go...@mac.com wrote:
 Joe,
 
 While your install is still fresh in your mind, may I ask you a quick
 question:
 
 I just installed a similar set-up, but periodically, my system simply hangs
 (usually just after I save a java file).  I am trying to figure out what is
 responsible.
 
 I have installed:
 
 Eclipse 3.7.1 (64-bit)
 eclipse-jee-indigo-SR1-macosx-cocoa-x86_64
 also tried
 eclipse-java-indigo-SR1-macosx-cocoa-x86_64
 
 WOLips:
 Current: (For Elipse
 3.7) 
 http://webobjects.mdimension.com/hudson/job/WOLips37Current/lastSuccessfulBuild/artifact/site/
 
 WebObjects 5.4.3
 
 SVN + JavaHL
 http://www.open.collab.net/downloads/community/
 - Universal Subversion 1.6.17 Binaries for Lion (Mac OS X 10.7)
 - Subversion JavaHL Native Library Adapter
 
 Subversive:
 From: Eclipse : Help - Install New Software
 Indigo - http://download.eclipse.org/releases/indigo
 Subversive SVN Team Provider (Incubation) 0.7.9.I20110819-1700
 
 (I also did an Eclipse check-for-updates, which downloaded a newer WOLips -
 it was hanging before I did that, as well as after)
 
 Is there anything in that list that sounds wrong?
 Did you use any alternatives?
 
 Regards,
 
 Mark
 
On 21 Jan 2012, at 22:57, Paul Yu wrote:

 I had/have this problem.  The first problem was that Eclipse was just running 
 really really slw.  The fix for that happened to be deleting iPhoto 
 preferences from the ~/Library/Preferences directory.  I have no idea why, 
 but once I deleted those files, Eclipse flies now.  My guess is that some how 
 Migration Assistant or how I migrated to this new machine messed those files 
 up.
 
 However, periodically I still notice that Eclipse will still hang a bit, but 
 not as bad as before. 
 
 -- 
 Paul Yu
 Sent with Sparrow
 
 On Saturday, January 21, 2012 at 4:32 PM, Mark Gowdy wrote:
 
 Hi there.
 
 I just got a new MacBook Pro with quad i7 :-)
 
 I installed Eclipse (Indigo 3.7.1) + WO + WOLips + Wonder + subversive
 I imported my projects, and all initially seemed good.
 
 The problem is that Eclipse keeps freezing (sometimes while I am 
 'Refreshing' or 'Clean - build', or when I update and save code, where I 
 guess it then builds on the fly)
 Is anyone else experiencing this issue (or have I have done something silly?)
 It doesn't happen ALL the time, just once or twice an hour.
 
 It might be related to this:
 https://bugs.eclipse.org/bugs/show_bug.cgi?id=354696
 
 I am going to try installing openjdk6 from macports, and pointing Eclipse to 
 it, to see if that helps.
 
 Other suggestions welcome.
 
 Regards, 
 
 Mark
 ___
 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/pyu%40mac.com
 
 This email sent to p...@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: new system: all installed, but eogeneration is a no-op

2012-01-24 Thread Mark Gowdy
Joe, 

While your install is still fresh in your mind, may I ask you a quick question:

I just installed a similar set-up, but periodically, my system simply hangs 
(usually just after I save a java file).  I am trying to figure out what is 
responsible.

I have installed:

Eclipse 3.7.1 (64-bit)
eclipse-jee-indigo-SR1-macosx-cocoa-x86_64
also tried 
eclipse-java-indigo-SR1-macosx-cocoa-x86_64

WOLips: 
Current: (For Elipse 3.7) 
http://webobjects.mdimension.com/hudson/job/WOLips37Current/lastSuccessfulBuild/artifact/site/

WebObjects 5.4.3

SVN + JavaHL
http://www.open.collab.net/downloads/community/
- Universal Subversion 1.6.17 Binaries for Lion (Mac OS X 10.7)
- Subversion JavaHL Native Library Adapter

Subversive:
From: Eclipse : Help - Install New Software
Indigo - http://download.eclipse.org/releases/indigo
Subversive SVN Team Provider (Incubation)   
0.7.9.I20110819-1700

(I also did an Eclipse check-for-updates, which downloaded a newer WOLips - it 
was hanging before I did that, as well as after)

Is there anything in that list that sounds wrong?
Did you use any alternatives?

Regards, 

Mark

On 24 Jan 2012, at 06:05, Joe Little wrote:

 Solved myself looking at the list. Its the 3.7 refresh issue as well
 as the defaults of eogen setting complete paths to the source tree and
 not just Sources.
 
 
 On Mon, Jan 23, 2012 at 9:29 PM, Joe Little jmlit...@gmail.com wrote:
 So, I haven't brought the full old config with all my frameworks over
 to my macbook air. Time to start a new project with an old model, so I
 got Eclipse 3.7, the matching wolips, and the latest Wonder binaries
 (Jan 19th apparently). All in place, Wonder project builds find.
 
 However, creating a Wonder Framework and adding my eomodeld, I created
 the eogen file, and then run eogenerator. It runs in a blink of a
 second, but never a source file is generated. No logs -- where would
 one begin to look? odd ball one here that makes me feel like a novice
 all over again.
 ___
 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/gowdy%40mac.com
 
 This email sent to go...@mac.com

On 24 Jan 2012, at 06:05, Joe Little wrote:

 Solved myself looking at the list. Its the 3.7 refresh issue as well
 as the defaults of eogen setting complete paths to the source tree and
 not just Sources.
 
 
 On Mon, Jan 23, 2012 at 9:29 PM, Joe Little jmlit...@gmail.com wrote:
 So, I haven't brought the full old config with all my frameworks over
 to my macbook air. Time to start a new project with an old model, so I
 got Eclipse 3.7, the matching wolips, and the latest Wonder binaries
 (Jan 19th apparently). All in place, Wonder project builds find.
 
 However, creating a Wonder Framework and adding my eomodeld, I created
 the eogen file, and then run eogenerator. It runs in a blink of a
 second, but never a source file is generated. No logs -- where would
 one begin to look? odd ball one here that makes me feel like a novice
 all over again.
 ___
 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/gowdy%40mac.com
 
 This email sent to go...@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


Eclipse 3.7.1 hangs a lot - Anyone else?

2012-01-21 Thread Mark Gowdy
Hi there.

I just got a new MacBook Pro with quad i7 :-)

I installed Eclipse (Indigo 3.7.1) + WO + WOLips + Wonder + subversive
I imported my projects, and all initially seemed good.

The problem is that Eclipse keeps freezing (sometimes while I am 'Refreshing' 
or 'Clean - build', or when I update and save code, where I guess it then 
builds on the fly)
Is anyone else experiencing this issue (or have I have done something silly?)
It doesn't happen ALL the time, just once or twice an hour.

It might be related to this:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=354696

I am going to try installing openjdk6 from macports, and pointing Eclipse to 
it, to see if that helps.

Other suggestions welcome.

Regards, 

Mark
 ___
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


Java Development Kit 7 for Mac OS X

2011-01-12 Thread Mark Gowdy

Noticed this, and thought of you lot.

The OpenJDK project has released the first code for the Apple-backed  
open source version of Java Development Kit 7 for Mac OS X.


http://www.theregister.co.uk/2011/01/12/ 
open_source_java_for_mac_code_released/


Mark

___
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:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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


Re: error please help me out

2010-08-12 Thread Mark Gowdy

Hi,

I am not sure how you have it all set up.  But this is how we do it:

(WO_Dudes: can someone confirm that I have this right, I don't want  
to give out dodgy advice)
(Also, is there a good online guide to Getting yer head around all  
this?)


Basically, in WO, everything is structure like this.  You have:

1) WebObjects Frameworks (generic functionality that can be used by  
other 'WO Frameworks' or many 'WO Applications')
	- Consists of Jars / Components / Other Resources / Models /  
References to other Frameworks

- NOT Run-able
	- WO Frameworks are creating using File : New : WebObjects  
Framework (or 'Wonder Framework')


2) WebObjects Applications
	- Consists of Jars / Components / Other Resources / References to  
other Frameworks

- Includes Application.java, Session.java, ...
- Run-able
	- WO Applications are creating using File : New : WebObjects  
Application (or 'Wonder Application')
	- You have to add all the Frameworks manually (+ the Frameworks that  
they reference) into the 'Library' section

(at least you do in the version of Eclipse/WOLips that we use)

(Note: You can add in references to other JARs in the 'Library'  
section too.  Although we have tended to put them all into a special  
WO Framework (in our case AEJars.framework))
(Also, if you are not using 'Wonder', you should probably have a look  
at it.)


This is how we do it, but it does not necessarily mean it is the best  
way (but it works for us)


You might have to go back to the 'mailing list' to get more help.

Mark


On 12 Aug 2010, at 10:59, vaibhav srivastava wrote:

what will be that framework ?? because permissionWrapper is in  
some  PermClient project which is not coming under framewrok when i  
tried to add it .

Regards
Vaibhav

On Thu, Aug 12, 2010 at 2:53 PM, Mark Gowdy go...@mac.com wrote:
This is what one of mine looks like:

You may have to add in the frameworks that your application uses in  
here (by clicking 'Add Library', and selecting the relevant  
frameworks).


Mark

pastedGraphic.png
On 12 Aug 2010, at 10:00, vaibhav srivastava wrote:


Please find the attached document

On Thu, Aug 12, 2010 at 1:57 PM, Mark Gowdy go...@mac.com wrote:

On 12 Aug 2010, at 08:36, vaibhav srivastava wrote:


Right-click on your 'Ptm' project in Eclipse, click on 'Properties'
Select 'Java Build Path'
Select 'Libraries' tab


You forgot to select the 'Libraries' tab.

Send me a screen shot here.




Don't go as far as clicking 'Add' (just yet).

I wanted to see what libraries/frameworks this project already has.


Right-click on your 'Ptm' project in Eclipse, click on 'Properties'
Select 'Java Build Path'
Select 'Libraries' tab
Take Screenshot

ds.tiff





 ___
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:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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

Re: error please help me out

2010-08-06 Thread Mark Gowdy

Hi,

I think the clue is this:

java.lang.ClassNotFoundException: Cannot find class or component  
named PermissionWrapper in runtime or in a loadable bundle


Is PermissionWrapper in another framework?

If so, you need to add that framework to your project.

Right-click on your 'Ptm' project in Eclipse, click on 'Properties'
Select 'Java Build Path'
Select 'Libraries' tab
Click 'Add Library'
Select 'WebObjects Framework'
Tick the one you want to add,
Click 'Finish'
Click 'Ok'

Hopefully that should do it.

Mark


On 6 Aug 2010, at 15:47, vaibhav srivastava wrote:





Hi Team,

I am a newbie to webobjects and working on some custom project .  
When click one of the tab of projects ui i get this error .



Please could you let me what this error is and why is it coming .
Attaching the stack trace.

com.webobjects.appserver._private.WOComponentRequestHandler:  
Exception occurred while handling request:
Caused by: com.webobjects.foundation.NSForwardException  
[java.lang.ClassNotFoundException] Cannot find class or component  
named PermissionWrapper in runtime or in a loadable  
bundle:com.webobjects.appserver._private.WOComponentDefinition:  
Error parsing template for Component : 'file:/XYZ/ASD/src/forge_co/ 
PM/source/PM/build/PtM.woa/Contents/Resources/PDSExportPage.wo':
java.lang.ClassNotFoundException: Cannot find class or component  
named PermissionWrapper in runtime or in a loadable bundle
	at com.webobjects.appserver._private.WOComponentDefinition.template 
(WOComponentDefinition.java:377)
	at com.webobjects.appserver.WOComponent.template(WOComponent.java: 
499)
	at com.webobjects.appserver.WOComponent.appendToResponse 
(WOComponent.java:1112)
	at com.apple.store.webtoolkit.wo.ASWOComponent.appendToResponse 
(ASWOComponent.java:108)

... 17 more
Caused by: java.lang.ClassNotFoundException: Cannot find class or  
component named PermissionWrapper in runtime or in a loadable bundle
	at  
com.webobjects.appserver.parser.WOHTMLWebObjectTag._componentReference 
WithClassNameDeclarationAndTemplate(WOHTMLWebObjectTag.java:168)
	at  
com.webobjects.appserver.parser.WOHTMLWebObjectTag._elementWithDeclara 
tion(WOHTMLWebObjectTag.java:241)
	at  
com.webobjects.appserver.parser.WOHTMLWebObjectTag.dynamicElement 
(WOHTMLWebObjectTag.java:155)
	at  
com.webobjects.appserver.parser.WOBundleComponentTemplateParser.didPar 
seClosingWebObjectTag(WOBundleComponentTemplateParser.java:68)
	at  
com.webobjects.appserver.parser.WOHTMLParser.didParseClosingWebObjectT 
ag(WOHTMLParser.java:194)
	at com.webobjects.appserver.parser.WOHTMLParser.endOfWebObjectTag 
(WOHTMLParser.java:161)
	at com.webobjects.appserver.parser.WOHTMLParser.parseHTML 
(WOHTMLParser.java:68)
	at  
com.webobjects.appserver.parser.WOBundleComponentTemplateParser.parse( 
WOBundleComponentTemplateParser.java:109)
	at com.webobjects.appserver.parser.WOHTMLTemplateParser.parse 
(WOHTMLTemplateParser.java:40)
	at  
com.webobjects.appserver.parser.WOComponentTemplateParser.templateWith 
HTMLAndDeclaration(WOComponentTemplateParser.java:438)
	at com.webobjects.appserver._private.WOComponentDefinition.template 
(WOComponentDefinition.java:366)

... 20 more


Pleaselet me know as soon as possible since i am suck up .


Ok



Regards
Cool




 ___
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:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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

Re: FetchSpec setFetchLimit??

2010-07-12 Thread Mark Gowdy


On 2 Mar 2009, at 23:43, Chuck Hill wrote:



On Mar 2, 2009, at 1:42 PM, Kieran Kelleher wrote:

I always thought that EOFetchSpecification.setFetchLimit( int n)  
would generate SQL with LIMIT n tacked onto the end of the SQL  
statement, but it appears not to.


This is the default behavior as not all databases implement this.   
Specific plugins add this, IIRC.


Chuck



Hi guys,

I have just stumbled into the same issue here:

I need to fetch the latest item from a table in a MySQL database,  
where there are almost half a million items
I thought that fetchSpec.setFetchLimit(1) would tell the DB to do the  
hard work, but this appears not to be the case.

Consequently, my app is exploding with 'out of memory' issues.

Is there a work around for this problem (some plug-in I am unaware  
of), or do I need to get creative with raw-rows?


A solution would be good, because I was using these all over the  
place (without knowledge of the consequences)


Thanks again,

Mark



Instead it fetches the all qualifying records and does the LIMIT  
in memory?! Has this always been the case  or is it just the  
MySQL driver?


For example:

snip
// Fetch the most recent shipped message
ERXSortOrderings s = CTMessage.XKEY_OID.descs();

ERXFetchSpecificationCTMessage fs = new  
ERXFetchSpecificationCTMessage(CTMessage.ENTITY_NAME,null,s);


fs.setFetchLimit(1);

System.out.println(MailingAddressUtilitiesTests.suppressionTest 
(): fs.SQL =  + ERXEOAccessUtilities.sqlForFetchSpecification(ec,  
fs));


NSArrayCTMessage objects = fs.fetchObjects(ec);
/snip


. generates the following SQL without LIMIT 1 !!!

SELECT t0.oid, t0.oidcampaign, t0.oiddatarecord, t0.oidjob,  
t0.oidlocation, t0.oidmediatemplate, t0.recaddtime, t0.recadduser,  
t0.recmodtime, t0.recmoduser, RTRIM(t0.workflowstate) FROM message  
t0 ORDER BY t0.oid DESC;

___
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:
http://lists.apple.com/mailman/options/webobjects-dev/chill% 
40global-village.net


This email sent to ch...@global-village.net



--
Chuck Hill Senior Consultant / VP Development

Practical WebObjects - for developers who want to increase their  
overall knowledge of WebObjects or who are trying to solve specific  
problems.

http://www.global-village.net/products/practical_webobjects






___
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:
http://lists.apple.com/mailman/options/webobjects-dev/gowdy%40mac.com

This email sent to go...@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:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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


Arghh: WOString with 'valueWhenEmpty' bound to a null String

2010-06-16 Thread Mark Gowdy

Hello,

I just wasted a few hours of my life over the most insanely  
unexpected behaviour from my old friend 'WOString'.


If you put this into your page (you can guess what  
'returnsNullString' returns):


wo:str value = $returnsNullString valueWhenEmpty =  
$returnsNullString/


it displays the string:

null

I was expecting it to display nothing.

I just thought you all might like to know that.
I wish I did.  a few hours ago :-(

Mark

 ___
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:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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

Re: You don't have permission to access /cgi-bin/WebObjects/TheApp.woa/-5579 on this server.

2010-04-15 Thread Mark Gowdy

Do a quick search for the message on 2nd April 2010:
Re: Application not working with update 10.6.3

This is probably the same problem:

The update added a few lines to /etc/apache2/httpd.conf

To the end of the  configuration of mailman: , it added:

ScriptAlias /cgi-bin/ /Library/WebServer/CGI-Executables/

which promptly stopped the WebObjects apache adaptor from being seen.

Hope that helps..

Mark

On 15 Apr 2010, at 03:54, Jeff Schmitz wrote:

Same thing was happening to me (I just upgraded to SL on my Dev  
machine), and after making the suggested change below, when I start  
my app with DirectConnect disabled I'm getting


Forbidden

You don't have permission to access /cgi-bin/WebObjects/ 
netBrackets.woa/- on this server.


Any ideas?

Thanks,
Jeff

On Apr 6, 2010, at 2:34 PM, David LeBer wrote:



On 2010-04-06, at 3:06 PM, David LeBer wrote:


Hey all,

I'm on Snow Leopard and my dev environment is not letting me  
connect to my app with direct connect disabled. Sheepishly, I  
can't remember whether this has worked since I updated  to SL.  
Does anyone have a working apache2 httpd.conf file they could  
send me that I could compare against mine?


Thx,

;david



Thanks everyone, found it.

Directory /
   Options FollowSymLinks
   AllowOverride None
   Order deny,allow
   Deny from all
/Directory

vs:

Directory /
   Options FollowSymLinks
   AllowOverride None
   #Order deny,allow
   #Deny from all
/Directory

I thought I'd corrected that...

;david

--
David LeBer
Codeferous Software
'co-def-er-ous' adj. Literally 'code-bearing'
site:   http://codeferous.com
blog:   http://davidleber.net
profile:http://www.linkedin.com/in/davidleber
twitter:http://twitter.com/rebeld
--
Toronto Area Cocoa / WebObjects developers group:
http://tacow.org




___
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:
http://lists.apple.com/mailman/options/webobjects-dev/jeffandmonica 
%40mac.com


This email sent to jeffandmon...@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:
http://lists.apple.com/mailman/options/webobjects-dev/gowdy%40mac.com

This email sent to go...@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:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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


Re: Application not working with update 10.6.3

2010-04-02 Thread Mark Gowdy
Apologies for repeating this, I accidentally sent it to only the Omni  
list instead of the Apple one.

--

Hello,

When I now do a diff between the updated 'httpd.conf' and the backup  
I made before I got WebObjects installed and working, this was the  
results:


diff httpd.conf httpd.conf.backup


1197d1196
 # ScriptAlias /cgi-bin/ /Library/WebServer/CGI-Executables/
1373,1377d1371
   Proxy disabled_proxy
   Allow from example.com
   Deny from all
   Order Deny,Allow
   /Proxy
1498d1491
 Include /System/Library/WebObjects/Adaptors/Apache2.2/apache.conf


(Note that the # in the first line was added by me afterwards to get  
the server apps live again)


So the changes from the update were:

1) To the end of the  configuration of mailman: , it added:

ScriptAlias /cgi-bin/ /Library/WebServer/CGI-Executables/

which promptly stopped the WebObjects apache adaptor from being seen.


2) To the ## Proxy Server directives section, it added:

Proxy disabled_proxy
Allow from example.com
Deny from all
Order Deny,Allow
/Proxy

Which is only here for completeness.


I used the following excellent article to install WO on Snow Leopard,  
maybe someone should update it with a footnote about this issue.

If I had hit this issue from a clean install, I would have been stuffed.
http://wiki.objectstyle.org/confluence/display/WO/ 
Programming__WebObjects-Web+Applications-Deployment-Mac+OS+X+Server


Regards,

Mark

On 1 Apr 2010, at 17:26, Mark Ritchie wrote:



On 1/Apr/2010, at 1:55 AM, Mark Gowdy wrote:


The update added a line to /etc/apache2/httpd.conf



That's weird...
In the last week I've had to reinstall 10.6 while leaving my user  
and data files in tact.
One time I bulk upgraded to 10.6.2, the next time, the bulk update  
was to 10.6.3.
After both of those updates, my modified httpd.conf file has  
remained intact.
However, I never did the 10.6.2 to 10.6.3 upgrade, perhaps that's  
the one that messes with the config?

Anyone else have an experience with this?
M.



The update added a line to /etc/apache2/httpd.conf

ScriptAlias /cgi-bin/ /Library/WebServer/CGI-Executables/

If you comment that out with a #, and restart apache,
sudo apachectl restart

it should start working again.

This is hacky, and not nice. So can someone create a better  
solution to this?





On 1 Apr 2010, at 08:18, Stavros Panidis wrote:
Hi all,

after software update to 10.6.3 Snow Leopard server deployed  
application is not working





On mine, it comes up with:

Object not found!

The requested URL was not found on this server. If you entered the  
URL manually please check your spelling and try again.





Not Found

The requested URL /cgi-bin/WebObjects/RetailShop was not found on  
this server.


Additionally, a 404 Not Found error was encountered while trying  
to use an ErrorDocument to handle the request.




Apache/2.2.14 (Unix) PHP/5.3.1 Server at www.russellingreece.com  
Port 80



Any comments / suggestions ?

Many thanks in advance

Stavros








 ___
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:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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

ERXEOControlUtilities.clearSnapshotForRelationshipNamed(..) weirdness !

2009-11-05 Thread Mark Gowdy

Hi,

I am having an strange problem with Wonder's  
clearSnapshotForRelationshipNamed method.


(My Wonder version is a few days old)

We have EOs which are related to each other:
RoutingMediaItem   ---   RoutingMediaStatus

When I try to get an up-to-date status object and check the results  
using:


ERXEOControlUtilities.clearSnapshotForRelationshipNamed 
(routingMediaItem, RoutingMediaItem.TO_ONE_STATUS);
AELog.dbg(- routingMediaItem.status() class   =  +  
routingMediaItem.status().getClass().getName());
AELog.dbg(- routingMediaItem.status().descr() =  +  
routingMediaItem.status().descr());  // This is line 100 of  
RoutingMediaBatch, and descr() is a normal string


The first debug prints what you would expect:
- routingMediaItem.status() class  = RoutingMediaStatus

The second line explodes with:
java.lang.ClassCastException: RoutingMediaStatus
	at com.webobjects.eoaccess.EODatabaseContext.objectsForSourceGlobalID 
(EODatabaseContext.java:3880)
	at  
com.webobjects.eocontrol.EOObjectStoreCoordinator.objectsForSourceGlobal 
ID(EOObjectStoreCoordinator.java:634)
	at com.webobjects.eocontrol.EOEditingContext.objectsForSourceGlobalID 
(EOEditingContext.java:3923)

at er.extensions.eof.ERXEC.objectsForSourceGlobalID(ERXEC.java:1182)
	at com.webobjects.eoaccess.EODatabaseContext._fireArrayFault 
(EODatabaseContext.java:4245)
	at  
com.webobjects.eoaccess.EOAccessArrayFaultHandler.completeInitialization 
OfObject(EOAccessArrayFaultHandler.java:77)
	at com.webobjects.eocontrol.EOCustomObject.willRead 
(EOCustomObject.java:1172)
	at com.webobjects.eocontrol._EOMutableKnownKeyDictionary$Initializer 
$_GenericRecordBinding.valueInObject 
(_EOMutableKnownKeyDictionary.java:570)
	at com.webobjects.eocontrol.EOCustomObject.storedValueForKey 
(EOCustomObject.java:1634)

at _RoutingMediaStatus.descr(_RoutingMediaStatus.java:39)
at RoutingMediaBatch.cancel(RoutingMediaBatch.java:100)

I am a little confused as to what I am doing wrong here (or what I  
have broken).
I thought it might have been some weird AJAX thing, but I replace the  
AJAX links with normal ones but the problem persists.


Regards,

Mark
 ___
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:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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

Re: Firefox adding Pr to a hidden field?!

2009-09-11 Thread Mark Gowdy

Miguel,

I have also noticed this in our error logs, but it happens so  
infrequently that I just ignored it (presumed it was a bot, or  
something probing for a common security hole or something)

If you discover otherwise, please let us know.

Thanks,

Mark

On 11 Sep 2009, at 15:48, Miguel Arroz wrote:


Hi!

  Just to make it clear, I am NOT able to reproduce this. I'm just  
watching this on the live production servers and reading the logs.  
So it may be something else masking as Firefox.


  Yours

Miguel Arroz




On 2009/09/11, at 15:45, Miguel Arroz wrote:


Hi!

 Has anyone had seen problems with requests that (theoretically)  
come from the Firefox browser where the string Pr is added to a  
hidden form field? I've seen this in the past, and I'm seeing it  
now. It's causing my stuff to crash because that field is supposed  
to have a number, so parseInt crashes. I'm getting stuff like  
12526795139Pr where it should be 12526795139.


 Yours

Miguel Arroz ___
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:
http://lists.apple.com/mailman/options/webobjects-dev/arroz% 
40guiamac.com


This email sent to ar...@guiamac.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:
http://lists.apple.com/mailman/options/webobjects-dev/gowdy%40mac.com

This email sent to go...@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:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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


ERXEC and locking

2009-08-13 Thread Mark Gowdy

Hi there,

I have been watching Chuck's podcast - WebObjects Quite Good  
Practices, and I would like to make absolutely sure that I  
understand this correctly.


Q: Is it true to say:
-
If I use ERXEC to create all my editingContexts, using:
EOEditingContext ec = ERXEC.newEditingContext();
then I do not have to worry about locking, it all happens automagically.
-

Thanks,

Mark

 ___
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:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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

Re: ERXEC and locking

2009-08-13 Thread Mark Gowdy


On 13 Aug 2009, at 13:39, Mike Schrag wrote:

I have been watching Chuck's podcast - WebObjects Quite Good  
Practices, and I would like to make absolutely sure that I  
understand this correctly.


Q: Is it true to say:
-
If I use ERXEC to create all my editingContexts, using:
EOEditingContext ec = ERXEC.newEditingContext();
then I do not have to worry about locking, it all happens  
automagically.

assuming you have the appropriate properties set to autolock


Are the default settings to 'autolock'?
Also, are the ECs that I create in the middle of an RR-loop safe?




-


That is absolutely correct... but (there is always a but, isn't  
it ;-) if you are not within a RR-loop (think of separate long  
running threads, ...) you have to lock manually.

.. unless you use ERXRunnable


Cool, I shall investigate.



ms

___
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:
http://lists.apple.com/mailman/options/webobjects-dev/gowdy%40mac.com

This email sent to go...@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:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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


Re: Session... when are they created?

2009-08-11 Thread Mark Gowdy


On 11 Aug 2009, at 11:47, Francesco Romano wrote:

I noticed that the submit button has no wosid associated, but the  
other links yes...

Therein lies the problem I think.  It should have a wosid.
You need to figure out why that link is not getting the wosid  
appended correctly.


What happens if you remove the '?redirect = redirectTo' bindings from  
both the form and the button?


Mark

 ___
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:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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

Detecting Javascript enabled (browser side)

2009-08-10 Thread Mark Gowdy

Hello,

We recently started using the Wonder Ajax framework (which is amazing  
btw, well done guys), but we want to be able to detect if javaScript  
is enabled on the client's browser.


I suspect this is a problem solved by many before, but I cannot seem  
to find a reliable solution.


I have considered setting cookies using client-side javascript, then  
checking for them server-side.

But conditions can arise where this might not work.

Checking client-side should be the simplest and more reliable way,  
but I have hit a little problem.

The noscript condition is simple (no issues there)
The script condition is less simple.  You have to use a  
document.write('..');

The problem is now an escaping issue (as demonstrated below):

TheComponent.html
---
noscript
  webobject name = ClickedRemoveFromOrder Remove /webobject
/noscript

script type=text/javascript
  document.write('wo:AjaxUpdateLink action =  
$clickedRemoveFromOrder title = Remove from basket class =  
remove updateContainerID = $mediaItem.pk.toString Remove / 
wo:AjaxUpdateLink');

/script

---
Generates:
---
noscript
	a class=remove title=Remove from basket href=/cgi-bin/ 
WebObjects/Shop.woa/wo/3.0.17.10.0.0.1.3.11.1.1.1.1.3.1.5.1.3.1  
Remove /a

/noscript

script type=text/javascript
	document.write('a href=javascript:void(0); onclick=AUL.update 
('246', {}, '3.0.17.10.0.0.1.3.11.1.1.1.1.3.1.5.1.3.3');  
title=Remove from basket class=remove Remove /a');

/script
---

I believe I need to escape the following characters so that they can  
be inserted into the document.write as a parameter.

' /
and probably a few more?

Is there a container I can use that will escape the generated HTML  
automatically?

Or maybe an additional binding on AjaxUpdateLink (escapeForJavascript)?

Other suggestions welcome.

Thanks in advance,

Mark



 ___
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:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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

Re: Session... when are they created?

2009-08-10 Thread Mark Gowdy




2) Let's say an anonymous user has a session... then he logs in.  
And... I don't want the session change!!
This is the code (it's a direct action, called from a submit button  
in a form)



In the case where the user has a session, can you show us:
1) The component html (in eclipse) for this login form.
2) And can you show us the rendered html source from the browser and  
the URL that got you to that login page.


Are sessions being handled in the default way, or are you using  
cookies (or another way)?


Regards,

Mark

 ___
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:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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

Odd cookie expiration behaviour (Safari related?)

2009-06-12 Thread Mark Gowdy

Hello,

We use cookies to do various tracking talks.
When we added a new cookie (with a shorter expiration time than we  
would normally use), we noticed something odd:


In Firefox, it was working as expected.
In Safari it was not appearing at all.

On closer inspection, we noticed that he cookie expiration time was odd.

This is some test code I am using (in Session's appendToResponse) is:

  private static int i = 0;
  
  a_rsp.addCookie(new WOCookie(key_a_ + i, someValue + i,   /,  
null, 31104000, false)); // 31104000 seconds = ~12 months
  a_rsp.addCookie(new WOCookie(key_b_ + i, someValue + i++, /,  
null,  7776000, false)); //  7776000 seconds =  ~3 months



In Firefox, these cookies appear as expected:
- Click 
key_a_0 = 0 (expires in 1 year)
key_b_0 = 0 (expires in 3 months)
- Click 
key_a_1 = 1 (expires in 1 year)
key_b_1 = 1 (expires in 3 months)


In Safari, it goes weird (to view these, go to Preferences - Security  
tab, and click 'show cookies' - it updates in real time)

- Click 
key_a_0 = 0 (expires in 12 days)
- Click 
key_a_1 = 1 (expires in 12 days)

(no sign of key_b_x)

This happens if you are using Direct Connect (when developing) and on  
a live server (with Apache, etc...)


Am I doing something wrong, or is Safari like some kinda crazy thing?

Mark

 ___
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:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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

Inserting a new sub-component (programmatically) in appendToResponse()

2009-06-08 Thread Mark Gowdy

Hello,

I need to insert a new sub-component into a page during the request- 
response cycle (probably within appendToResponse() )


I thought I had achieved this, but all the links on the page are now  
broken (and other general weirdness unfolds)


This is the essence what I need to achieve (I removed all the  
specific crud that you don't need)


This breaks:
public void appendToResponse(WOResponse a_rsp, WOContext a_ctx) {
super.appendToResponse(a_rsp, a_ctx);

//  Prepare a sub-component (then pass it bindings, etc..)
//	DisplayArticle generatedContent = ((ERXApplication) 
ERXApplication.application()).pageWithName(DisplayArticle.class,  
a_ctx); // the other way
	DisplayArticle newComponent = (DisplayArticle)pageWithName 
(DisplayArticle);
	String generatedContentForCMSTag = newComponent.generateResponse 
().contentString();	

//  Do stuff
//  Update a_rsp.setContent(adjustedContent);
}

I need this to not break.

I suspect that this is messing up the object graph that it uses when  
invokeAction and takeValuesFromRequest is called.
Do I need to register (or unregister) these components somehow after  
they are created.
The DisplayArticle component ONLY ever use direct actions, so I will  
not be using normal actions within these.

They do however need to retain their session info.

--

This might look a little bit mad (when out of context), so if you are  
interested, this is why I want to do it:
I am parsing 'a_rsp.contentString();' using a regex so that I can  
locate tags that may appear (these tags may have come from a string  
(from a content managed article in the database)

These are in the form:
cms:DisplayTitle displayTitle = About Us linkToArticle = Y  
artTitle = About Us /
The plan is to find these, and replace them with a generated  
component (into which I pass those bindings)


The cool thing is, that the inserted article can also contain one of  
these tags, hence we have a simple content management structure.


If there is a better way to do this, feel free to enlighten me.

Thanks in advance,

Mark

 ___
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:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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

Adaptor URL issue (probably) in Windows deployment

2009-05-31 Thread Mark Gowdy

Hello,

We recently upgraded our apps to the latest WO version and also start  
using Project Wonder (which rocks by the way).


I deployed our app on one of our customer's Windows servers, and have  
hit a little snag.


The IIS ISAPI adaptor is called WebObjects.dll, but something is  
removing the .dll part of the url when the pages are being returned

e.g. /WebObjects.dll/MyApp.woa   - /WebObjects/MyApp.woa

I either need to bend IIS to fit with the WebObjects/ way,
or force our application to use WebObjects.dll/ somehow.

I suspect it is simple to solve (if you know how)
-WOStopBuggeringAboutWithAdaptorURL YES


Many thanks,

Mark

___
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:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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


Re: Adaptor URL issue (probably) in Windows deployment

2009-05-31 Thread Mark Gowdy

Doh,

Solved (kinda)

I managed to bend IIS into some kinda sensible shape using an  
ISAPI_Rewrite plug-in tool called 'Helicon'

This allows you to write Apache style url rewrites

The rule I used was:
RewriteRule ^/aetopia/WebObjects.dll/(.*) /aetopia/WebObjects/$1

Happy joy,

Mark


On 31 May 2009, at 16:10, Mark Gowdy wrote:


Hello,

We recently upgraded our apps to the latest WO version and also  
start using Project Wonder (which rocks by the way).


I deployed our app on one of our customer's Windows servers, and  
have hit a little snag.


The IIS ISAPI adaptor is called WebObjects.dll, but something is  
removing the .dll part of the url when the pages are being returned

e.g. /WebObjects.dll/MyApp.woa   - /WebObjects/MyApp.woa

I either need to bend IIS to fit with the WebObjects/ way,
or force our application to use WebObjects.dll/ somehow.

I suspect it is simple to solve (if you know how)
-WOStopBuggeringAboutWithAdaptorURL YES


Many thanks,

Mark

___
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:
http://lists.apple.com/mailman/options/webobjects-dev/gowdy%40mac.com

This email sent to go...@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:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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


Re: What im doing wrong with AjaxUpdateContainer and a AjaxSelectionList?

2009-05-19 Thread Mark Gowdy

Hi,

I recently starting using the Wonder Ajax stuff, and this is my  
(limited understanding) solution to your problem.


I think you need an AjaxSubmitButton in the  form somewhere:
wo:AjaxSubmitButton functionName = GroupSelectionUpdate  
updateContainerID = GroupSelection action = $someActionInJava/


I am probably wrong (there is probably some other form magic to  
consider), this is all new to me.


Have a closer look at AjaxExamples2 app with Wonder, that is how I am  
learning this stuff.


Mark

On 19 May 2009, at 16:43, Gustavo Adolfo Pizano wrote:


Hello Dave.

Well... im home now.. but this is what I remember I have written...  
oh well let me see if I can access the work's computer from home

...
...

Ok got it...

This is what I have.

div id=container
div id=main style = float:left

 webobject name = GroupList
li
wo:WOString value = 
$itemGroup.cn/
/li 
/webobject  

/div
div
Esto deberia actualizarce:
  wo:AjaxUpdateContainer id=GroupSelection
 wo:WOString value=$selectedGroup.cn /
 /wo:AjaxUpdateContainer
/div

!-- /main --
/div


and in the WOD:

GroupList: AjaxSelectionList {
elementName=ul;
list = groups;
item = itemGroup;
selection = selectedGroup;
onchange = return actionPerformed();
id = list;  
}

the JS on the oncahnge binding, has the follwoing:

script
function actionPerformed(){
alert('asdgsad');
GroupSelectionUpdate();
}
/script

the alert in fact its being fired.. but.. the UpdateContainer  
doesn't update.


I want to be able to select an item in the list and then show the  
details of that item without making a page reload.. (well that why  
ajax is there for no)?



Thanks

Gustavo



On May 19, 2009, at 3:45 PM, David Avendasora wrote:


Hey Gustavo,

Can you paste the WebObject tag parameters here for both the  
AjaxSelectionList and the AjaxUpdateContainer? I'm having a hard  
time visualizing how they are setup.


Dave

On May 19, 2009, at 9:23 AM, Gustavo Adolfo Pizano wrote:


Hello.

I have an AjaxSelecitonList, with the data I need to show, now I  
have an AjaxUpdateContainer with id GroupSelection also. but   
when I click and item in the list the container doesnt update.. I  
tried then to set the binding onselect = return actionOnList();  
and in that method I called the GroupSelectionUpdate() method  
that it's auto-generated, ( I read it in the wiki), but still  
nothing happens.


What I want to achieve is to selec an item in the AjaxList, and  
the in the UpdateContainer show the information related to that  
item.
I have check  the Examples, but when I try to apply them into my  
app there is no success

..

Ajax is my Aquiles Ankle , and WO, and EOF , and I can keep  
going :P... not but seriously .. what am I missing, am I that  
blidn to don't see the things?



Thanks

Gustavo
___
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:
http://lists.apple.com/mailman/options/webobjects-dev/webobjects% 
40avendasora.com


This email sent to webobje...@avendasora.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:
http://lists.apple.com/mailman/options/webobjects-dev/gowdy%40mac.com

This email sent to go...@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:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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

Re: [OT] Parsing legacy fixed width flat files

2009-03-25 Thread Mark Gowdy

You could investigate 'Regular Expressions'. They are very powerful.
Although you rarely hear RegEx and 'Easing the pain' in the same  
sentence.


Mark

Sent from my iPhone

On 25 Mar 2009, at 04:01, Q qdo...@gmail.com wrote:

This is a bit off topic, but the Java foo is strong here so I  
thought it a good place to ask.


I am in the unfortunately position of having to write a parser for a  
flat fixed width ascii file format that uses a cobol style multi- 
record format where one of the leading fields defines the actual  
record type, which determines how you need to parse the rest of the  
string.


Can anyone recommend a java library to help do this sort of data  
processing that might ease my pain.


Thanks.

--
Seeya...Q

Quinton Dolan - qdo...@gmail.com
Gold Coast, QLD, Australia (GMT+10)
Ph: +61 419 729 806



___
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:
http://lists.apple.com/mailman/options/webobjects-dev/gowdy%40mac.com

This email sent to go...@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:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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