Re: [OT] New js framework

2012-07-12 Thread Brook, James


Sent from my iPhone

On 12 Jul 2012, at 00:10, Alexis Tual 
alexis.t...@gmail.commailto:alexis.t...@gmail.com wrote:



2012/7/11 Brook, James jbr...@lgi.commailto:jbr...@lgi.com
So presumably Motorola has a server-side framework with REST, sync and 
persistence to go with this...

You'll have to ask them directly, but they advise Node.js as the server side 
framework, sounds promising as you can for example move parts of code client 
side or server side... (JavaClient anyone ?)

My comment was meant as innuendo. Didn't Motorola hire someone who used to be 
the WebObjects engineering manager to lead the development of a JavaScript 
framework persistence layer?

Looks like they have worked mainly on the component stuff and not on the 
persistence layer, there's some code : 
https://github.com/Motorola-Mobility/montage/tree/master/data but not samples 
using it.

Cheers,

Alex


Sent from my iPhone

On 11 Jul 2012, at 02:31, 
prob...@macti.camailto:prob...@macti.camailto:prob...@macti.camailto:prob...@macti.ca
 
prob...@macti.camailto:prob...@macti.camailto:prob...@macti.camailto:prob...@macti.ca
 wrote:

And if anyone remembers Benoit Marchand's talk at WOWODC 2009 or his rant at 
WOWODC 2011, have a look at the framework.

Envoyé de mon iPhone

Le 2012-07-10 à 19:14, Alexis Tual 
alexis.t...@gmail.commailto:alexis.t...@gmail.commailto:alexis.t...@gmail.commailto:alexis.t...@gmail.com
 a écrit :

Hi list,

I've just seen this morning across twitter: http://www.tetsubo.org
Montage is released : congrats to the Motorola-Mobility team for bringing us 
WO-like components on the client side !
(So maybe not that off topic)

Cheers

Alex

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

This email sent to 
prob...@macti.camailto:prob...@macti.camailto:prob...@macti.camailto:prob...@macti.ca
___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  
(Webobjects-dev@lists.apple.commailto:Webobjects-dev@lists.apple.commailto:Webobjects-dev@lists.apple.commailto:Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/jbrook%40upcbroadband.com

This email sent to 
jbr...@upcbroadband.commailto:jbr...@upcbroadband.commailto:jbr...@upcbroadband.commailto:jbr...@upcbroadband.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: Webobjects-dev Digest, Vol 9, Issue 583

2012-07-12 Thread Vinny Luc



On Jul 10, 2012, at 3:26 PM, Dawn Lockhart wrote:

as soon as you click on any action on the query or pick page, you are
immediately logged out with no exceptions thrown
Are the actions that fail a form submission? Does the action method ever
get called? Is the session terminated? Is a new session constructed?
The session is not terminated and a new one is not constructed.
The actions are a ERDLinkToEditObject inside a ERMODPickListPage;
however, the link's action is never called.

Those are tough to debug. It sounds like you're still getting the session
id in the request though.

If you're using the integration branch, you should be able to set a
breakpoint in handleRequest of the ERXComponentRequestHandler to help you
figure out where things go wrong.


Thanks Ramsey for the pointer to use integration branch.

It failed at the point where it's trying to restore the page and since
previous ajax action was not cached, it blew up.

I am able to get it to work now by manually setting the
PAGE_REPLACEMENT_CACHE_LOOKUP_KEY to the request header during the ajax
submit. I guess since the AjaxObserveField for this dropDown
navigationMenu tried to update a non-update-container DIV that it did not
have either the replaceID or UpdateContainerID to use as the
pageCacheKey

Thanks,
Vinny





 ___
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: Custom D2W Navigation

2012-07-12 Thread Vinny Luc
Sorry forgot to include the proper subject line

On 7/12/12 3:55 AM, Vinny Luc v...@k12.com wrote:




On Jul 10, 2012, at 3:26 PM, Dawn Lockhart wrote:

as soon as you click on any action on the query or pick page, you are
immediately logged out with no exceptions thrown
Are the actions that fail a form submission? Does the action method ever
get called? Is the session terminated? Is a new session constructed?
The session is not terminated and a new one is not constructed.
The actions are a ERDLinkToEditObject inside a ERMODPickListPage;
however, the link's action is never called.

Those are tough to debug. It sounds like you're still getting the session
id in the request though.

If you're using the integration branch, you should be able to set a
breakpoint in handleRequest of the ERXComponentRequestHandler to help you
figure out where things go wrong.


Thanks Ramsey for the pointer to use integration branch.

It failed at the point where it's trying to restore the page and since
previous ajax action was not cached, it blew up.

I am able to get it to work now by manually setting the
PAGE_REPLACEMENT_CACHE_LOOKUP_KEY to the request header during the ajax
submit. I guess since the AjaxObserveField for this dropDown
navigationMenu tried to update a non-update-container DIV that it did not
have either the replaceID or UpdateContainerID to use as the
pageCacheKey

Thanks,
Vinny






 ___
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 from EOF to Cayenne

2012-07-12 Thread Andrew Lindesay

Hi;

I can't speak for WO integration but from the perspective of using 
Cayenne with other infrastructure, I can say that I enjoyed working with 
Cayenne a while back -- I'm sadly not using it at the moment.


Coming from an integrated stack like WO, it is possible to forget that 
Cayenne is focused on the object-relational bit; be careful to evaluate 
it in terms of its remit.


cheers.



I agree that we need to more closely examine Cayenne before jumping in with 
both feet.



--
Andrew Lindesay


___
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 from EOF to Cayenne

2012-07-12 Thread Hugi Thordarson
 Cayenne is still missing a lot of functionality when compared to EOF/Wonder 
 and generally feels less mature (understandably, since EOF is ancient). This 
 is perhaps not such a huge problem, since functionality can always be 
 added—but there is indeed a *lot* of work to be done to reach feature parity 
 with EOF.
 
 That seems like an overstatement to me.  What things is it missing that you 
 need?

Well, it isn't exactly big things that are missing, but rather an aggregation 
of a lot of small things. Things I can live without, but would rather not. EOF, 
Foundation, Wonder and the tools have 20 years of refinement and integration in 
their design so moving from EOF to Cayenne feels a little like moving from a 
Mercedes to a Wolkswagen Bug.

Lack of IDE support, no prototypes, no KVC, getAccessor (ugh), limited 
support for inheritance, no ERXKey means no type safe queries and strings 
everywhere, somewhat buggy modeler with no support for cross-model 
relationships, no crossing relationships in raw row fetches (which makes it 
harder to create reports from huge object graphs), no Project Wonder EO stuff 
etc. etc.

Now, I know this comparison is unfair to Cayenne which is in fact great, and 
Andrus and the others have done an amazing job. EOF is just hard to beat, 
because EOF is very, very good. And as I said, Cayenne will no doubt get there, 
I just believe it will take a lot of work.


 The only reasonable way to do a re-implementation of EOF would be to start 
 with Cayenne.  It doesnt have the same API as EOF, but that could be done; 
 that hard work has already been done, only the API would need change.  But I 
 think there are advantages in trying to merge with the Cayenne community 
 rather than taking it and forking it.

I agree. If they're compatible it's probably the way to go.

- hugi
 ___
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 from EOF to Cayenne

2012-07-12 Thread Larry Mills-Gahl

I apologize if this has already been suggested or discussed elsewhere, but it 
might be a worthwhile exercise to extend the API and feature comparison on the 
WIKI (http://wiki.wocommunity.org/display/WO/Alternative+Technologies-Cayenne 
... thanks John) in the direction of a roadmap between where we are right now 
with EOF and Cayenne and what a Cayenne that includes the best of EOF/Wonder.

I know this is not a trivial task, but if we either extended the existing WIKI 
section or created this as an explicit roadmap, it could help focus the 
discussion and resources so that we'll at least have a reasonable understanding 
(as a community) of what we need to do to get to this integration (and more 
fundamentally, if we want to do this). Another benefit from the perspective of 
the cayenne community would be to be able to see what features we are looking 
for and willing to work on so that it's clear we are not competing with their 
roadmap, but perhaps adding extra lanes on the road. 

It might also help in looking for financial support for elements of the 
evolution of cayenne/eof. 

I think some version of the feature comparison table and the API comparison 
table might suit to start this process. If we look at those tables with an eye 
toward how much effort it would take to implement we could begin to prioritize 
areas and seek support for projects that are less straight-forward and require 
some heavy lifting. 

Paul Yu had (what I think is) a very good idea in defining tests for the 
functionality that we need. I'm certainly not suggesting this is a trivial 
task, but I think defining what success would look like will help us recognize 
when we get there. 
(Paul, sorry if I've misinterpreted your idea ... but it was hot and the sun 
was in my eyes on the forced march back over the bridge)

Any thoughts?


Larry Mills-Gahl



On Jul 12, 2012, at 7:23 AM, John Huss wrote:

 
 
 On Thursday, July 12, 2012, Hugi Thordarson wrote:
 I think Hugi also use it.
 
 Is that a point for or against it?  :-P
 
 PastedGraphic-1.png
 
 But yes, I've used Cayenne on a couple of projects. As you know it feels a 
 *lot* like EOF and was by far the nicest ORM I could legally use at my 
 previous pure java workplace. (protip: never go anywhere near JPA, it *will* 
 rape your dog and kill your grandmother.) Apart from the technical 
 similarities, Cayenne also has another important thing in common with WO: A 
 good community and an active mailing list full of nice and helpful people, so 
 you never get stuck along the way.
 
 Cayenne is still missing a lot of functionality when compared to EOF/Wonder 
 and generally feels less mature (understandably, since EOF is ancient). This 
 is perhaps not such a huge problem, since functionality can always be 
 added—but there is indeed a *lot* of work to be done to reach feature parity 
 with EOF.
 
 That seems like an overstatement to me.  What things is it missing that you 
 need?
  
 
 It's clear that at some point most of us will have to stop using EOF in it's 
 current form. In a perfect world (that's the world where I have endless time 
 and money) I'd do a clean room implementation of EOF and live happily ever 
 after. But this is indeed not a perfect world, so helping making Cayenne 
 better and more integrated with WO seems like a more realistic goal 
 
 It's really the same goal isn't it?  The only reasonable way to do a 
 re-implementation of EOF would be to start with Cayenne.  It doesnt have the 
 same API as EOF, but that could be done; that hard work has already been 
 done, only the API would need change.  But I think there are advantages in 
 trying to merge with the Cayenne community rather than taking it and forking 
 it.
  
 (besides, it allows more resources to be spent on a re-implementation of WO; 
 something I'd love to participate in). 
 
 - hugi
 ___
 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/lmg%40webfarm.com
 
 This email sent to l...@webfarm.com



signature.asc
Description: Message signed with OpenPGP using GPGMail
 ___
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: Escaping property files keys

2012-07-12 Thread Henrique Prange
Hi Benjamin,

The value defined by the er.attachment.s3.key property is always encoded. It 
doesn't cause any real problem in runtime besides the ugly URL. One possible 
solution is to convert '%2F' back to '/' after the URL encoding executed here 
[1].

[1]https://github.com/projectwonder/wonder/blob/integration/Frameworks/BusinessLogic/ERAttachment/Sources/er/attachment/processors/ERS3AttachmentProcessor.java#L104

Cheers,

Henrique

On 11/07/2012, at 18:30, Benjamin Harrington wrote:

 Hello All,
 
 I was having an issue with ERAttachment (s3 mode).  When setting the property 
 file attribute:
 
 er.attachment.s3.key=projectName/${pk}${ext}
 
 The '/' gets escaped into '%2F'.  The default value is ${pk}${ext} (primary 
 key).(mime extension) which work as expected.
 
 I've tried several options such as escaping with a backslash, feeding it the 
 %2F instead, or any other tweaks I could think of, but it always comes out as 
 URL encoding.
 
 Any thoughts on this?  I would like to avoid programmatically setting this, 
 as the ERXAttachmentUploader and such classes are concise and handy.
 
 Thanks!
 
 -Benny
 ___
 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/hprange%40gmail.com
 
 This email sent to hpra...@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


Re: Migrating from EOF to Cayenne

2012-07-12 Thread arosenzweig
Hi WOrriors,

I still question why we are fighting so hard for Object-relational 
mapping. If we are contemplating doing work, shouldn't we consider going 
straight for object databases? Take out the transcription layer. Let's get 
more productive. Only use OR-mapping for old systems that we must 
interface with but new work should consider the advantages of being pure 
objects, all the time.

Everyone has success stories. You can write a great app in PHP if you 
really want to (though none of us would choose to). What really counts is 
how people achieve their success and if we'd enjoy doing it in a similar 
fashion. For us that means we want creative options and better 
productivity. That's why we've historically chosen WO.

Here's one success story that really peaks my interest - it drives home my 
love/hate relationship with any ORM even one as nice as EOF:
http://gemstonesoup.wordpress.com/2009/03/09/why-glass/

It talks about GLASS as if we all know what that is. It's Gemstone's 
turnkey solution to Internet app development... Like WO used to have. You 
can get a brief definition here:
http://seaside.gemstone.com/

Gemstone has been used a long time with lots of data. Here's one success 
story with a shipping company and over 1.5 billion data objects:
http://seaside.gemstone.com/docs/OOCL_SuccessStory.pdf

Here's a more general listing of success stories:
http://gemstonesoup.wordpress.com/category/success-stories/

-- Aaron


Message: 5
Date: Wed, 11 Jul 2012 17:22:53 -0700
From: Chuck Hill ch...@global-village.net
To: Michael Kondratov mich...@aspireauctions.com
Cc: WebObjects-Dev List webobjects-dev@lists.apple.com
Subject: Re: Migrating from EOF to Cayenne
Message-ID: 0e2dca05-61df-4de8-a468-79e0d2846...@global-village.net
Content-Type: text/plain; charset=us-ascii

Apparently

http://cayenne.apache.org/success-stories.html


On 2012-07-11, at 5:21 PM, Michael Kondratov wrote:

 Anyone used it? Does it actually work?
 ___
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 from EOF to Cayenne

2012-07-12 Thread Alexander Spohr
We want to go the WO-way and are asking us how we can make that way bring us 
into the future.

You propose to switch to a different lane and have us all run into another 
direction. That is a totally different discussion. We don’t want to change our 
way of programming, we just want the core to be open, extendable and fixable.

atze



Am 12.07.2012 um 17:32 schrieb arosenzw...@clinworx.com:

 Hi WOrriors, 
 
 I still question why we are fighting so hard for Object-relational mapping. 
 If we are contemplating doing work, shouldn't we consider going straight for 
 object databases? Take out the transcription layer. Let's get more 
 productive. Only use OR-mapping for old systems that we must interface with 
 but new work should consider the advantages of being pure objects, all the 
 time. 
 
 Everyone has success stories. You can write a great app in PHP if you really 
 want to (though none of us would choose to). What really counts is how people 
 achieve their success and if we'd enjoy doing it in a similar fashion. For us 
 that means we want creative options and better productivity. That's why we've 
 historically chosen WO. 
 
 Here's one success story that really peaks my interest - it drives home my 
 love/hate relationship with any ORM even one as nice as EOF: 
 http://gemstonesoup.wordpress.com/2009/03/09/why-glass/ 
 
 It talks about GLASS as if we all know what that is. It's Gemstone's turnkey 
 solution to Internet app development... Like WO used to have. You can get a 
 brief definition here: 
 http://seaside.gemstone.com/ 
 
 Gemstone has been used a long time with lots of data. Here's one success 
 story with a shipping company and over 1.5 billion data objects: 
 http://seaside.gemstone.com/docs/OOCL_SuccessStory.pdf 
 
 Here's a more general listing of success stories: 
 http://gemstonesoup.wordpress.com/category/success-stories/ 
 
 -- Aaron

 ___
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: ERRest Testing

2012-07-12 Thread Kieran Kelleher
Came across this the other day when I was grabbing latest soapUI.app to explore 
a SOAP webservice. It seems soapUI *might* be a solution for REST service 
testing . I have not tried it, so YMMV.

On Jul 3, 2012, at 11:14 PM, Paul Hoadley wrote:

 Hi Henrique,
 
 On 03/07/2012, at 1:20 PM, Henrique Prange wrote:
 
 Simple question: how are you testing ERRest APIs?
 
 In a project I was working on a few months ago, I was doing what amounts to 
 rudimentary functional testing using Apache HttpClient.  Using JUnit as the 
 test runner, I was simply constructing the appropriate requests and checking 
 the responses.  It was somewhat tedious, but it worked to the extent that you 
 could manually run a test quite against the app running in Eclipse.  Time did 
 not permit anything more sophisticated, such as working out the best way to 
 run the tests in a continuous integration setting, or factoring the code 
 appropriately to reduce the tedium of making new tests.  If I get time to 
 revisit it, those two things would certainly be my goal, as manually running 
 the tests is better than nothing, but obviously nowhere near as good as 
 having it in the CI process.
 
 
 -- 
 Paul Hoadley
 http://logicsquad.net/
 
 
 
 ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 https://lists.apple.com/mailman/options/webobjects-dev/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


Re: ERRest Testing

2012-07-12 Thread Kieran Kelleher
I guess the URL would be useful :-)

http://soapui.org/REST-Testing/rest-functional-testing.html

On Jul 12, 2012, at 12:28 PM, Kieran Kelleher wrote:

 Came across this the other day when I was grabbing latest soapUI.app to 
 explore a SOAP webservice. It seems soapUI *might* be a solution for REST 
 service testing . I have not tried it, so YMMV.
 
 On Jul 3, 2012, at 11:14 PM, Paul Hoadley wrote:
 
 Hi Henrique,
 
 On 03/07/2012, at 1:20 PM, Henrique Prange wrote:
 
 Simple question: how are you testing ERRest APIs?
 
 In a project I was working on a few months ago, I was doing what amounts to 
 rudimentary functional testing using Apache HttpClient.  Using JUnit as the 
 test runner, I was simply constructing the appropriate requests and checking 
 the responses.  It was somewhat tedious, but it worked to the extent that 
 you could manually run a test quite against the app running in Eclipse.  
 Time did not permit anything more sophisticated, such as working out the 
 best way to run the tests in a continuous integration setting, or factoring 
 the code appropriately to reduce the tedium of making new tests.  If I get 
 time to revisit it, those two things would certainly be my goal, as manually 
 running the tests is better than nothing, but obviously nowhere near as good 
 as having it in the CI process.
 
 
 -- 
 Paul Hoadley
 http://logicsquad.net/
 
 
 
 ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 https://lists.apple.com/mailman/options/webobjects-dev/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


Re: Migrating from EOF to Cayenne

2012-07-12 Thread John Huss
On Thu, Jul 12, 2012 at 9:45 AM, Hugi Thordarson h...@karlmenn.is wrote:

  Cayenne is still missing a lot of functionality when compared to
 EOF/Wonder and generally feels less mature (understandably, since EOF is
 ancient). This is perhaps not such a huge problem, since functionality can
 always be added—but there is indeed a *lot* of work to be done to reach
 feature parity with EOF.
 
  That seems like an overstatement to me.  What things is it missing that
 you need?

 Well, it isn't exactly big things that are missing, but rather an
 aggregation of a lot of small things. Things I can live without, but would
 rather not. EOF, Foundation, Wonder and the tools have 20 years of
 refinement and integration in their design so moving from EOF to Cayenne
 feels a little like moving from a Mercedes to a Wolkswagen Bug.

 Lack of IDE support,


There is an Eclipse plugin, but it is not totally baked yet.


 no prototypes,


Cayenne already does the switching databases part of prototypes. The
faster model creation part would be a nice add perhaps, but you get part
of it (the java type assigment) already in Cayenne by auto-generating the
ObjEntity from the DbEntity.

no KVC


This is already in ERCayenne


 , getAccessor (ugh)


The templates in ERCayenne don't use the get prefix


 , limited support for inheritance,


True


 no ERXKey means no type safe queries and strings everywhere,


ERXKey is in ERCayenneExample and I'll be committing a version Cayenne
itself in the next few days.


 somewhat buggy modeler


I fixed a couple of the more annoying problems last week.  Other than that
I'm not aware of any behaviors that are truly bugs. But usability could
certainly be improved.


 with no support for cross-model relationships


This is not true anymore if it was before.  3.1 includes the idea of a
default node (basically a connection dictionary), so you can load models
that are generic, framework level and use them along with your own model.


 , no crossing relationships in raw row fetches (which makes it harder to
 create reports from huge object graphs)


True, this is the biggest gap I've come across - I have an app that does
exactly that.  However, there are a few built-in alternatives, namely
SQLTemplate and EJBQLQuery. But if you have a lot of this in your app,
you'll probably want to wait to consider migrating.


 , no Project Wonder EO stuff etc. etc.


I have some Cayenne implementations of the specific utilities that I used
from Wonder, but yes, this represents work to be done.


 Now, I know this comparison is unfair to Cayenne which is in fact great,
 and Andrus and the others have done an amazing job. EOF is just hard to
 beat, because EOF is very, very good. And as I said, Cayenne will no doubt
 get there, I just believe it will take a lot of work.


Just a little work I think.  The things that have to be done are almost all
approachable by average developers.


  The only reasonable way to do a re-implementation of EOF would be to
 start with Cayenne.  It doesnt have the same API as EOF, but that could be
 done; that hard work has already been done, only the API would need change.
  But I think there are advantages in trying to merge with the Cayenne
 community rather than taking it and forking it.

 I agree. If they're compatible it's probably the way to go.

 - hugi
 ___
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... Eclipse, new install with wonder integration... ERExtensions have not been initialized?

2012-07-12 Thread James Cicenia
Oh how I wish I could press once GoLipse button and all wonder/wo
frameworks would just work.

Anyway... I did all that, git'd the Wonder Integration and imported all
frameworks into Eclipse.
Things were looking good, no compile errors, etc. but, when I try to launch
I get the following:

I have moved ERExtension up and down, removed it, added, it, etc. nothing
changes.

What am I missing?

Thanks
James

[2012-7-12 12:38:46 EDT] main 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: [ERDirectToRest, ERPDFGeneration, ERCoolComponents,
Ajax, ERModernLook, ERRest, ERModernDirectToWeb, ERDirectToWeb,
ERModernDefaultSkin, WOLips, ExcelGenerator, QualifierAdditions,
ERExcelLook, MySQLPlugIn, ERAttachment, JavaERJDBCAdaptor, ERJavaMail,
JavaWOExtensions, ERPrototypes, ERExtensions, ERTaggable]

Classpath:

Re: Migrating from EOF to Cayenne

2012-07-12 Thread Chuck Hill

On 2012-07-12, at 4:01 AM, Hugi Thordarson wrote:

 I think Hugi also use it.
 
 Is that a point for or against it?  :-P
 
 PastedGraphic-1.png

Ah ha!  So you ARE still reading the list!  :-)  Good to see you around!


 But yes, I've used Cayenne on a couple of projects. As you know it feels a 
 *lot* like EOF and was by far the nicest ORM I could legally use at my 
 previous pure java workplace. (protip: never go anywhere near JPA, it *will* 
 rape your dog and kill your grandmother.) 

LOL


 Apart from the technical similarities, Cayenne also has another important 
 thing in common with WO: A good community and an active mailing list full of 
 nice and helpful people, so you never get stuck along the way.

That is good to hear and not surprising considering that some of them are ex-WO 
people.


 Cayenne is still missing a lot of functionality when compared to EOF/Wonder 
 and generally feels less mature (understandably, since EOF is ancient). This 
 is perhaps not such a huge problem, since functionality can always be 
 added—but there is indeed a *lot* of work to be done to reach feature parity 
 with EOF.
 
 It's clear that at some point most of us will have to stop using EOF in it's 
 current form. In a perfect world (that's the world where I have endless time 
 and money) I'd do a clean room implementation of EOF and live happily ever 
 after. But this is indeed not a perfect world, so helping making Cayenne 
 better and more integrated with WO seems like a more realistic goal (besides, 
 it allows more resources to be spent on a re-implementation of WO; something 
 I'd love to participate in).

Chuck


-- 
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: Migrating from EOF to Cayenne

2012-07-12 Thread Karl
Its Chunk, not Chuck now.  Please start signing appropriately.

Karl

On 2012-07-12, at 9:28 PM, Chuck Hill ch...@global-village.net wrote:

 
 On 2012-07-12, at 4:01 AM, Hugi Thordarson wrote:
 
 I think Hugi also use it.
 
 Is that a point for or against it?  :-P
 
 PastedGraphic-1.png
 
 Ah ha!  So you ARE still reading the list!  :-)  Good to see you around!
 
 
 But yes, I've used Cayenne on a couple of projects. As you know it feels a 
 *lot* like EOF and was by far the nicest ORM I could legally use at my 
 previous pure java workplace. (protip: never go anywhere near JPA, it *will* 
 rape your dog and kill your grandmother.) 
 
 LOL
 
 
 Apart from the technical similarities, Cayenne also has another important 
 thing in common with WO: A good community and an active mailing list full of 
 nice and helpful people, so you never get stuck along the way.
 
 That is good to hear and not surprising considering that some of them are 
 ex-WO people.
 
 
 Cayenne is still missing a lot of functionality when compared to EOF/Wonder 
 and generally feels less mature (understandably, since EOF is ancient). This 
 is perhaps not such a huge problem, since functionality can always be 
 added—but there is indeed a *lot* of work to be done to reach feature parity 
 with EOF.
 
 It's clear that at some point most of us will have to stop using EOF in it's 
 current form. In a perfect world (that's the world where I have endless time 
 and money) I'd do a clean room implementation of EOF and live happily ever 
 after. But this is indeed not a perfect world, so helping making Cayenne 
 better and more integrated with WO seems like a more realistic goal 
 (besides, it allows more resources to be spent on a re-implementation of WO; 
 something I'd love to participate in).
 
 Chuck
 
 
 -- 
 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/kgretton%40mac.com
 
 This email sent to kgret...@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: Problem EOEditingContext

2012-07-12 Thread Chuck Hill
¡Hola Hugo!


On 2012-07-12, at 11:46 AM, Hugo Cambero wrote:

 Hi Everybody
 
 My name is Hugo, I'm from Mexico. I have been developing using WebObjects and 
 Wonder Frameworks, I'm newbie in this topic.

Welcome!


 Well, I have a problem, I hope you can help me. I'm developing a test 
 application, I want to learn about EOF.
 
 I have 2 entities, that I created using EOModel. The first entity is: User, 
 the second is Role. The relationship between the entities is: One user
 can have many Roles.
 
 Well, I tried to insert a row using the next code:
 
 EOEditingContext ec = ERXEC.newEditingContext();
 Role userRole = Role.fetchRole( ec, Role.NAME.eq(user) 
 ); //Get the correct Role to the new user
 
 User newUser = new User();

It is very, very important to immediately do this after creating an EO:
 ec.insertObject( newUser );//Insert 
 object to the EOEditingContext

Fix that, and your code will work.

You can find some more information here:
http://wiki.wocommunity.org/display/WO/EOF-Using+EOF-The+EOF+Commandments


Chuck

 newUser.setName( name.toLowerCase() );
 newUser.setPaternalName( paternalName.toLowerCase()  );
 newUser.setMaternalName( maternalName.toLowerCase() );
 newUser.setBirthday( new NSTimestamp() );
 newUser.setUsername( username );
 newUser.setPassword( password );
 
 newUser.setRole( userRole );   //Set the 
 role to the user 
 
 ec.saveChanges();//Commit 
 to the DataBase
 
 But, the server has the next error: 
 
 java.lang.RuntimeException: You crossed editing context boundaries attempting 
 to set the 'role' relationship of your.app.model.User pk:null (which is 
 not in an editing context) to your.app.model.Role pk:2 (in EC 
 er.extensions.eof.ERXEC@762a5241).
 
 I understand that the primary key of the user is null, because it's a new 
 user and I want to insert it to the data base.
 
 What is the correct way to insert row, when it have a relationship between 
 the entities?
 
 Thanks for you time
 
 
 
 
 
 ___
 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: Migrating from EOF to Cayenne

2012-07-12 Thread Ramsey Gurley

On Jul 12, 2012, at 9:11 AM, Alexander Spohr wrote:

 We want to go the WO-way and are asking us how we can make that way bring us 
 into the future.
 
 You propose to switch to a different lane and have us all run into another 
 direction.


In the context of this discussion, I think Aaron's position is entirely valid. 
Why dump years into developing a replacement ORM for WO when new frameworks 
have shown that ORMs are entirely unnecessary?  His specific suggestion of 
Seaside is up to the individual, but the core question is sound.


 That is a totally different discussion. We don’t want to change our way of 
 programming, we just want the core to be open, extendable and fixable.


To me, WO is those things already. It's free forever. I can decompile and fix 
whatever I need. This has been standard practice in Wonder for years.

You want to know the biggest unfixable problem with WO for me? WO apps can't be 
deployed on any mobile platform.  That really sucks.

If I need an enterprise class server that can handle serious load on server 
hardware though, I'm probably going to stick with WO for a while longer.  I 
haven't seen anything in that space which is more compelling.

It is what it is.

Ramsey
 ___
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: Problem EOEditingContext

2012-07-12 Thread Johann Werner
Hi Hugo,

welcome to WO!

Am 12.07.2012 um 20:46 schrieb Hugo Cambero:

 Hi Everybody
 
 My name is Hugo, I'm from Mexico. I have been developing using WebObjects and 
 Wonder Frameworks, I'm newbie in this topic.
 
 Well, I have a problem, I hope you can help me. I'm developing a test 
 application, I want to learn about EOF.
 
 I have 2 entities, that I created using EOModel. The first entity is: User, 
 the second is Role. The relationship between the entities is: One user
 can have many Roles.
 
 Well, I tried to insert a row using the next code:
 
 EOEditingContext ec = ERXEC.newEditingContext();
 Role userRole = Role.fetchRole( ec, Role.NAME.eq(user) 
 ); //Get the correct Role to the new user
 
 User newUser = new User();

don't create EOs that way, use

ERXEOControlUtilities.createAndInsertObject(ec, User.class);

 newUser.setName( name.toLowerCase() );
 newUser.setPaternalName( paternalName.toLowerCase()  );
 newUser.setMaternalName( maternalName.toLowerCase() );
 newUser.setBirthday( new NSTimestamp() );
 newUser.setUsername( username );
 newUser.setPassword( password );
 
 newUser.setRole( userRole );   //Set the 
 role to the user 

you said that User -- Role but setRole() would point to a to-one 
relationship. A to-many relationship should give you

user.addToRoles(role);
user.removeFromRoles(role);

so there seems to be a problem with your model or with your java classes.

 
 ec.insertObject( newUser );//Insert 
 object to the EOEditingContext
 ec.saveChanges();//Commit 
 to the DataBase
 
 But, the server has the next error: 
 
 java.lang.RuntimeException: You crossed editing context boundaries attempting 
 to set the 'role' relationship of your.app.model.User pk:null (which is 
 not in an editing context) to your.app.model.Role pk:2 (in EC 
 er.extensions.eof.ERXEC@762a5241).
 
 I understand that the primary key of the user is null, because it's a new 
 user and I want to insert it to the data base.
 
 What is the correct way to insert row, when it have a relationship between 
 the entities?
 
 Thanks for you time

 ___
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: Problem EOEditingContext

2012-07-12 Thread Hugo Cambero
Thanks for your recommendation Johann Wernet

Yes, you are right, I have a problem with my model, I'll change it, and
I'll seek about ERXEOControlUtilities

Regards

On Thu, Jul 12, 2012 at 1:56 PM, Johann Werner j...@oyosys.de wrote:

 Hi Hugo,

 welcome to WO!

 Am 12.07.2012 um 20:46 schrieb Hugo Cambero:

 Hi Everybody

 My name is Hugo, I'm from Mexico. I have been developing using WebObjects
 and Wonder Frameworks, I'm newbie in this topic.

 Well, I have a problem, I hope you can help me. I'm developing a test
 application, I want to learn about EOF.

 I have 2 entities, that I created using EOModel. The first entity is:
 User, the second is Role. The relationship between the entities is: One user
 can have many Roles.

 Well, I tried to insert a row using the next code:

 EOEditingContext ec = ERXEC.newEditingContext();
 Role userRole = Role.fetchRole( ec,
 Role.NAME.eq(user) ); //Get the correct Role to the new user

 User newUser = new User();


 don't create EOs that way, use

 ERXEOControlUtilities.createAndInsertObject(ec, User.class);

 newUser.setName( name.toLowerCase() );
 newUser.setPaternalName( paternalName.toLowerCase()  );
 newUser.setMaternalName( maternalName.toLowerCase() );
 newUser.setBirthday( new NSTimestamp() );
 newUser.setUsername( username );
 newUser.setPassword( password );

 newUser.setRole( userRole );   //Set
 the role to the user


 you said that User -- Role but setRole() would point to a to-one
 relationship. A to-many relationship should give you

 user.addToRoles(role);
 user.removeFromRoles(role);

 so there seems to be a problem with your model or with your java classes.


 ec.insertObject( newUser );
 //Insert object to the EOEditingContext
 ec.saveChanges();
 //Commit to the DataBase

 But, the server has the next error:

 java.lang.RuntimeException: You crossed editing context boundaries
 attempting to set the 'role' relationship of your.app.model.User
 pk:null (which is not in an editing context) to your.app.model.Role
 pk:2 (in EC er.extensions.eof.ERXEC@762a5241).

 I understand that the primary key of the user is null, because it's a new
 user and I want to insert it to the data base.

 What is the correct way to insert row, when it have a relationship between
 the entities?

 Thanks for you time



 ___
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 from EOF to Cayenne

2012-07-12 Thread Chuck Hill

On 2012-07-12, at 11:51 AM, Ramsey Gurley wrote:
 On Jul 12, 2012, at 9:11 AM, Alexander Spohr wrote:
 
 We want to go the WO-way and are asking us how we can make that way bring us 
 into the future.
 
 You propose to switch to a different lane and have us all run into another 
 direction.
 
 
 In the context of this discussion, I think Aaron's position is entirely 
 valid. Why dump years into developing a replacement ORM for WO when new 
 frameworks have shown that ORMs are entirely unnecessary?  His specific 
 suggestion of Seaside is up to the individual, but the core question is sound.

The problem that I see with this is that using WO is problematic only (mostly?) 
for people trying to sell products or services into an organization that will 
use the status of WO to reject them.  I would expect these same places to be 
RDBMS focused and also reject object database solutions for similar reasons.  
Said another way, if you can use object databases, you can probably also use WO 
without concern.


 That is a totally different discussion. We don’t want to change our way of 
 programming, we just want the core to be open, extendable and fixable.
 
 
 To me, WO is those things already. It's free forever. I can decompile and fix 
 whatever I need. This has been standard practice in Wonder for years.
 
 You want to know the biggest unfixable problem with WO for me? WO apps can't 
 be deployed on any mobile platform.  That really sucks.

For that, you need to change the paradigm from interface vending servers to 
servers that vend data and processing.  Use a mobile client technology like 
Sencha or Montage.  Or write D2iOS.  :-)


 If I need an enterprise class server that can handle serious load on server 
 hardware though, I'm probably going to stick with WO for a while longer.  I 
 haven't seen anything in that space which is more compelling.

Nor have I.


Chuck

-- 
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: Migrating from EOF to Cayenne

2012-07-12 Thread Andrew Lindesay

Hi John  Hugi;


True, this is the biggest gap I've come across - I have an app that does
exactly that.  However, there are a few built-in alternatives, namely
SQLTemplate and EJBQLQuery. But if you have a lot of this in your app,
you'll probably want to wait to consider migrating.


In my use of Cayenne I have created a set of objects like f.s. and 
friends that render to JPQL and in doing this I can't immediately think 
of any 'blockers'.


cheers.

--
Andrew Lindesay


___
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


Adaptor problem with SSL on Ubuntu

2012-07-12 Thread Klaus Berkling
Hi All.

Some of you might remember me writing about this issue during WOWODC.  I'm 
restarting the thread because I still can't find a solution.  I get the 
following error when making https requests to one of our apps (no problem with 
static html pages):

Did not receive any response from application. It is possible that the 
application does not exist, or that the requested url is incorrect.

This does not happen on Mac OS X, same WO app:
Ubuntu: https://cn2.records.dyned.com/cgi-bin/WebObjects/LMSService
Mac: https://am1.records.dyned.com/cgi-bin/WebObjects/LMSService

I tried three different adaptors:
- Old DynEd Adaptor with modification from us (virtual hosts additions)
- Old Wonder Adaptor as built for CentOS from 
http://wocommunity.org/documents/tools/mod_WebObjects/Apache2.2
- New Wonder Adaptor built from source (I downloaded the source from the Wonder 
repository and built it as-is on our Ubuntu build server)

With all adaptors our app shows this error:

Jul 13 01:40:13 LMSService[2042] WARN  NSLog  - WOWorkerThread id=8 
socket=Socket[addr=/10.0.0.10,port=35046,localport=2042] Exception while 
sending response: java.net.SocketException: Broken pipe

Using the Old DynEd Adaptor and New Wonder Adaptor apache writes this error to 
the error log:

[Fri Jul 13 00:51:03 2012] [error] sendBuffers(): send error: Bad address
[Fri Jul 13 00:51:03 2012] [error] error sending request
[Fri Jul 13 00:51:03 2012] [error] Failed to send request
[Fri Jul 13 00:51:03 2012] [error] Request handling error: Did not receive any 
response from application. It is possible that the application does not exist, 
or that the requested url is incorrect.

Using the Old Wonder Adaptor apache does not write any errors to the error log

It looks like the apache child process does not crash.  It also looks like the 
adaptor is catching an error that severs the connection to the app instance.

The errors above show up in the Adaptors source:

sendBuffers(): send error:  - Adaptor/nbssocket.c, Line 501
error sending request - Adaptor/request.c, Line 280
Failed to send request - Adaptor/transaction.c, Line 591
Request handling error:  - Adaptor/transaction.c, Line 727

My experience in the adaptor source code is very limited. Does anyone have any 
ideas or pointers?
Next up, debugging an apache module...

Thanks in advanced.


kib

The trouble with normal is it always gets worse.
Bruce Cockburn

Klaus Berkling
Web Application Dev.  Systems Analyst
DynEd International, Inc.
www.dyned.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: Migrating from EOF to Cayenne

2012-07-12 Thread Chuck Hill
Grumble.   I hate it when Karl is right.

Chunk and needing a diet


On 2012-07-12, at 11:36 AM, Karl wrote:

 Its Chunk, not Chuck now.  Please start signing appropriately.
 
 Karl
 
 On 2012-07-12, at 9:28 PM, Chuck Hill ch...@global-village.net wrote:
 
 
 On 2012-07-12, at 4:01 AM, Hugi Thordarson wrote:
 
 I think Hugi also use it.
 
 Is that a point for or against it?  :-P
 
 PastedGraphic-1.png
 
 Ah ha!  So you ARE still reading the list!  :-)  Good to see you around!
 
 
 But yes, I've used Cayenne on a couple of projects. As you know it feels a 
 *lot* like EOF and was by far the nicest ORM I could legally use at my 
 previous pure java workplace. (protip: never go anywhere near JPA, it 
 *will* rape your dog and kill your grandmother.) 
 
 LOL
 
 
 Apart from the technical similarities, Cayenne also has another important 
 thing in common with WO: A good community and an active mailing list full 
 of nice and helpful people, so you never get stuck along the way.
 
 That is good to hear and not surprising considering that some of them are 
 ex-WO people.
 
 
 Cayenne is still missing a lot of functionality when compared to EOF/Wonder 
 and generally feels less mature (understandably, since EOF is ancient). 
 This is perhaps not such a huge problem, since functionality can always be 
 added—but there is indeed a *lot* of work to be done to reach feature 
 parity with EOF.
 
 It's clear that at some point most of us will have to stop using EOF in 
 it's current form. In a perfect world (that's the world where I have 
 endless time and money) I'd do a clean room implementation of EOF and live 
 happily ever after. But this is indeed not a perfect world, so helping 
 making Cayenne better and more integrated with WO seems like a more 
 realistic goal (besides, it allows more resources to be spent on a 
 re-implementation of WO; something I'd love to participate in).
 
 Chuck
 
 
 -- 
 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/kgretton%40mac.com
 
 This email sent to kgret...@mac.com
 

-- 
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: Adaptor problem with SSL on Ubuntu

2012-07-12 Thread Chuck Hill
Hi Klaus,

I can't add much.  The problem is in the adaptor.  I'd focus on the first error 
sendBuffers(): send error: Bad address and consider the rest to be symptoms.  
Other than adding some logging messages to the adaptor, I have no ideas or 
pointers.

 Next up, debugging an apache module...

No-one's idea of a good time.

Chuck


On 2012-07-12, at 12:22 PM, Klaus Berkling wrote:

 Hi All.
 
 Some of you might remember me writing about this issue during WOWODC.  I'm 
 restarting the thread because I still can't find a solution.  I get the 
 following error when making https requests to one of our apps (no problem 
 with static html pages):
 
 Did not receive any response from application. It is possible that the 
 application does not exist, or that the requested url is incorrect.
 
 This does not happen on Mac OS X, same WO app:
 Ubuntu: https://cn2.records.dyned.com/cgi-bin/WebObjects/LMSService
 Mac: https://am1.records.dyned.com/cgi-bin/WebObjects/LMSService
 
 I tried three different adaptors:
 - Old DynEd Adaptor with modification from us (virtual hosts additions)
 - Old Wonder Adaptor as built for CentOS from 
 http://wocommunity.org/documents/tools/mod_WebObjects/Apache2.2
 - New Wonder Adaptor built from source (I downloaded the source from the 
 Wonder repository and built it as-is on our Ubuntu build server)
 
 With all adaptors our app shows this error:
 
 Jul 13 01:40:13 LMSService[2042] WARN  NSLog  - WOWorkerThread id=8 
 socket=Socket[addr=/10.0.0.10,port=35046,localport=2042] Exception while 
 sending response: java.net.SocketException: Broken pipe
 
 Using the Old DynEd Adaptor and New Wonder Adaptor apache writes this error 
 to the error log:
 
 [Fri Jul 13 00:51:03 2012] [error] sendBuffers(): send error: Bad address
 [Fri Jul 13 00:51:03 2012] [error] error sending request
 [Fri Jul 13 00:51:03 2012] [error] Failed to send request
 [Fri Jul 13 00:51:03 2012] [error] Request handling error: Did not receive 
 any response from application. It is possible that the application does not 
 exist, or that the requested url is incorrect.
 
 Using the Old Wonder Adaptor apache does not write any errors to the error log
 
 It looks like the apache child process does not crash.  It also looks like 
 the adaptor is catching an error that severs the connection to the app 
 instance.
 
 The errors above show up in the Adaptors source:
 
 sendBuffers(): send error:  - Adaptor/nbssocket.c, Line 501
 error sending request - Adaptor/request.c, Line 280
 Failed to send request - Adaptor/transaction.c, Line 591
 Request handling error:  - Adaptor/transaction.c, Line 727
 
 My experience in the adaptor source code is very limited. Does anyone have 
 any ideas or pointers?
 Next up, debugging an apache module...
 
 Thanks in advanced.
 
 
 kib
 
 The trouble with normal is it always gets worse.
 Bruce Cockburn
 
 Klaus Berkling
 Web Application Dev.  Systems Analyst
 DynEd International, Inc.
 www.dyned.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/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: Adaptor problem with SSL on Ubuntu

2012-07-12 Thread Klaus Berkling

On Jul 12, 2012, at 1:09 PM, Chuck Hill wrote:

 I can't add much.  The problem is in the adaptor.  I'd focus on the first 
 error sendBuffers(): send error: Bad address and consider the rest to be 
 symptoms.  Other than adding some logging messages to the adaptor, I have no 
 ideas or pointers.
 
 Next up, debugging an apache module...
 
 No-one's idea of a good time.

I'm thinking of rather going sheep herding...

Thanks.



kib

The era of procrastination, of half-measures, of soothing and baffling 
expedients, of delays, is coming to its close. In its place we are entering a 
period of consequences.
Winston Churchill

Klaus Berkling
Web Application Dev.  Systems Analyst
DynEd International, Inc.
www.dyned.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: Adaptor problem with SSL on Ubuntu

2012-07-12 Thread Chuck Hill

On 2012-07-12, at 1:33 PM, Klaus Berkling wrote:

 
 On Jul 12, 2012, at 1:09 PM, Chuck Hill wrote:
 
 I can't add much.  The problem is in the adaptor.  I'd focus on the first 
 error sendBuffers(): send error: Bad address and consider the rest to be 
 symptoms.  Other than adding some logging messages to the adaptor, I have no 
 ideas or pointers.
 
 Next up, debugging an apache module...
 
 No-one's idea of a good time.
 
 I'm thinking of rather going sheep herding...

Or even something more relaxing
http://www.reuters.com/article/2009/05/20/us-portugal-snails-idUSTRE54J2N320090520


-- 
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: Problem EOEditingContext

2012-07-12 Thread Louis Demers

On 2012-07-12, at 2:46 PM, Hugo Cambero wrote:

 Hi Everybody
 
 My name is Hugo, I'm from Mexico. I have been developing using WebObjects and 
 Wonder Frameworks, I'm newbie in this topic.
 
 Well, I have a problem, I hope you can help me. I'm developing a test 
 application, I want to learn about EOF.
 
 I have 2 entities, that I created using EOModel. The first entity is: User, 
 the second is Role. The relationship between the entities is: One user
 can have many Roles.
 
 Well, I tried to insert a row using the next code:
 
 EOEditingContext ec = ERXEC.newEditingContext();
 Role userRole = Role.fetchRole( ec, Role.NAME.eq(user) 
 ); //Get the correct Role to the new user
 
 User newUser = new User();
 newUser.setName( name.toLowerCase() );
 newUser.setPaternalName( paternalName.toLowerCase()  );
 newUser.setMaternalName( maternalName.toLowerCase() );
 newUser.setBirthday( new NSTimestamp() );
 newUser.setUsername( username );
 newUser.setPassword( password );
 
 newUser.setRole( userRole );   //Set the 
 role to the user 
 
 ec.insertObject( newUser );//Insert 
 object to the EOEditingContext

one of the WO commandments:

always insert your EO immediately after creating it. i.e. after new User() and 
before setting any attributes.

alternatively you can use 

User newUser = (User)EOUtilities.createAndInsertInstance(ec, User.ENTITY_NAME) ;



 ec.saveChanges();//Commit 
 to the DataBase
 
 But, the server has the next error: 
 
 java.lang.RuntimeException: You crossed editing context boundaries attempting 
 to set the 'role' relationship of your.app.model.User pk:null (which is 
 not in an editing context) to your.app.model.Role pk:2 (in EC 
 er.extensions.eof.ERXEC@762a5241).
 
 I understand that the primary key of the user is null, because it's a new 
 user and I want to insert it to the data base.
 
 What is the correct way to insert row, when it have a relationship between 
 the entities?
 
 Thanks for you time
 
 
 
 
 
 ___
 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/louisdemers%40mac.com
 
 This email sent to louisdem...@mac.com

Louis Demers eng.
www.obzerv.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: Problem EOEditingContext

2012-07-12 Thread Maik Musall

Am 12.07.2012 um 23:58 schrieb Louis Demers:
 User newUser = (User)EOUtilities.createAndInsertInstance(ec, 
 User.ENTITY_NAME) ;

Much too wordy for my taste, and needs a cast on top of it. Just add a second 
constructor in your template which does ec.insertObject(this), so that you can 
simply use

User newUser = new User( ec );

Do not delete the parameter-less constructor though, because EOF needs that 
internally when restoring objects from db. But refrain from using that anywhere 
in your app.

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/archive%40mail-archive.com

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


Re: Problem EOEditingContext

2012-07-12 Thread David Holt
Hola Hugo,

Bienvenido!

If you are using the EOGenerate templates for your EO classes you'll also find 
this code is generated for you. For example in my _Person.java class:

  public static com.wowodc.model.Person createPerson(EOEditingContext 
editingContext) {
com.wowodc.model.Person eo = (com.wowodc.model.Person) 
EOUtilities.createAndInsertInstance(editingContext, _Person.ENTITY_NAME);
return eo;
  }

Your method to create a user then becomes User.createUser(ec);

Saludos,
David

On 2012-07-12, at 2:58 PM, Louis Demers wrote:

 
 On 2012-07-12, at 2:46 PM, Hugo Cambero wrote:
 
 Hi Everybody
 
 My name is Hugo, I'm from Mexico. I have been developing using WebObjects 
 and Wonder Frameworks, I'm newbie in this topic.
 
 Well, I have a problem, I hope you can help me. I'm developing a test 
 application, I want to learn about EOF.
 
 I have 2 entities, that I created using EOModel. The first entity is: User, 
 the second is Role. The relationship between the entities is: One user
 can have many Roles.
 
 Well, I tried to insert a row using the next code:
 
EOEditingContext ec = ERXEC.newEditingContext();
Role userRole = Role.fetchRole( ec, Role.NAME.eq(user) 
 ); //Get the correct Role to the new user
 
User newUser = new User();
newUser.setName( name.toLowerCase() );
newUser.setPaternalName( paternalName.toLowerCase()  );
newUser.setMaternalName( maternalName.toLowerCase() );
newUser.setBirthday( new NSTimestamp() );
newUser.setUsername( username );
newUser.setPassword( password );
 
newUser.setRole( userRole );   //Set the 
 role to the user 
 
ec.insertObject( newUser );//Insert 
 object to the EOEditingContext
 
 one of the WO commandments:
 
 always insert your EO immediately after creating it. i.e. after new User() 
 and before setting any attributes.
 
 alternatively you can use 
 
 User newUser = (User)EOUtilities.createAndInsertInstance(ec, 
 User.ENTITY_NAME) ;
 
 
 
ec.saveChanges();//Commit 
 to the DataBase
 
 But, the server has the next error: 
 
 java.lang.RuntimeException: You crossed editing context boundaries 
 attempting to set the 'role' relationship of your.app.model.User pk:null 
 (which is not in an editing context) to your.app.model.Role pk:2 (in EC 
 er.extensions.eof.ERXEC@762a5241).
 
 I understand that the primary key of the user is null, because it's a new 
 user and I want to insert it to the data base.
 
 What is the correct way to insert row, when it have a relationship between 
 the entities?
 
 Thanks for you time
 
 
 
 
 
 ___
 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/louisdemers%40mac.com
 
 This email sent to louisdem...@mac.com
 
 Louis Demers eng.
 www.obzerv.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/programmingosx%40mac.com
 
 This email sent to programming...@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: Problem EOEditingContext

2012-07-12 Thread Lon Varscsak
Oh, I like that!

-Lon

On Thu, Jul 12, 2012 at 3:26 PM, Maik Musall m...@selbstdenker.ag wrote:

 Am 12.07.2012 um 23:58 schrieb Louis Demers:
 User newUser = (User)EOUtilities.createAndInsertInstance(ec, 
 User.ENTITY_NAME) ;

 Much too wordy for my taste, and needs a cast on top of it. Just add a second 
 constructor in your template which does ec.insertObject(this), so that you 
 can simply use

 User newUser = new User( ec );

 Do not delete the parameter-less constructor though, because EOF needs that 
 internally when restoring objects from db. But refrain from using that 
 anywhere in your app.

 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/lon.varscsak%40gmail.com

 This email sent to lon.varsc...@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


Re: Problem EOEditingContext

2012-07-12 Thread Hugo Cambero
Thanks for your answers, yes I found a method like this:

public static User createUser(EOEditingContext editingContext, String
maternalName
, String name
, String password
, String paternalName
, String username)

But I prefer to user the method like this:
User newUser = ERXEOControlUtilities.createAndInsertObject(ec, User.class );

On Thu, Jul 12, 2012 at 5:39 PM, Lon Varscsak lon.varsc...@gmail.comwrote:

 Oh, I like that!

 -Lon

 On Thu, Jul 12, 2012 at 3:26 PM, Maik Musall m...@selbstdenker.ag wrote:
 
  Am 12.07.2012 um 23:58 schrieb Louis Demers:
  User newUser = (User)EOUtilities.createAndInsertInstance(ec,
 User.ENTITY_NAME) ;
 
  Much too wordy for my taste, and needs a cast on top of it. Just add a
 second constructor in your template which does ec.insertObject(this), so
 that you can simply use
 
  User newUser = new User( ec );
 
  Do not delete the parameter-less constructor though, because EOF needs
 that internally when restoring objects from db. But refrain from using that
 anywhere in your app.
 
  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/lon.varscsak%40gmail.com
 
  This email sent to lon.varsc...@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/hhch40%40gmail.com

 This email sent to hhc...@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


Re: Problem EOEditingContext

2012-07-12 Thread Ramsey Gurley

On Jul 12, 2012, at 3:26 PM, Maik Musall wrote:

 
 Am 12.07.2012 um 23:58 schrieb Louis Demers:
 User newUser = (User)EOUtilities.createAndInsertInstance(ec, 
 User.ENTITY_NAME) ;
 
 Much too wordy for my taste, and needs a cast on top of it. Just add a second 
 constructor in your template which does ec.insertObject(this), so that you 
 can simply use
 
   User newUser = new User( ec );
 
 Do not delete the parameter-less constructor though, because EOF needs that 
 internally when restoring objects from db. But refrain from using that 
 anywhere in your app.
 
 Maik

I know the rule is not followed strictly in WO/Wonder, but as a general rule in 
java, do not let 'this' escape the constructor.

http://www.javapractices.com/topic/TopicAction.do?Id=252

Ramsey
 ___
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: Problem EOEditingContext

2012-07-12 Thread David Holt

On 2012-07-12, at 3:49 PM, Hugo Cambero wrote:

 Thanks for your answers, yes I found a method like this:
 
 public static User createUser(EOEditingContext editingContext, String 
 maternalName
 , String name
 , String password
 , String paternalName
 , String username)

Any attributes in this constructor tells you that you have marked them as 
required in your model. 

David


 
 But I prefer to user the method like this:
 User newUser = ERXEOControlUtilities.createAndInsertObject(ec, User.class );
 
 On Thu, Jul 12, 2012 at 5:39 PM, Lon Varscsak lon.varsc...@gmail.com wrote:
 Oh, I like that!
 
 -Lon
 
 On Thu, Jul 12, 2012 at 3:26 PM, Maik Musall m...@selbstdenker.ag wrote:
 
  Am 12.07.2012 um 23:58 schrieb Louis Demers:
  User newUser = (User)EOUtilities.createAndInsertInstance(ec, 
  User.ENTITY_NAME) ;
 
  Much too wordy for my taste, and needs a cast on top of it. Just add a 
  second constructor in your template which does ec.insertObject(this), so 
  that you can simply use
 
  User newUser = new User( ec );
 
  Do not delete the parameter-less constructor though, because EOF needs that 
  internally when restoring objects from db. But refrain from using that 
  anywhere in your app.
 
  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/lon.varscsak%40gmail.com
 
  This email sent to lon.varsc...@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/hhch40%40gmail.com
 
 This email sent to hhc...@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/programmingosx%40mac.com
 
 This email sent to programming...@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: ERXFlickrBatchNavigation Robots

2012-07-12 Thread Kevin Hinkson

On 11 Jul 2012, at 06:59, Matteo Centro wrote:

 From the top of my head: maybe putting some rel=nofollow on the links?


Thanks. I'll give that a try.

— K.R.H.

 ___
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