Re: validationFailedWithException question

2011-10-04 Thread Marius Soutier
And you are overriding Application.handleException to return a different 
component based on the number of items in your session.errors()? I'd suspect 
that the order of things might be wrong here...

On 04.10.2011, at 14:42, Pascal Robert wrote:

> 
> Le 2011-10-04 à 08:30, Marius Soutier a écrit :
> 
>> Stab in the dark - the call to super?
> 
> Tried that too, didn't change anything. super will call 
> session.validationFailedWithException, which will call 
> application.validationFailedWithException
> 
> I'm doing something similar to the SecretPal example from Wonder, so I'm 
> really lost in the dark.
> 
>> On 04.10.2011, at 14:23, Pascal Robert wrote:
>> 
>>> I guess working with REST and calendars made my brain to forget how to do 
>>> things with stateful components... I need to trap validation exceptions 
>>> when required attributes are missing and ec.saveChanges() is called, so in 
>>> my superclass for my components, I did:
>>> 
>>>   public void validationFailedWithException(Throwable exception, Object 
>>> value, String keyPath) {
>>> super.validationFailedWithException(exception, value, keyPath);
>>> ((Session)session()).addError(exception.getMessage());
>>>   }
>>> 
>>> And I made a component to display the errors if session.errors() is not 
>>> empty. Problem is: when saveChanges is called, I'm getting the generic 
>>> exceptions page instead of my page with the ErrorsDisplay component. With 
>>> the debugger, I do see that I go into validationFailedWithException, so I'm 
>>> a bit lost of why I'm getting the generic exceptions page.
>>> 
>>> What I'm doing wrong?
>>> 
>>> ___
>>> 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/m.soutier%40starhealthcare.info
>>> 
>>> This email sent to m.sout...@starhealthcare.info
>> 
> 

 ___
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: validationFailedWithException question

2011-10-04 Thread Marius Soutier
Stab in the dark - the call to super?

On 04.10.2011, at 14:23, Pascal Robert wrote:

> I guess working with REST and calendars made my brain to forget how to do 
> things with stateful components... I need to trap validation exceptions when 
> required attributes are missing and ec.saveChanges() is called, so in my 
> superclass for my components, I did:
> 
>   public void validationFailedWithException(Throwable exception, Object 
> value, String keyPath) {
> super.validationFailedWithException(exception, value, keyPath);
> ((Session)session()).addError(exception.getMessage());
>   }
> 
> And I made a component to display the errors if session.errors() is not 
> empty. Problem is: when saveChanges is called, I'm getting the generic 
> exceptions page instead of my page with the ErrorsDisplay component. With the 
> debugger, I do see that I go into validationFailedWithException, so I'm a bit 
> lost of why I'm getting the generic exceptions page.
> 
> What I'm doing wrong?
> 
> ___
> 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/m.soutier%40starhealthcare.info
> 
> This email sent to m.sout...@starhealthcare.info

 ___
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: Finding WO people for startups (cult of the dead)

2011-09-29 Thread Marius Soutier
As a matter of fact, it's based on DOM classes and ids. 

For example, you can fill a paragraph with content like this in your code:

(html/deftemplate index "tutorial/template1.html"
  [ctxt]
  [:p#message] (html/content (:message ctxt)))
deftemplate is a macro that creates a template called "index". It creates a 
function that is applied when the matching route is called (this is defined in 
conjunction with another library, Ring, which is inspired by Ruby's Sinatra). 
It loads the file "tutorial/template1.html", and matches each "p" tag with the 
id "message". Finally, a function is applied that fills the paragraph with the 
content from the ctxt parameter with the key :message (the colon marks a 
symbol, just like Ruby).

I have copied this from a tutorial. If you want to know more, check it out:
https://github.com/swannodette/enlive-tutorial


On 29.09.2011, at 19:00, Chuck Hill wrote:

> 
> On 2011-09-29, at 1:01 AM, Marius Soutier wrote:
> 
>> The Clojure Enlive library allows you to create code-free static HTML and 
>> replace the contents from Clojure dynamically by applying functions to 
>> CSS-like selectors. I think I like that approach best so far.
> 
> That sounds like an interesting approach.  Can you post a small example?  
> Does the code need to changed if signifiant change are made to the layout or 
> can you use things like the HTML ID?
> 
> 
> 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/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/archive%40mail-archive.com

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


Re: Finding WO people for startups (cult of the dead)

2011-09-29 Thread Marius Soutier
The Clojure Enlive library allows you to create code-free static HTML and 
replace the contents from Clojure dynamically by applying functions to CSS-like 
selectors. I think I like that approach best so far.

On 29.09.2011, at 09:28, Simon wrote:

>>> renderContentOn: html
>>> 
>>>  html table: [
>>>   html
>>>tableRow: [
>>> html tableData: [html text: 'Table entry']];
>>>tableRow: [
>>> html tableData: [html text: 'Table entry']]].
>>> 
>>> Look foreign? Perhaps but it's worth getting your feet wet and kicking 
>>> these ideas around. I've seen many things and this is the first set of 
>>> tools and processes that make me feel good. Like it is equivalent and 
>>> perhaps better than WO. It's brain dead easy to install and there are a 
>>> number of tutorials out there.
>> 
>> OK, I see what you are talking about now.  I am not sure if that is a win 
>> for me.  I have this designer that I often work with and he is able to take 
>> an Eclipse project and edit the .HTML files to make design changes.  He does 
>> not touch the WOD or the Java.  This has been working pretty well for us.  
>> Switching to Seaside would mean that we would have to take the initial 
>> designs, convert them into code, and have the developers maintain them 
>> through the inevitable changes.  I'd have to see how much time the rest of 
>> it would save me.
> 
> totally agree. this is not a plus for us either. our UI people play
> with html (we don't do wod's, 100% inline bindings), and our java
> people play with Java.
> 
> the thought that our java team would have the UI team on their backs
> all day saying "er, can you change that ,  and  mess
> you're pumping out for a list please (like i told you last time)"
> fills me with fear!
> 
> even if you keep your UI people to tidy up with css, surely they are
> going to be nagging java engineers to get the correct id's and classes
> pegged to the html the java code is pumping out ? it seems this is
> only a benefit if your java people actually look after the whole UI
> piece as well - and i've yet to find a java engineer that has style.
> no offence intended :-)
> 
> Simon
> ___
> 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/m.soutier%40starhealthcare.info
> 
> This email sent to m.sout...@starhealthcare.info


 ___
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: Finding WO people for startups

2011-09-26 Thread Marius Soutier
But there are also good programmers who don't want to use WebObjects. They are 
interested, but they don't want to do it all-day long. They prefer stuff like 
Sinatra, Clojure, and so on, which gives them more freedom of choice on how to 
solve their problems.

On 26.09.2011, at 19:19, Paul Yu wrote:

> Great programmers will always write great code.
> 
> Great programmers will write great code faster with great tools.
> 
> Bad programmers will always complain that it is not them, but the tools fault.
> 
> Bad Managers will trump them all...
> 
> 
> On Sep 26, 2011, at 1:14 PM, David LeBer wrote:
> 
>> 
>> On 2011-09-26, at 1:05 PM, Ramsey Gurley wrote:
>> 
>>> 
>>> On Sep 26, 2011, at 3:57 AM, Jim Kinsey wrote:
>>> 
 The last time I did any interviewing for developers, we ended up with some 
 devs who really did not want to engage with WO on any level, no matter how 
 they came across in the interview. Years of complaining about WO, misusing 
 it in ways which hurt the performance of the system (as the last remaining 
 experienced WO developer I often ended up wading in to sort it out) and 
 then blaming it on WO without having made the least attempt to learn it 
 properly...
>>> 
>>> Unfortunately, using WO doesn't make one a great programmer (^_^)  Misused, 
>>> WO is just as awful as any other solution.  If anything, WO provides ample 
>>> opportunity for misuse because there is so much of WO/Wonder to learn. 
>>> 
>>> Some devs just don't want to learn. They prefer to reinvent, poorly.
>> 
>> Agreed.
>> 
>> I don't know how many times I've heard the "this is stupid, just tell me how 
>> to get a jdbc connection" comment. 
>> 
>> --
>> 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/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:
> http://lists.apple.com/mailman/options/webobjects-dev/m.soutier%40starhealthcare.info
> 
> This email sent to m.sout...@starhealthcare.info


 ___
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: Finding WO people for startups

2011-09-26 Thread Marius Soutier
On 26.09.2011, at 12:57, Jim Kinsey wrote:

> experienced JEE types who have all the certs under the Sun


Nice one! :)

I agree with you, people who know Java well and have at least basic Cocoa / 
CocoaTouch exp should be able to grasp WO rather quickly. 

I'll check out the Community Talk now, thanks for so much input. A good 
community is also a big plus :)


- Marius

 ___
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: Finding WO people for startups

2011-09-25 Thread Marius Soutier
ve several developers who were new at WO in 2 different companies. The 
>>>> main point is that they knew java. 
>>>> 
>>>> All the problem talked by Pascal and other regarding documentation for 
>>>> example are important for a new developer that can not be trained/coached 
>>>> by another one. But that's not your case. For example, we hired a 10 years 
>>>> java skilled developer who used jdbc at low level (writing SQL code by 
>>>> hand) in their previous companies. Believe me that he found WO  "magical". 
>>>> He was able to write code in less than a month. And i saw several other 
>>>> developers like him. 
>>>> 
>>>> We have also a student for 6 month who comes from University where he 
>>>> learnt a lot of java and it was a matter of weeks. 
>>>> 
>>>> If you are 2 WO developers, I would recommend you start alone because you 
>>>> will go faster (hiring people, training… takes time). If you need 10 
>>>> developers, it's not a lean startup ;-)
>>>> 
>>>> When you have  existing code (clean and with some pieces of java doc), it 
>>>> will help you to include new developers because it will be easy for you to 
>>>> explain, you will have include your own patterns, …
>>>> 
>>>> About RoR or other stuffs like PHP, if you don't know them, don't use 
>>>> them. You can't be fast and learn something new at the same time. If you 
>>>> know only  COBOL, use COBOL. But if you want to consider something new, 
>>>> look at node.js. For me, and I'm not alone to think that: using the sane 
>>>> language on the client and server side is a key factor in productivity and 
>>>> all the team speak the same language. 
>>>> 
>>>> Philippe
>>>> 
>>>> Sent from my iPhone
>>>> 
>>>> On 24 sept. 2011, at 20:38, Marius Soutier  
>>>> wrote:
>>>> 
>>>>> Hi there,
>>>>> 
>>>>> I know this a difficult and opinionated topic, but I have been asked by a 
>>>>> friend what technology to choose for a Lean Startup (= 3 months until the 
>>>>> first minimum viable product). While he and I know WebObjects quite well, 
>>>>> I think it's safe to say there are only few people here in Germany who 
>>>>> know it at all. I'm personally convinced (and have seen this affirmed by 
>>>>> the two WOWODC talks about Lean Startup and Fluffy Bunny, excellent talks 
>>>>> by the way) that WO itself is a great technology to get things up and 
>>>>> running very fast. However, what if the business grows and he needs to 
>>>>> hire more people?
>>>>> 
>>>>> My first question is - do you easily find skilled people who are willing 
>>>>> to learn WebObjects? What's your experience on this?
>>>>> 
>>>>> And the second question would be - how long does it take them to be 
>>>>> productive, i.e. write working code without much help. I'm assuming here 
>>>>> the person knows Java quite well and is eager to learn new stuff.
>>>>> 
>>>>> The alternative would be Ruby on Rails, which seems quite popular in 
>>>>> startups nowadays.
>>>>> 
>>>>> 
>>>>> Thanks for your insight!
>>>>> 
>>>>> 
>>>>> - Marius
>>>>> 
>>>>> 
>>>>> ___
>>>>> 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/prabier%40me.com
>>>>> 
>>>>> This email sent to prab...@me.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/probert%40macti.ca
>>> 
>>> This email sent to prob...@macti.ca
>> 


 ___
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: Finding WO people for startups

2011-09-25 Thread Marius Soutier
Hi Philippe,

thanks for your answer, interesting points.

It would be only one WO developer, joined by a Front-end developer and a third 
developer yet to be hired.

It's easy to find Java developers, the question is how many of them actually 
want to learn WebObjects. I'm the CTO in a small company and this is actually a 
big difficulty when hiring people. Some are interested, most are not.

My friend has basic knowledge in Rails and some other technologies. I think he 
won't start until december so he could manage to get up to speed until then. Of 
curse it's not the same level as his current knowledge of WO.
The main argument in favor of Rails would be that it's quite easy to find 
competent people who already know the framework.

I'll also let him know to look into Node.js. Do you have hands-on experience, 
is it mature enough? Maybe I should also suggest using Clojure and 
ClojureScript, but it would be even harder to find people for that :)


Thanks,
- Marius


On 25.09.2011, at 12:06, Philippe Rabier wrote:

> Hi Marius,
> 
> I have several developers who were new at WO in 2 different companies. The 
> main point is that they knew java. 
> 
> All the problem talked by Pascal and other regarding documentation for 
> example are important for a new developer that can not be trained/coached by 
> another one. But that's not your case. For example, we hired a 10 years java 
> skilled developer who used jdbc at low level (writing SQL code by hand) in 
> their previous companies. Believe me that he found WO  "magical". He was able 
> to write code in less than a month. And i saw several other developers like 
> him. 
> 
> We have also a student for 6 month who comes from University where he learnt 
> a lot of java and it was a matter of weeks. 
> 
> If you are 2 WO developers, I would recommend you start alone because you 
> will go faster (hiring people, training… takes time). If you need 10 
> developers, it's not a lean startup ;-)
> 
> When you have  existing code (clean and with some pieces of java doc), it 
> will help you to include new developers because it will be easy for you to 
> explain, you will have include your own patterns, …
> 
> About RoR or other stuffs like PHP, if you don't know them, don't use them. 
> You can't be fast and learn something new at the same time. If you know only  
> COBOL, use COBOL. But if you want to consider something new, look at node.js. 
> For me, and I'm not alone to think that: using the sane language on the 
> client and server side is a key factor in productivity and all the team speak 
> the same language. 
> 
> Philippe
> 
> Sent from my iPhone
> 
> On 24 sept. 2011, at 20:38, Marius Soutier  
> wrote:
> 
>> Hi there,
>> 
>> I know this a difficult and opinionated topic, but I have been asked by a 
>> friend what technology to choose for a Lean Startup (= 3 months until the 
>> first minimum viable product). While he and I know WebObjects quite well, I 
>> think it's safe to say there are only few people here in Germany who know it 
>> at all. I'm personally convinced (and have seen this affirmed by the two 
>> WOWODC talks about Lean Startup and Fluffy Bunny, excellent talks by the 
>> way) that WO itself is a great technology to get things up and running very 
>> fast. However, what if the business grows and he needs to hire more people?
>> 
>> My first question is - do you easily find skilled people who are willing to 
>> learn WebObjects? What's your experience on this?
>> 
>> And the second question would be - how long does it take them to be 
>> productive, i.e. write working code without much help. I'm assuming here the 
>> person knows Java quite well and is eager to learn new stuff.
>> 
>> The alternative would be Ruby on Rails, which seems quite popular in 
>> startups nowadays.
>> 
>> 
>> Thanks for your insight!
>> 
>> 
>> - Marius
>> 
>> 
>> ___
>> 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/prabier%40me.com
>> 
>> This email sent to prab...@me.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


Finding WO people for startups

2011-09-24 Thread Marius Soutier
Hi there,

I know this a difficult and opinionated topic, but I have been asked by a 
friend what technology to choose for a Lean Startup (= 3 months until the first 
minimum viable product). While he and I know WebObjects quite well, I think 
it's safe to say there are only few people here in Germany who know it at all. 
I'm personally convinced (and have seen this affirmed by the two WOWODC talks 
about Lean Startup and Fluffy Bunny, excellent talks by the way) that WO itself 
is a great technology to get things up and running very fast. However, what if 
the business grows and he needs to hire more people?

My first question is - do you easily find skilled people who are willing to 
learn WebObjects? What's your experience on this?

And the second question would be - how long does it take them to be productive, 
i.e. write working code without much help. I'm assuming here the person knows 
Java quite well and is eager to learn new stuff.

The alternative would be Ruby on Rails, which seems quite popular in startups 
nowadays.


Thanks for your insight!


- Marius


 ___
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: Bundle loading during unit testing outside Eclipse

2011-09-23 Thread Marius Soutier
Paul, are you depending on the bundle when building from Hudson? For me this 
property only mattes inside of Eclipse because I'm working bundle-less (which 
is much more compatible with other plug-ins).

My script is very simple now:














On 23.09.2011, at 03:02, Henrique Prange wrote:

> Hi all,
> 
> After some investigation on a sample project provided by Paul, I was able to 
> find a problem in the WOUnit code.
> 
> In order to solve the issue #13, I have enabled the NSBundleProjectEnabled 
> property by default. Besides the effort to test this change inside Eclipse 
> and in the console using Maven and Ant, I was unable to detect this 
> "collateral damage".
> 
> I'll debug the NSBundle initialization code as soon as I'm at home in order 
> to provide a fix that doesn't bring the issue #13 back.
> 
> Thank you very much for your patience.
> 
> Cheers,
> 
> Henrique 
> 
> Sent from my iPhone
> 
> On 22/09/2011, at 07:51, Marius Soutier  wrote:
> 
>> That error message wasn't exact enough, it was a problem with ERXLocalizer 
>> being initialized too early (in statics), and now I'm down to this:
>> 
>>[junit] Testcase: net.starhealthcare.sffoundation.model.SFTaskTest:   
>> Caused an ERROR
>> [junit] Unable to get the name of the class to instantiate for the 
>> adaptor framework JavaJDBCAdaptor. The possible causes for this error are: 
>> the adaptor framework is not installed on your system, the adaptor framework 
>> is not linked into your application, or the info dictionary for this adaptor 
>> is corrupted.
>> [junit] java.lang.IllegalStateException: Unable to get the name of the 
>> class to instantiate for the adaptor framework JavaJDBCAdaptor. The possible 
>> causes for this error are: the adaptor framework is not installed on your 
>> system, the adaptor framework is not linked into your application, or the 
>> info dictionary for this adaptor is corrupted.
>> [junit]  at 
>> com.webobjects.eoaccess.EOAdaptor.classForAdaptorNamed(EOAdaptor.java:264)
>> [junit]  at 
>> com.webobjects.eoaccess.EOAdaptor.adaptorWithName(EOAdaptor.java:287)
>> [junit]  at 
>> com.webobjects.eoaccess.EOAdaptor.adaptorWithModel(EOAdaptor.java:312)
>> [junit]  at 
>> com.webobjects.eoaccess.EOModel.createPrototypeCache(EOModel.java:624)
>> [junit]  at 
>> com.webobjects.eoaccess.EOModel.prototypeAttributeNamed(EOModel.java:699)
>> [junit]  at 
>> com.webobjects.eoaccess.ERXModel.prototypeAttributeNamed(ERXModel.java:315)
>> [junit]  at 
>> com.webobjects.eoaccess.EOAttribute.(EOAttribute.java:998)
>> [junit]  at 
>> com.webobjects.eoaccess.EOEntity.attributes(EOEntity.java:816)
>> [junit]  at 
>> er.extensions.eof.ERXModelGroup.modifyModelsFromProperties(ERXModelGroup.java:1150)
>> [junit]  at 
>> er.extensions.eof.ERXModelGroup.loadModelsFromLoadedBundles(ERXModelGroup.java:278)
>> [junit]  at 
>> er.extensions.ERXExtensions.defaultModelGroup(ERXExtensions.java:147)
>> [junit]  at 
>> com.webobjects.foundation.NSSelector._safeInvokeMethod(NSSelector.java:122)
>> [junit]  at 
>> com.webobjects.foundation._NSDelegate._perform(_NSDelegate.java:223)
>> [junit]  at 
>> com.webobjects.foundation._NSDelegate.perform(_NSDelegate.java:155)
>> [junit]  at 
>> com.webobjects.eoaccess.EOModelGroup.defaultGroup(EOModelGroup.java:328)
>> [junit]  at 
>> er.extensions.migration.ERXMigrator.migrateToLatest(ERXMigrator.java:169)
>> [junit]  at 
>> net.starhealthcare.sffoundation.test.SFModelTestCase.initWO(SFModelTestCase.java:74)
>> [junit]  at 
>> net.starhealthcare.sffoundation.test.SFModelTestCase.initTestCase(SFModelTestCase.java:52)
>> [junit]  at 
>> org.eclipse.ant.internal.launching.remote.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
>> [junit]  at 
>> org.eclipse.ant.internal.launching.remote.InternalAntRunner.run(InternalAntRunner.java:424)
>> [junit]  at 
>> org.eclipse.ant.internal.launching.remote.InternalAntRunner.main(InternalAntRunner.java:138)
>> 
>> 
>> On 22.09.2011, at 12:38, Paul Hoadley wrote:
>> 
>>> Hi Marius,
>>> 
>>> On 22/09/2011, at 7:27 PM, Marius Soutier wrote:
>>> 
>>>> I face the same problem when I run my WOUnit tests locally from Ant:
>>>> 

Re: Bundle loading during unit testing outside Eclipse

2011-09-22 Thread Marius Soutier
I had forgotten to fork the jUnit process, so that's resolved now. Apparently 
the classpath does not get passed through to jUnit unless you fork the process. 
Makes things a bit slower :(

But I still have this random strange error where the EO cannot be instantiated 
because EOF is not ready. I will migrate everything to WOUnit, it works much 
better.


- Marius


On 22.09.2011, at 19:55, Chuck Hill wrote:

> That sounds more like a classpath problem.  Are you putting the jar in the 
> built .framework on the classpath, or something else?
> 
> 
> On 2011-09-22, at 3:51 AM, Marius Soutier wrote:
> 
>> That error message wasn't exact enough, it was a problem with ERXLocalizer 
>> being initialized too early (in statics), and now I'm down to this:
>> 
>>   [junit] Testcase: net.starhealthcare.sffoundation.model.SFTaskTest:
>> Caused an ERROR
>>[junit] Unable to get the name of the class to instantiate for the 
>> adaptor framework JavaJDBCAdaptor. The possible causes for this error are: 
>> the adaptor framework is not installed on your system, the adaptor framework 
>> is not linked into your application, or the info dictionary for this adaptor 
>> is corrupted.
>>[junit] java.lang.IllegalStateException: Unable to get the name of the 
>> class to instantiate for the adaptor framework JavaJDBCAdaptor. The possible 
>> causes for this error are: the adaptor framework is not installed on your 
>> system, the adaptor framework is not linked into your application, or the 
>> info dictionary for this adaptor is corrupted.
>>[junit]   at 
>> com.webobjects.eoaccess.EOAdaptor.classForAdaptorNamed(EOAdaptor.java:264)
>>[junit]   at 
>> com.webobjects.eoaccess.EOAdaptor.adaptorWithName(EOAdaptor.java:287)
>>[junit]   at 
>> com.webobjects.eoaccess.EOAdaptor.adaptorWithModel(EOAdaptor.java:312)
>>[junit]   at 
>> com.webobjects.eoaccess.EOModel.createPrototypeCache(EOModel.java:624)
>>[junit]   at 
>> com.webobjects.eoaccess.EOModel.prototypeAttributeNamed(EOModel.java:699)
>>[junit]   at 
>> com.webobjects.eoaccess.ERXModel.prototypeAttributeNamed(ERXModel.java:315)
>>[junit]   at 
>> com.webobjects.eoaccess.EOAttribute.(EOAttribute.java:998)
>>[junit]   at 
>> com.webobjects.eoaccess.EOEntity.attributes(EOEntity.java:816)
>>[junit]   at 
>> er.extensions.eof.ERXModelGroup.modifyModelsFromProperties(ERXModelGroup.java:1150)
>>[junit]   at 
>> er.extensions.eof.ERXModelGroup.loadModelsFromLoadedBundles(ERXModelGroup.java:278)
>>[junit]   at 
>> er.extensions.ERXExtensions.defaultModelGroup(ERXExtensions.java:147)
>>[junit]   at 
>> com.webobjects.foundation.NSSelector._safeInvokeMethod(NSSelector.java:122)
>>[junit]   at 
>> com.webobjects.foundation._NSDelegate._perform(_NSDelegate.java:223)
>>[junit]   at 
>> com.webobjects.foundation._NSDelegate.perform(_NSDelegate.java:155)
>>[junit]   at 
>> com.webobjects.eoaccess.EOModelGroup.defaultGroup(EOModelGroup.java:328)
>>[junit]   at 
>> er.extensions.migration.ERXMigrator.migrateToLatest(ERXMigrator.java:169)
>>[junit]   at 
>> net.starhealthcare.sffoundation.test.SFModelTestCase.initWO(SFModelTestCase.java:74)
>>[junit]   at 
>> net.starhealthcare.sffoundation.test.SFModelTestCase.initTestCase(SFModelTestCase.java:52)
>>[junit]   at 
>> org.eclipse.ant.internal.launching.remote.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
>>[junit]   at 
>> org.eclipse.ant.internal.launching.remote.InternalAntRunner.run(InternalAntRunner.java:424)
>>[junit]   at 
>> org.eclipse.ant.internal.launching.remote.InternalAntRunner.main(InternalAntRunner.java:138)
>> 
>> 
>> On 22.09.2011, at 12:38, Paul Hoadley wrote:
>> 
>>> Hi Marius,
>>> 
>>> On 22/09/2011, at 7:27 PM, Marius Soutier wrote:
>>> 
>>>> I face the same problem when I run my WOUnit tests locally from Ant:
>>>> 
>>>>[junit] Cannot load model named 'SFFoundationEOModel'
>>>>[junit] java.lang.IllegalArgumentException: Cannot load model named 
>>>> 'SFFoundationEOModel'
>>>>[junit] at 
>>>> com.wounit.rules.AbstractEditingContextRule.loadModel(AbstractEditingContextRule.java:178)
>>>>[junit] at 
>>>> com.wounit.rules.AbstractEditingContextRule.(AbstractEditingContextRule.java:86)
>>>>[junit] at 
>>>> com.wounit.rules.AbstractEditingContextRule.(AbstractEditingContextRule.java:98)
>

Re: Bundle loading during unit testing outside Eclipse

2011-09-22 Thread Marius Soutier
As a matter of fact, my WOUnit-based tests work now!

On 22.09.2011, at 15:08, Henrique Prange wrote:

> That error only happens when you run the tests with Ant, correct?
> 
> Sent from my iPhone
> 
> On 22/09/2011, at 07:51, Marius Soutier  wrote:
> 
>> That error message wasn't exact enough, it was a problem with ERXLocalizer 
>> being initialized too early (in statics), and now I'm down to this:
>> 
>>[junit] Testcase: net.starhealthcare.sffoundation.model.SFTaskTest:   
>> Caused an ERROR
>> [junit] Unable to get the name of the class to instantiate for the 
>> adaptor framework JavaJDBCAdaptor. The possible causes for this error are: 
>> the adaptor framework is not installed on your system, the adaptor framework 
>> is not linked into your application, or the info dictionary for this adaptor 
>> is corrupted.
>> [junit] java.lang.IllegalStateException: Unable to get the name of the 
>> class to instantiate for the adaptor framework JavaJDBCAdaptor. The possible 
>> causes for this error are: the adaptor framework is not installed on your 
>> system, the adaptor framework is not linked into your application, or the 
>> info dictionary for this adaptor is corrupted.
>> [junit]  at 
>> com.webobjects.eoaccess.EOAdaptor.classForAdaptorNamed(EOAdaptor.java:264)
>> [junit]  at 
>> com.webobjects.eoaccess.EOAdaptor.adaptorWithName(EOAdaptor.java:287)
>> [junit]  at 
>> com.webobjects.eoaccess.EOAdaptor.adaptorWithModel(EOAdaptor.java:312)
>> [junit]  at 
>> com.webobjects.eoaccess.EOModel.createPrototypeCache(EOModel.java:624)
>> [junit]  at 
>> com.webobjects.eoaccess.EOModel.prototypeAttributeNamed(EOModel.java:699)
>> [junit]  at 
>> com.webobjects.eoaccess.ERXModel.prototypeAttributeNamed(ERXModel.java:315)
>> [junit]  at 
>> com.webobjects.eoaccess.EOAttribute.(EOAttribute.java:998)
>> [junit]  at 
>> com.webobjects.eoaccess.EOEntity.attributes(EOEntity.java:816)
>> [junit]  at 
>> er.extensions.eof.ERXModelGroup.modifyModelsFromProperties(ERXModelGroup.java:1150)
>> [junit]  at 
>> er.extensions.eof.ERXModelGroup.loadModelsFromLoadedBundles(ERXModelGroup.java:278)
>> [junit]  at 
>> er.extensions.ERXExtensions.defaultModelGroup(ERXExtensions.java:147)
>> [junit]  at 
>> com.webobjects.foundation.NSSelector._safeInvokeMethod(NSSelector.java:122)
>> [junit]  at 
>> com.webobjects.foundation._NSDelegate._perform(_NSDelegate.java:223)
>> [junit]  at 
>> com.webobjects.foundation._NSDelegate.perform(_NSDelegate.java:155)
>> [junit]  at 
>> com.webobjects.eoaccess.EOModelGroup.defaultGroup(EOModelGroup.java:328)
>> [junit]  at 
>> er.extensions.migration.ERXMigrator.migrateToLatest(ERXMigrator.java:169)
>> [junit]  at 
>> net.starhealthcare.sffoundation.test.SFModelTestCase.initWO(SFModelTestCase.java:74)
>> [junit]  at 
>> net.starhealthcare.sffoundation.test.SFModelTestCase.initTestCase(SFModelTestCase.java:52)
>> [junit]  at 
>> org.eclipse.ant.internal.launching.remote.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
>>     [junit]  at 
>> org.eclipse.ant.internal.launching.remote.InternalAntRunner.run(InternalAntRunner.java:424)
>> [junit]  at 
>> org.eclipse.ant.internal.launching.remote.InternalAntRunner.main(InternalAntRunner.java:138)
>> 
>> 
>> On 22.09.2011, at 12:38, Paul Hoadley wrote:
>> 
>>> Hi Marius,
>>> 
>>> On 22/09/2011, at 7:27 PM, Marius Soutier wrote:
>>> 
>>>> I face the same problem when I run my WOUnit tests locally from Ant:
>>>> 
>>>> [junit] Cannot load model named 'SFFoundationEOModel'
>>>> [junit] java.lang.IllegalArgumentException: Cannot load model named 
>>>> 'SFFoundationEOModel'
>>>> [junit]at 
>>>> com.wounit.rules.AbstractEditingContextRule.loadModel(AbstractEditingContextRule.java:178)
>>>> [junit]at 
>>>> com.wounit.rules.AbstractEditingContextRule.(AbstractEditingContextRule.java:86)
>>>> [junit]at 
>>>> com.wounit.rules.AbstractEditingContextRule.(AbstractEditingContextRule.java:98)
>>>> [junit]at 
>>>> com.wounit.rules.TemporaryEditingContext.(TemporaryEditingContext.java:78)
>>>> [junit]at 
>>>> net.starhealthcare.sffoundation.model.SFGoalTest.(SFGoalTest.java:15)
>>> 
>>> I don't think that is quite the same problem—I'm not having an

Re: Bundle loading during unit testing outside Eclipse

2011-09-22 Thread Marius Soutier
That error message wasn't exact enough, it was a problem with ERXLocalizer 
being initialized too early (in statics), and now I'm down to this:

   [junit] Testcase: net.starhealthcare.sffoundation.model.SFTaskTest:  Caused 
an ERROR
[junit] Unable to get the name of the class to instantiate for the adaptor 
framework JavaJDBCAdaptor. The possible causes for this error are: the adaptor 
framework is not installed on your system, the adaptor framework is not linked 
into your application, or the info dictionary for this adaptor is corrupted.
[junit] java.lang.IllegalStateException: Unable to get the name of the 
class to instantiate for the adaptor framework JavaJDBCAdaptor. The possible 
causes for this error are: the adaptor framework is not installed on your 
system, the adaptor framework is not linked into your application, or the info 
dictionary for this adaptor is corrupted.
[junit] at 
com.webobjects.eoaccess.EOAdaptor.classForAdaptorNamed(EOAdaptor.java:264)
[junit] at 
com.webobjects.eoaccess.EOAdaptor.adaptorWithName(EOAdaptor.java:287)
[junit] at 
com.webobjects.eoaccess.EOAdaptor.adaptorWithModel(EOAdaptor.java:312)
[junit] at 
com.webobjects.eoaccess.EOModel.createPrototypeCache(EOModel.java:624)
[junit] at 
com.webobjects.eoaccess.EOModel.prototypeAttributeNamed(EOModel.java:699)
[junit] at 
com.webobjects.eoaccess.ERXModel.prototypeAttributeNamed(ERXModel.java:315)
[junit] at 
com.webobjects.eoaccess.EOAttribute.(EOAttribute.java:998)
[junit] at 
com.webobjects.eoaccess.EOEntity.attributes(EOEntity.java:816)
[junit] at 
er.extensions.eof.ERXModelGroup.modifyModelsFromProperties(ERXModelGroup.java:1150)
[junit] at 
er.extensions.eof.ERXModelGroup.loadModelsFromLoadedBundles(ERXModelGroup.java:278)
[junit] at 
er.extensions.ERXExtensions.defaultModelGroup(ERXExtensions.java:147)
[junit] at 
com.webobjects.foundation.NSSelector._safeInvokeMethod(NSSelector.java:122)
[junit] at 
com.webobjects.foundation._NSDelegate._perform(_NSDelegate.java:223)
[junit] at 
com.webobjects.foundation._NSDelegate.perform(_NSDelegate.java:155)
[junit] at 
com.webobjects.eoaccess.EOModelGroup.defaultGroup(EOModelGroup.java:328)
[junit] at 
er.extensions.migration.ERXMigrator.migrateToLatest(ERXMigrator.java:169)
[junit] at 
net.starhealthcare.sffoundation.test.SFModelTestCase.initWO(SFModelTestCase.java:74)
[junit] at 
net.starhealthcare.sffoundation.test.SFModelTestCase.initTestCase(SFModelTestCase.java:52)
[junit] at 
org.eclipse.ant.internal.launching.remote.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
[junit] at 
org.eclipse.ant.internal.launching.remote.InternalAntRunner.run(InternalAntRunner.java:424)
[junit] at 
org.eclipse.ant.internal.launching.remote.InternalAntRunner.main(InternalAntRunner.java:138)


On 22.09.2011, at 12:38, Paul Hoadley wrote:

> Hi Marius,
> 
> On 22/09/2011, at 7:27 PM, Marius Soutier wrote:
> 
>> I face the same problem when I run my WOUnit tests locally from Ant:
>> 
>> [junit] Cannot load model named 'SFFoundationEOModel'
>> [junit] java.lang.IllegalArgumentException: Cannot load model named 
>> 'SFFoundationEOModel'
>> [junit]  at 
>> com.wounit.rules.AbstractEditingContextRule.loadModel(AbstractEditingContextRule.java:178)
>> [junit]  at 
>> com.wounit.rules.AbstractEditingContextRule.(AbstractEditingContextRule.java:86)
>> [junit]  at 
>> com.wounit.rules.AbstractEditingContextRule.(AbstractEditingContextRule.java:98)
>> [junit]  at 
>> com.wounit.rules.TemporaryEditingContext.(TemporaryEditingContext.java:78)
>> [junit]  at 
>> net.starhealthcare.sffoundation.model.SFGoalTest.(SFGoalTest.java:15)
> 
> I don't think that is quite the same problem—I'm not having an issue with 
> finding any models.  Is your model in a different framework?  Is that 
> framework on the testing classpath?
> 
> 
> -- 
> Paul.
> 
> 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:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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


Re: Bundle loading during unit testing outside Eclipse

2011-09-22 Thread Marius Soutier
I face the same problem when I run my WOUnit tests locally from Ant:

[junit] Cannot load model named 'SFFoundationEOModel'
[junit] java.lang.IllegalArgumentException: Cannot load model named 
'SFFoundationEOModel'
[junit] at 
com.wounit.rules.AbstractEditingContextRule.loadModel(AbstractEditingContextRule.java:178)
[junit] at 
com.wounit.rules.AbstractEditingContextRule.(AbstractEditingContextRule.java:86)
[junit] at 
com.wounit.rules.AbstractEditingContextRule.(AbstractEditingContextRule.java:98)
[junit] at 
com.wounit.rules.TemporaryEditingContext.(TemporaryEditingContext.java:78)
[junit] at 
net.starhealthcare.sffoundation.model.SFGoalTest.(SFGoalTest.java:15)

On the other hand, my own test case stuff has a similar problem now:

[junit] - Standard Output ---
[junit] Sep 22 11:52:27 N/A[N/A] WARN  er.extensions.migration.ERXMigrator  
- er.migration.modelNames is not set, defaulting to modelGroup.models() order 
instead.
[junit] Sep 22 11:52:28 N/A[N/A] ERROR 
er.extensions.eof.ERXEntityClassDescription  - Entity SFIncident not found in 
the default model group!
[junit] -  ---
[junit] Testcase: 
testTimeContextIsAppended(net.starhealthcare.sffoundation.model.SFIncidentTest):
  Caused an ERROR
[junit] Could not find EOClassDescription for entity name 'SFIncident' !
[junit] java.lang.IllegalArgumentException: Could not find 
EOClassDescription for entity name 'SFIncident' !




On 21.09.2011, at 19:28, Chuck Hill wrote:

> 
> On 2011-09-20, at 10:08 PM, Paul Hoadley wrote:
> 
>> On 21/09/2011, at 2:26 PM, Chuck Hill wrote:
>> 
> If you 
> cd WT2.woa
> ./WT2
> does the app run and find any of the bundles?
 
 Yep, runs and finds them all.
>>> 
>>> Wow.  The only thing that I can think of right now is that it _is_ 
>>> something to do with WOTest.  I just can't imagine what.  Is ERJars on your 
>>> classpath?
>> 
>> Yes, ERJars is on the classpath.
>> 
>> I'd love to blame WOUnit.  (Hi Henrique!)  I might have to put some more 
>> time into developing a minimal test case that I can ship to Henrique.
> 
> 
> I'd like to take a look at it too.
> 
> 
> -- 
> 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/m.soutier%40starhealthcare.info
> 
> This email sent to m.sout...@starhealthcare.info

 ___
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: WOLips complains about scala WOElement

2011-09-19 Thread Marius Soutier
That's because WOLips doesn't recognize Scala classes. I think there's no 
workaround except extending WOLips.

I hope you're not using Scala only to reduce line count :)


On 19.09.2011, at 10:51, Yung-Luen Lan wrote:

> Hi,
> 
> I'm using WOLips stable with Eclipse 3.6 and scala 2.9.0.1 following
> the WO wiki setup.
> 
> Scala is amazing. It reduces a lot of LOC which results more concise
> and clear code. So I gradually rewrite my project using scala, one
> class at a time.
> 
> However, Eclipse gives me errors:
> 
> The class for 'APILogin' is either missing or does not extend
> WOElement.line 204WebObjects Template Problems
> 
> where I write  in html. I can still build with ant but
> it cause error in eclipse. APILogin is a scala class extends other
> java ERXComponent's subclass.
> 
> Is there any way to get rid of this kind of error?
> 
> Regards,
> yllan
> ___
> 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/m.soutier%40starhealthcare.info
> 
> This email sent to m.sout...@starhealthcare.info


 ___
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: Wonder vs WO app/framework in WOLips

2011-09-18 Thread Marius Soutier
I think it's an anti-pattern to use WebObjects without Wonder :)

On 18.09.2011, at 23:04, Pascal Robert wrote:

> Hi everyone,
> 
> Quick survey: does anyone of you still use the "WebObjects" project types in 
> WOLips instead of the "Wonder" types? I think it's confusing to have both, 
> especially for new people. And now that the future of WO is in Wonder, I 
> don't see why many people would select the WebObjects project types. Be aware 
> this is only for the File -> New action, the WebObjects project types would 
> be still available from the "Project..." list. 
> ___
> 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/m.soutier%40starhealthcare.info
> 
> This email sent to m.sout...@starhealthcare.info


 ___
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: Stand alone Databases that play well with Migrations

2011-09-18 Thread Marius Soutier
In that particular project the budget didn't allow switching to Postgres so I 
bit the bullet and did a full recover of the database:
* Upgraded H2 to latest stable version (1.55 or so)
* Removed all references to older versions (the Wonder framework uses an older 
beta, our fork was a bit newer but still)
* Run the recovery tool
* Rebuild the database from the recovered data
It took me at least three attempts until everything worked fine. Since then 
it's been running ok.

I think the problem originated from conflicting versions. You have to be 
extra-careful when upgrading to a later version, for example when the 
H2PlugIn.framework comes with a new version of the JAR. It is advised to do an 
SQL export and rebuild the database. You also have to monitor the h2.trace 
file. In this case it took a couple of months until the corruptions were 
evident in the application.


- Marius


On 18.09.2011, at 22:17, Pascal Robert wrote:

> Did you switch to something else? I was thinking of using H2 for a open 
> source project (app to display events from multiple delegated calendars from 
> CalDAV servers), but if I would get data corruption, I don't think I will use 
> it :-)
> 
>> I can't recommend it for production use though. We deployed H2 in a 
>> small-scale project and had some horrible data corruption issues. As far as 
>> I understand, H2 is maintained by a single developer.
>> 
>> 
>> On 18.09.2011, at 12:59, Pascal Robert wrote:
>> 
>>> +1 for H2. Not having to install a RDBMS and create a database in it is 
>>> cool, especially for demos/tutorials.
>>> 
 Hi Dan,
 
 If you're going embedded, I would recommend H2 simply based on my 
 experience with it. At home, I'll frequently use H2 to develop with the 
 intention to deploy on Postgres.  I figure I keep my database options open 
 this way, because it prevents any stupid temptations to build dependency 
 on a single database.  Anyway, I've had no migration problems with H2.  I 
 just wish it did deferred FK constraints (^_^)
 
 If you want your H2 db in your resources directory, you can find an 
 example in the ERMoviesLogic framework.
 
 Ramsey
 
 
 On Sep 17, 2011, at 9:07 PM, Dan Beatty wrote:
 
> Greetings gentlemen, David’s,  and members of the Chuck Wagon gang,
> I thought I would pick your brains for amount to find out from your 
> experience which of the “stand-alone” databases like Apache Derby, H2, 
> etc play well with Project Wonder’s migration frameworks.   I have 
> noticed that Apple’s plugin for MySQL plays poorly, but Ramsey says that 
> Wonder’s MySQL plugin fixes that.  Thus, what embedded databases play 
> well with ERMigration and what plugins do I need to make them work?  What 
> special URL augmentation is necessary for WO to find such an embedded 
> database in say the Resources directory of a WO application?
> 
> Any ideas?
> 
> Thank you,
> 
> Daniel Beatty
> Computer Scientist, Detonation Sciences Branch
> Code 474300D
> 1 Administration Circle M/S 1109
> China Lake, CA 93555
> daniel.bea...@navy.mil
> (LandLine) (760)939-7097 
> (iPhone) (806)438-6620
> 
> ___
> 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/ramseygurley%40gmail.com
> 
> This email sent to ramseygur...@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:
 http://lists.apple.com/mailman/options/webobjects-dev/probert%40macti.ca
 
 This email sent to prob...@macti.ca
>>> 
>>> ___
>>> 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/m.soutier%40starhealthcare.info
>>> 
>>> This email sent to m.sout...@starhealthcare.info
>> 
> 

 ___
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: Stand alone Databases that play well with Migrations

2011-09-18 Thread Marius Soutier
I can't recommend it for production use though. We deployed H2 in a small-scale 
project and had some horrible data corruption issues. As far as I understand, 
H2 is maintained by a single developer.


On 18.09.2011, at 12:59, Pascal Robert wrote:

> +1 for H2. Not having to install a RDBMS and create a database in it is cool, 
> especially for demos/tutorials.
> 
>> Hi Dan,
>> 
>> If you're going embedded, I would recommend H2 simply based on my experience 
>> with it. At home, I'll frequently use H2 to develop with the intention to 
>> deploy on Postgres.  I figure I keep my database options open this way, 
>> because it prevents any stupid temptations to build dependency on a single 
>> database.  Anyway, I've had no migration problems with H2.  I just wish it 
>> did deferred FK constraints (^_^)
>> 
>> If you want your H2 db in your resources directory, you can find an example 
>> in the ERMoviesLogic framework.
>> 
>> Ramsey
>> 
>> 
>> On Sep 17, 2011, at 9:07 PM, Dan Beatty wrote:
>> 
>>> Greetings gentlemen, David’s,  and members of the Chuck Wagon gang,
>>> I thought I would pick your brains for amount to find out from your 
>>> experience which of the “stand-alone” databases like Apache Derby, H2, etc 
>>> play well with Project Wonder’s migration frameworks.   I have noticed that 
>>> Apple’s plugin for MySQL plays poorly, but Ramsey says that Wonder’s MySQL 
>>> plugin fixes that.  Thus, what embedded databases play well with 
>>> ERMigration and what plugins do I need to make them work?  What special URL 
>>> augmentation is necessary for WO to find such an embedded database in say 
>>> the Resources directory of a WO application?
>>> 
>>> Any ideas?
>>> 
>>> Thank you,
>>> 
>>> Daniel Beatty
>>> Computer Scientist, Detonation Sciences Branch
>>> Code 474300D
>>> 1 Administration Circle M/S 1109
>>> China Lake, CA 93555
>>> daniel.bea...@navy.mil
>>> (LandLine) (760)939-7097 
>>> (iPhone) (806)438-6620
>>> 
>>> ___
>>> 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/ramseygurley%40gmail.com
>>> 
>>> This email sent to ramseygur...@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:
>> http://lists.apple.com/mailman/options/webobjects-dev/probert%40macti.ca
>> 
>> This email sent to prob...@macti.ca
> 
> ___
> 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/m.soutier%40starhealthcare.info
> 
> This email sent to m.sout...@starhealthcare.info

 ___
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


[OFF-TOPIC] LinkedIn WebObjects contacts

2011-09-13 Thread Marius Soutier
Hey there,

if anyone else is interested in connecting via LinkedIn (maybe for future 
contract work or interesting projects), feel free to add me.

http://www.linkedin.com/in/mariussoutier/


Cheers,
- Marius

PS Sorry for the spam...

 ___
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: setUser() vs. setUserRelationship()

2011-08-02 Thread Marius Soutier
Ah yes, I tried that option, but in one of our projects, which originated as a 
non-Wonder project, it doesn't work:

ERROR com.webobjects.eoaccess.ERXEntityDependencyOrderingDelegate  - Unexpected 
non-EOGeneralAdaptorException exception
IllegalStateException: Attempt to access an EO that has either not been 
inserted into any EOEditingContext or its EOEditingContext has already been 
disposed
  at com.webobjects.eocontrol.EOCustomObject.willRead(EOCustomObject.java:1158)
  at 
com.webobjects.eocontrol._EOMutableKnownKeyDictionary$Initializer$_GenericRecordBinding.valueInObject(_EOMutableKnownKeyDictionary.java:570)
  at 
com.webobjects.eocontrol._EOMutableKnownKeyDictionary$Initializer$_LazyGenericRecordBinding.valueInObject(_EOMutableKnownKeyDictionary.java:613)
  at 
com.webobjects.eocontrol.EOCustomObject.storedValueForKey(EOCustomObject.java:1634)
  at 
net.starhealthcare.sffoundation.model.base._SFActor.sFIncidentsAsActor(_SFActor.java:48)
 ... skipped 6 stack elements
  at 
er.extensions.eof.ERXGenericRecord$InverseRelationshipUpdater.takeStoredValueForKey(ERXGenericRecord.java:1619)
  at 
er.extensions.eof.ERXGenericRecord.takeStoredValueForKey(ERXGenericRecord.java:1400)
  at 
com.webobjects.eocontrol.EOKeyValueCoding$_StoredForwardingBinding.setValueInObject(EOKeyValueCoding.java:240)
 ... skipped 2 stack elements
  at 
com.webobjects.eocontrol.EOObjectStoreCoordinator.initializeObject(EOObjectStoreCoordinator.java:597)
  at 
com.webobjects.eocontrol.EOEditingContext.initializeObject(EOEditingContext.java:3768)
 ... skipped 3 stack elements
  at 
com.webobjects.eocontrol.EOObjectStoreCoordinator.objectsWithFetchSpecification(EOObjectStoreCoordinator.java:488)
  at 
com.webobjects.eocontrol.EOEditingContext.objectsWithFetchSpecification(EOEditingContext.java:4069)
 ... skipped 1 stack elements
  at 
com.webobjects.eocontrol.EOObjectStoreCoordinator.objectsForSourceGlobalID(EOObjectStoreCoordinator.java:634)
  at 
com.webobjects.eocontrol.EOEditingContext.objectsForSourceGlobalID(EOEditingContext.java:3923)
 ... skipped 1 stack elements
  at 
com.webobjects.eoaccess.EOAccessArrayFaultHandler.completeInitializationOfObject(EOAccessArrayFaultHandler.java:77)
  at 
com.webobjects.eocontrol._EOCheapCopyMutableArray.willRead(_EOCheapCopyMutableArray.java:39)
  at 
com.webobjects.eocontrol._EOCheapCopyMutableArray.count(_EOCheapCopyMutableArray.java:96)
  at com.webobjects.foundation.NSArray.containsObject(NSArray.java:454)
  at 
com.webobjects.eocontrol.EOCustomObject.includeObjectIntoPropertyWithKey(EOCustomObject.java:904)
  at 
er.extensions.eof.ERXGenericRecord.includeObjectIntoPropertyWithKey(ERXGenericRecord.java:1375)

On 02.08.2011, at 18:38, Kieran Kelleher wrote:

> Not sure if your template is the same as mine, but for me, both methods do 
> the EXACT SAME thing when 
> er.extensions.ERXEnterpriseObject.updateInverseRelationships property is set 
> to true. ( @see 
> er.extensions.eof.ERXGenericRecord.InverseRelationshipUpdater.updateInverseRelationships()
>  ). So you could actually set that property to true and get rid of the 
> setXxxxRelationship method (or at least add @Deprecated to it so it can be 
> hidden from code-assist) from your eogen template. Mike Schrag wrote that 
> feature …. and it does the "right" thing. However, IIRC it is 'false' by 
> default

 ___
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


setUser() vs. setUserRelationship()

2011-08-02 Thread Marius Soutier
Hi,

one thing that's always confused me and which causes a bug every now and then 
is for a given relationship, let's call it user, two setters are generated:
* `setUser(User user)`
* `setUserRelationship(User user)`
while only one getter `user()` is generated.

When calling `setUser()`, the field in the database is populated, but EOF 
doesn't understand the relationship was set which causes all kinds of weird 
bugs. So what's the point of the `setUser()` method?

Thanks,
- Marius


 ___
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: WOLips on eclipse 3.7

2011-08-01 Thread Marius Soutier
Have you tried renaming the folder from eclipse-indigio to e.g. EclipseIndigo?

On 01.08.2011, at 16:22, Alexis Tual wrote:

> Hi list,
> 
> I've just switched to eclipse 3.7 with WOLips from 
> http://webobjects.mdimension.com/hudson/job/WOLips37Current/lastSuccessfulBuild/artifact/site/
> 
> Everything seemed to work fine until I tried to eogenerate which failed 
> silently (see sshot attached)
> 
> 
> 
> Maybe something concerning paths changed because when I open a eogenerator 
> file with the wolips editor, it prepends the eclipse 3.7 path (edited with a 
> text editor, the path shows "Resources/Cocowork.eomodeld", which is correct) :
> 
> 
> 
> Has anybody experienced this ?
> 
> Thanks
> 
> Alex
> ___
> 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/m.soutier%40starhealthcare.info
> 
> This email sent to m.sout...@starhealthcare.info


 ___
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: Wonder JavaMonitor

2011-06-09 Thread Marius Soutier
Yup, even auto-updates to the latest release.

On 09.06.2011, at 21:33, Pascal Robert wrote:

> 
> Le 2011-06-09 à 15:28, Marius Soutier a écrit :
> 
>> We also experience a lot of issues even when using just a few instances. 
>> Stopping, starting etc. via /admin can be slow. Often times, the monitor 
>> goes out of sync with a random application.
>> We are also using Ubuntu.
> 
> Running Sun JVM 1.6.x?
> 
>> On 09.06.2011, at 20:59, Pascal Robert wrote:
>> 
>>> 
>>> Le 2011-06-09 à 14:55, Klaus Berkling a écrit :
>>> 
>>>> Hi all.
>>>> 
>>>> I'm working with wonder's JavaMonitor, sources from about last week from 
>>>> git.
>>>> 
>>>> Certain basic things just aren't working, shutting down instances, 
>>>> clearing deaths, etc.
>>>> 
>>>> Before I go debug things, are there currently know issues? Is there a 'oh 
>>>> yeah, don't use it until [this] gets fixed'?
>>> 
>>> Being running the wonder version for months without issues (on CentOS 
>>> Linux). But good chance that I don't have as much instances as you.
>>> 
>>> 
>>> ___
>>> 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/m.soutier%40starhealthcare.info
>>> 
>>> This email sent to m.sout...@starhealthcare.info
>> 
>> 
> 


 ___
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: Wonder JavaMonitor

2011-06-09 Thread Marius Soutier
We also experience a lot of issues even when using just a few instances. 
Stopping, starting etc. via /admin can be slow. Often times, the monitor goes 
out of sync with a random application.
We are also using Ubuntu.

On 09.06.2011, at 20:59, Pascal Robert wrote:

> 
> Le 2011-06-09 à 14:55, Klaus Berkling a écrit :
> 
>> Hi all.
>> 
>> I'm working with wonder's JavaMonitor, sources from about last week from git.
>> 
>> Certain basic things just aren't working, shutting down instances, clearing 
>> deaths, etc.
>> 
>> Before I go debug things, are there currently know issues? Is there a 'oh 
>> yeah, don't use it until [this] gets fixed'?
> 
> Being running the wonder version for months without issues (on CentOS Linux). 
> But good chance that I don't have as much instances as you.
> 
> 
> ___
> 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/m.soutier%40starhealthcare.info
> 
> This email sent to m.sout...@starhealthcare.info


 ___
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: D2W defaultSortOrdering error

2011-03-21 Thread Marius Soutier
Yeah if all bugs were that easy :)

On 21.03.2011, at 21:40, David Holt wrote:

> Ow ow ow. That's the result of my hand hitting my forehead. 
> 
> Good thing I have a bonehead.
> 
> :-)
> 
> Thanks Marius,
> 
> David
> 
> 
> On 2011-03-21, at 1:31 PM, Marius Soutier wrote:
> 
>> My guess is that sortAscending must be compareAscending.
>> 
>> On 21.03.2011, at 21:24, David Holt wrote:
>> 
>>> Does anyone know why using this rule 
>>> 
>>> 100 : pageConfiguration = 'ListCategoryItemLookup' => defaultSortOrdering = 
>>> ("itemNumber", "sortAscending") [com.webobjects.directtoweb.Assignment]
>>> 
>>> is generating this error:
>>> 
>>> Mar 21 09:06:02 CSCWApp[49866] WARN  NSLog  - 
>>> : Exception 
>>> occurred while handling request:
>>> com.webobjects.foundation.NSForwardException 
>>> [java.lang.NoSuchMethodException] Class java.lang.String does not implement 
>>> method sortAscending:java.lang.NoSuchMethodException: Class 
>>> java.lang.String does not implement method sortAscending
>>> [2011-3-21 9:6:2 PDT]  
>>> com.webobjects.foundation.NSForwardException 
>>> [java.lang.NoSuchMethodException] Class java.lang.String does not implement 
>>> method sortAscending:java.lang.NoSuchMethodException: Class 
>>> java.lang.String does not implement method sortAscending
>>> at 
>>> com.webobjects.foundation.NSForwardException._runtimeExceptionForThrowable(NSForwardException.java:45)
>>> at 
>>> com.webobjects.eocontrol.EOSortOrdering$ComparisonSupport._compareWithArbitrarySelector(EOSortOrdering.java:553)
>>> at 
>>> com.webobjects.eocontrol.EOSortOrdering$ComparisonSupport.compareValues(EOSortOrdering.java:545)
>>> at 
>>> com.webobjects.eocontrol.EOSortOrdering$_SingleValueComparator.compare(EOSortOrdering.java:373)
>>> at 
>>> com.webobjects.foundation._NSCollectionPrimitives.K2SortArray(_NSCollectionPrimitives.java:332)
>>> at 
>>> com.webobjects.eocontrol.EOSortOrdering._sortUsingKeyOrderArray(EOSortOrdering.java:214)
>>> at 
>>> com.webobjects.eocontrol.EOSortOrdering.sortedArrayUsingKeyOrderArray(EOSortOrdering.java:249)
>>> at 
>>> com.webobjects.appserver.WODisplayGroup.updateDisplayedObjects(WODisplayGroup.java:1059)
>>> at 
>>> com.webobjects.appserver.WODisplayGroup.setObjectArray(WODisplayGroup.java:1091)
>>> at 
>>> com.webobjects.appserver.WODisplayGroup.fetch(WODisplayGroup.java:2134)
>>> at 
>>> er.extensions.appserver.ERXDisplayGroup.fetch(ERXDisplayGroup.java:124)
>>> at 
>>> er.directtoweb.pages.ERD2WListPage._fetchDisplayGroup(ERD2WListPage.java:452)
>>> at er.directtoweb.pages.ERD2WListPage.setupPhase(ERD2WListPage.java:552)
>>> at 
>>> er.directtoweb.pages.ERD2WListPage.appendToResponse(ERD2WListPage.java:483)
>>> at 
>>> com.webobjects.appserver.WOSession.appendToResponse(WOSession.java:1385)
>>> at 
>>> er.extensions.appserver.ERXSession.appendToResponse(ERXSession.java:552)
>>> at 
>>> com.webobjects.appserver.WOApplication.appendToResponse(WOApplication.java:1794)
>>> at 
>>> er.extensions.appserver.ERXApplication.appendToResponse(ERXApplication.java:1886)
>>> at 
>>> com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWithPreparedPage(WOComponentRequestHandler.java:242)
>>> at 
>>> com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWithPreparedSession(WOComponentRequestHandler.java:298)
>>> at 
>>> com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWithPreparedApplication(WOComponentRequestHandler.java:332)
>>> at 
>>> com.webobjects.appserver._private.WOComponentRequestHandler._handleRequest(WOComponentRequestHandler.java:369)
>>> at 
>>> com.webobjects.appserver._private.WOComponentRequestHandler.handleRequest(WOComponentRequestHandler.java:442)
>>> at 
>>> com.webobjects.appserver.WOApplication.dispatchRequest(WOApplication.java:1687)
>>> at 
>>> er.extensions.appserver.ERXApplication.dispatchRequestImmediately(ERXApplication.java:1984)
>>> at 
>>> er.extensions.appserver.ERXDelayedRequestHandler$DelayedRequest.call(ERXDelayedRequestHandler.java:89)
>>> at 
>>> er.extensions.appserver.ERXDelayedRequestHandler$DelayedRequest.call(ERXDelayedRequestHandler.java:66)
>>

Re: D2W defaultSortOrdering error

2011-03-21 Thread Marius Soutier
My guess is that sortAscending must be compareAscending.

On 21.03.2011, at 21:24, David Holt wrote:

> Does anyone know why using this rule 
> 
> 100 : pageConfiguration = 'ListCategoryItemLookup' => defaultSortOrdering = 
> ("itemNumber", "sortAscending") [com.webobjects.directtoweb.Assignment]
> 
> is generating this error:
> 
> Mar 21 09:06:02 CSCWApp[49866] WARN  NSLog  - 
> : Exception 
> occurred while handling request:
> com.webobjects.foundation.NSForwardException 
> [java.lang.NoSuchMethodException] Class java.lang.String does not implement 
> method sortAscending:java.lang.NoSuchMethodException: Class java.lang.String 
> does not implement method sortAscending
> [2011-3-21 9:6:2 PDT]  
> com.webobjects.foundation.NSForwardException 
> [java.lang.NoSuchMethodException] Class java.lang.String does not implement 
> method sortAscending:java.lang.NoSuchMethodException: Class java.lang.String 
> does not implement method sortAscending
>   at 
> com.webobjects.foundation.NSForwardException._runtimeExceptionForThrowable(NSForwardException.java:45)
>   at 
> com.webobjects.eocontrol.EOSortOrdering$ComparisonSupport._compareWithArbitrarySelector(EOSortOrdering.java:553)
>   at 
> com.webobjects.eocontrol.EOSortOrdering$ComparisonSupport.compareValues(EOSortOrdering.java:545)
>   at 
> com.webobjects.eocontrol.EOSortOrdering$_SingleValueComparator.compare(EOSortOrdering.java:373)
>   at 
> com.webobjects.foundation._NSCollectionPrimitives.K2SortArray(_NSCollectionPrimitives.java:332)
>   at 
> com.webobjects.eocontrol.EOSortOrdering._sortUsingKeyOrderArray(EOSortOrdering.java:214)
>   at 
> com.webobjects.eocontrol.EOSortOrdering.sortedArrayUsingKeyOrderArray(EOSortOrdering.java:249)
>   at 
> com.webobjects.appserver.WODisplayGroup.updateDisplayedObjects(WODisplayGroup.java:1059)
>   at 
> com.webobjects.appserver.WODisplayGroup.setObjectArray(WODisplayGroup.java:1091)
>   at 
> com.webobjects.appserver.WODisplayGroup.fetch(WODisplayGroup.java:2134)
>   at 
> er.extensions.appserver.ERXDisplayGroup.fetch(ERXDisplayGroup.java:124)
>   at 
> er.directtoweb.pages.ERD2WListPage._fetchDisplayGroup(ERD2WListPage.java:452)
>   at er.directtoweb.pages.ERD2WListPage.setupPhase(ERD2WListPage.java:552)
>   at 
> er.directtoweb.pages.ERD2WListPage.appendToResponse(ERD2WListPage.java:483)
>   at 
> com.webobjects.appserver.WOSession.appendToResponse(WOSession.java:1385)
>   at 
> er.extensions.appserver.ERXSession.appendToResponse(ERXSession.java:552)
>   at 
> com.webobjects.appserver.WOApplication.appendToResponse(WOApplication.java:1794)
>   at 
> er.extensions.appserver.ERXApplication.appendToResponse(ERXApplication.java:1886)
>   at 
> com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWithPreparedPage(WOComponentRequestHandler.java:242)
>   at 
> com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWithPreparedSession(WOComponentRequestHandler.java:298)
>   at 
> com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWithPreparedApplication(WOComponentRequestHandler.java:332)
>   at 
> com.webobjects.appserver._private.WOComponentRequestHandler._handleRequest(WOComponentRequestHandler.java:369)
>   at 
> com.webobjects.appserver._private.WOComponentRequestHandler.handleRequest(WOComponentRequestHandler.java:442)
>   at 
> com.webobjects.appserver.WOApplication.dispatchRequest(WOApplication.java:1687)
>   at 
> er.extensions.appserver.ERXApplication.dispatchRequestImmediately(ERXApplication.java:1984)
>   at 
> er.extensions.appserver.ERXDelayedRequestHandler$DelayedRequest.call(ERXDelayedRequestHandler.java:89)
>   at 
> er.extensions.appserver.ERXDelayedRequestHandler$DelayedRequest.call(ERXDelayedRequestHandler.java:66)
>   at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
>   at java.util.concurrent.FutureTask.run(FutureTask.java:138)
>   at 
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>   at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>   at java.lang.Thread.run(Thread.java:680)
> Caused by: java.lang.NoSuchMethodException: Class java.lang.String does not 
> implement method sortAscending
>   at 
> com.webobjects.foundation.NSSelector.methodOnClass(NSSelector.java:274)
>   at com.webobjects.foundation.NSSelector.invoke(NSSelector.java:358)
>   at com.webobjects.foundation.NSSelector.invoke(NSSelector.java:409)
>   at 
> com.webobjects.eocontrol.EOSortOrdering$ComparisonSupport._compareWithArbitrarySelector(EOSortOrdering.java:551)
>   ... 30 more
> ___
> 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/webobj

Re: Scala and WebObjects

2010-11-11 Thread Marius Soutier
Scala is not only for concurrency, it's simply a better language than Java 
(IMHO). I'm still not 100% convinced of Actors, and java.util.concurrent is 
also very good.

Ok now I have to ask it - if you don't use EOF, why use WebObjects at all? Does 
D2W work seamlessly with Squeryl? Do you have an example project for that?

- Marius

On 10.11.2010, at 23:41, Ravi Mendis wrote:

> Hi Marius,
> 
> As mentioned in the wiki, i don't see much advantage in just using Scala as a 
> replacement for Java (in WebObjects).
> At wowodc 10 i presented the case for Scala in concurrent WO applications.
> 
> Now i've another suggestion :)
> 
> One of the benefits of Scala is being able to use the new breed of SQL-like 
> DSL languages for data access. E.g: Squeryl.
> (It's by no means the only one out there).
> 
> I've just added a set of EO templates that can help migrate your EO model -> 
> Squeryl.
> See: http://wiki.objectstyle.org/confluence/display/WO/WebObjects+and+Squeryl
> 
> FYI: the templates aren't quite finished yet: i've only implemented features 
> i'm using for my next project...
> 
> Thanks,
> Ravi
> 
> On 11/11/2010, at 7:09 AM, Marius Soutier wrote:
> 
>> I've spent the day with Scala and D2W, after increasing Eclipse's memory to 
>> 1 GB it worked ok. I've made a small adjustment to your EO templates so the 
>> statics are defined in a trait rather than an object, e.g.
>> 
>> trait EntityNameStatics {
>>  val ENTITY_NAME = "EntityName"
>>  
>>   object Keys {
>>  // Attributes
>>  // Relationships
>>  }
>> }
>> 
>> Now the companion objects can both inherit the statics from the trait, like 
>> this:
>> 
>> object base.EntityName extends EntityNameStatics
>> 
>> object EntityName extends EntityNameStatics
>> 
>> 
>> 
>> On 10.11.2010, at 12:14, Ravi Mendis wrote:
>> 
>>> The scala ide for Eclipse 3.5 is much improved. Yes, it still might be a 
>>> little slow, but it's tolerable...if only to be able to use the wonderful 
>>> Scala tools and libraries that have started to emerge. E.g: Squeryl, 
>>> ScalaTest, Specs, etc.
>>> 
>>> You'll have to ask Pascal about the WOWODC 10 screencasts...
>>> 
>>> On Nov 10, 2010, at 7:25 PM, Marius Soutier wrote:
>>> 
>>>> Hello,
>>>> 
>>>> I've been eagerly following your progress with Scala and WebObjects. I'd 
>>>> really love to move to Scala in my company, the sooner the better. However 
>>>> my biggest concern is the Eclipse plug-in, it's so slow and buggy (on a 
>>>> Mac at least). Do you have any suggestions for that?
>>>> 
>>>> Do you have an idea when your screencast will be released?
>>>> 
>>>> 
>>>> Regards,
>>>> - Marius
>>>> 
>>>> 
>>> 
>> 
>> 
> 


 ___
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: Strange random error with my unit tests

2010-08-09 Thread Marius Soutier
I already do via:
System.setProperty("NSProjectBundleEnabled", "true");

On 09.08.2010, at 15:12, Mike Schrag wrote:

> If you're running with the latest wonder, true including 
> -DNSProjectBundleEnabled=true in your vmargs
> 
> Sent from my iPhone
> 
> On Aug 9, 2010, at 8:31 AM, Marius Soutier  
> wrote:
> 
>> Yes I do that (I use initEOF though), otherwise I couldn't test any EOs.
>> 
>> On 09.08.2010, at 11:23, Denis Frolov wrote:
>> 
>>> I think this can happen if you are not initializing your app before
>>> running test. If you are using Wonder, you should have something like:
>>> 
>>>   @BeforeClass
>>>   public static void init() {
>>>   ERXExtensions.initApp(Application.class, new String[0]);
>>>   }
>>> 
>>> in your test class.
>>> 
>>> - Denis
>>> 
>>> On Mon, Aug 9, 2010 at 1:05 PM, Marius Soutier
>>>  wrote:
>>>> Hello,
>>>> 
>>>> time and time again I run into this weird error when running my unit tests:
>>>> 
>>>> com.webobjects.foundation.NSForwardException 
>>>> [java.lang.reflect.InvocationTargetException] 
>>>> null:java.lang.reflect.InvocationTargetException
>>>>  at 
>>>> com.webobjects.foundation._NSUtilities._explainInstantiationException(_NSUtilities.java:626)
>>>>  at 
>>>> com.webobjects.foundation._NSUtilities.instantiateObjectWithConstructor(_NSUtilities.java:665)
>>>>  at 
>>>> com.webobjects.eoaccess.EOEntityClassDescription.createInstanceWithEditingContext(EOEntityClassDescription.java:242)
>>>>  at 
>>>> com.webobjects.eoaccess.EOUtilities.createAndInsertInstance(EOUtilities.java:861)
>>>>  at 
>>>> net.starhealthcare.sffoundation.model.base._SFPatient.createSFPatient(_SFPatient.java:578)
>>>>  at 
>>>> net.starhealthcare.sffoundation.test.SFModelTestCase.initDemoPatient(SFModelTestCase.java:88)
>>>>  at 
>>>> net.starhealthcare.sffoundation.test.SFModelTestCase.initTestCase(SFModelTestCase.java:60)
>>>>  ...
>>>> Caused by: java.lang.reflect.InvocationTargetException
>>>>  at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native 
>>>> Method)
>>>>  at 
>>>> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
>>>>  at 
>>>> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
>>>>  at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
>>>>  at 
>>>> com.webobjects.foundation._NSUtilities.instantiateObjectWithConstructor(_NSUtilities.java:659)
>>>>  ... 20 more
>>>> Caused by: java.lang.NullPointerException
>>>>  at 
>>>> com.webobjects.eoaccess.EOModel.createPrototypeCache(EOModel.java:631)
>>>>  at 
>>>> com.webobjects.eoaccess.EOModel.prototypeAttributeNamed(EOModel.java:699)
>>>>  at 
>>>> com.webobjects.eoaccess.ERXModel.prototypeAttributeNamed(ERXModel.java:315)
>>>>  at com.webobjects.eoaccess.EOAttribute.(EOAttribute.java:998)
>>>>  at com.webobjects.eoaccess.EOEntity.attributes(EOEntity.java:816)
>>>>  at com.webobjects.eoaccess.EOEntity.attributeNamed(EOEntity.java:789)
>>>>  at 
>>>> com.webobjects.eoaccess.EOEntity.classProperties(EOEntity.java:1098)
>>>>  at 
>>>> com.webobjects.eoaccess.EOEntity._propertyDictionaryInitializer(EOEntity.java:3321)
>>>>  at 
>>>> com.webobjects.eoaccess.EOEntity._newDictionaryForProperties(EOEntity.java:3667)
>>>>  at 
>>>> com.webobjects.eoaccess.EOEntityClassDescription._newDictionaryForProperties(EOEntityClassDescription.java:88)
>>>>  at 
>>>> com.webobjects.eocontrol.EOGenericRecord.__setClassDescription(EOGenericRecord.java:111)
>>>>  at 
>>>> com.webobjects.eocontrol.EOGenericRecord.__setClassDescription(EOGenericRecord.java:100)
>>>>  at 
>>>> com.webobjects.eocontrol.EOGenericRecord.(EOGenericRecord.java:73)
>>>>  at er.extensions.eof.ERXGenericRecord.(ERXGenericRecord.java:98)
>>>>  at 
>>>> net.starhealthcare.sffoundation.model.SFGenericRecord.(SFGenericRecord.java:16)
>>>>  at 
>>>> net.starhealthcare.sffou

Re: Strange random error with my unit tests

2010-08-09 Thread Marius Soutier
Yes I do that (I use initEOF though), otherwise I couldn't test any EOs.

On 09.08.2010, at 11:23, Denis Frolov wrote:

> I think this can happen if you are not initializing your app before
> running test. If you are using Wonder, you should have something like:
> 
>   @BeforeClass
>   public static void init() {
>   ERXExtensions.initApp(Application.class, new String[0]);
>   }
> 
> in your test class.
> 
> - Denis
> 
> On Mon, Aug 9, 2010 at 1:05 PM, Marius Soutier
>  wrote:
>> Hello,
>> 
>> time and time again I run into this weird error when running my unit tests:
>> 
>> com.webobjects.foundation.NSForwardException 
>> [java.lang.reflect.InvocationTargetException] 
>> null:java.lang.reflect.InvocationTargetException
>>at 
>> com.webobjects.foundation._NSUtilities._explainInstantiationException(_NSUtilities.java:626)
>>at 
>> com.webobjects.foundation._NSUtilities.instantiateObjectWithConstructor(_NSUtilities.java:665)
>>at 
>> com.webobjects.eoaccess.EOEntityClassDescription.createInstanceWithEditingContext(EOEntityClassDescription.java:242)
>>at 
>> com.webobjects.eoaccess.EOUtilities.createAndInsertInstance(EOUtilities.java:861)
>>at 
>> net.starhealthcare.sffoundation.model.base._SFPatient.createSFPatient(_SFPatient.java:578)
>>at 
>> net.starhealthcare.sffoundation.test.SFModelTestCase.initDemoPatient(SFModelTestCase.java:88)
>>at 
>> net.starhealthcare.sffoundation.test.SFModelTestCase.initTestCase(SFModelTestCase.java:60)
>>...
>> Caused by: java.lang.reflect.InvocationTargetException
>>at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native 
>> Method)
>>at 
>> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
>>at 
>> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
>>at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
>>at 
>> com.webobjects.foundation._NSUtilities.instantiateObjectWithConstructor(_NSUtilities.java:659)
>>... 20 more
>> Caused by: java.lang.NullPointerException
>>at 
>> com.webobjects.eoaccess.EOModel.createPrototypeCache(EOModel.java:631)
>>at 
>> com.webobjects.eoaccess.EOModel.prototypeAttributeNamed(EOModel.java:699)
>>at 
>> com.webobjects.eoaccess.ERXModel.prototypeAttributeNamed(ERXModel.java:315)
>>at com.webobjects.eoaccess.EOAttribute.(EOAttribute.java:998)
>>at com.webobjects.eoaccess.EOEntity.attributes(EOEntity.java:816)
>>at com.webobjects.eoaccess.EOEntity.attributeNamed(EOEntity.java:789)
>>at 
>> com.webobjects.eoaccess.EOEntity.classProperties(EOEntity.java:1098)
>>at 
>> com.webobjects.eoaccess.EOEntity._propertyDictionaryInitializer(EOEntity.java:3321)
>>at 
>> com.webobjects.eoaccess.EOEntity._newDictionaryForProperties(EOEntity.java:3667)
>>at 
>> com.webobjects.eoaccess.EOEntityClassDescription._newDictionaryForProperties(EOEntityClassDescription.java:88)
>>at 
>> com.webobjects.eocontrol.EOGenericRecord.__setClassDescription(EOGenericRecord.java:111)
>>at 
>> com.webobjects.eocontrol.EOGenericRecord.__setClassDescription(EOGenericRecord.java:100)
>>at 
>> com.webobjects.eocontrol.EOGenericRecord.(EOGenericRecord.java:73)
>>at er.extensions.eof.ERXGenericRecord.(ERXGenericRecord.java:98)
>>at 
>> net.starhealthcare.sffoundation.model.SFGenericRecord.(SFGenericRecord.java:16)
>>at 
>> net.starhealthcare.sffoundation.model.base._SFActor.(_SFActor.java:15)
>>at 
>> net.starhealthcare.sffoundation.model.SFActor.(SFActor.java:18)
>>at 
>> net.starhealthcare.sffoundation.model.base._SFPerson.(_SFPerson.java:15)
>>at 
>> net.starhealthcare.sffoundation.model.SFPerson.(SFPerson.java:12)
>>at 
>> net.starhealthcare.sffoundation.model.base._SFExternalPerson.(_SFExternalPerson.java:15)
>>at 
>> net.starhealthcare.sffoundation.model.SFExternalPerson.(SFExternalPerson.java:14)
>>at 
>> net.starhealthcare.sffoundation.model.base._SFPatient.(_SFPatient.java:15)
>>at 
>> net.starhealthcare.sffoundation.model.SFPatient.(SFPatient.java:49)
>>... 25 more
>> 
>> This happens before any of the tests actually run, in a static @BeforeClass 
>> init() method. I'm using H2 in in-memory mode as a db. Any idea what c

Strange random error with my unit tests

2010-08-09 Thread Marius Soutier
Hello,

time and time again I run into this weird error when running my unit tests:

com.webobjects.foundation.NSForwardException 
[java.lang.reflect.InvocationTargetException] 
null:java.lang.reflect.InvocationTargetException
at 
com.webobjects.foundation._NSUtilities._explainInstantiationException(_NSUtilities.java:626)
at 
com.webobjects.foundation._NSUtilities.instantiateObjectWithConstructor(_NSUtilities.java:665)
at 
com.webobjects.eoaccess.EOEntityClassDescription.createInstanceWithEditingContext(EOEntityClassDescription.java:242)
at 
com.webobjects.eoaccess.EOUtilities.createAndInsertInstance(EOUtilities.java:861)
at 
net.starhealthcare.sffoundation.model.base._SFPatient.createSFPatient(_SFPatient.java:578)
at 
net.starhealthcare.sffoundation.test.SFModelTestCase.initDemoPatient(SFModelTestCase.java:88)
at 
net.starhealthcare.sffoundation.test.SFModelTestCase.initTestCase(SFModelTestCase.java:60)
...
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at 
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at 
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at 
com.webobjects.foundation._NSUtilities.instantiateObjectWithConstructor(_NSUtilities.java:659)
... 20 more
Caused by: java.lang.NullPointerException
at 
com.webobjects.eoaccess.EOModel.createPrototypeCache(EOModel.java:631)
at 
com.webobjects.eoaccess.EOModel.prototypeAttributeNamed(EOModel.java:699)
at 
com.webobjects.eoaccess.ERXModel.prototypeAttributeNamed(ERXModel.java:315)
at com.webobjects.eoaccess.EOAttribute.(EOAttribute.java:998)
at com.webobjects.eoaccess.EOEntity.attributes(EOEntity.java:816)
at com.webobjects.eoaccess.EOEntity.attributeNamed(EOEntity.java:789)
at com.webobjects.eoaccess.EOEntity.classProperties(EOEntity.java:1098)
at 
com.webobjects.eoaccess.EOEntity._propertyDictionaryInitializer(EOEntity.java:3321)
at 
com.webobjects.eoaccess.EOEntity._newDictionaryForProperties(EOEntity.java:3667)
at 
com.webobjects.eoaccess.EOEntityClassDescription._newDictionaryForProperties(EOEntityClassDescription.java:88)
at 
com.webobjects.eocontrol.EOGenericRecord.__setClassDescription(EOGenericRecord.java:111)
at 
com.webobjects.eocontrol.EOGenericRecord.__setClassDescription(EOGenericRecord.java:100)
at 
com.webobjects.eocontrol.EOGenericRecord.(EOGenericRecord.java:73)
at er.extensions.eof.ERXGenericRecord.(ERXGenericRecord.java:98)
at 
net.starhealthcare.sffoundation.model.SFGenericRecord.(SFGenericRecord.java:16)
at 
net.starhealthcare.sffoundation.model.base._SFActor.(_SFActor.java:15)
at net.starhealthcare.sffoundation.model.SFActor.(SFActor.java:18)
at 
net.starhealthcare.sffoundation.model.base._SFPerson.(_SFPerson.java:15)
at 
net.starhealthcare.sffoundation.model.SFPerson.(SFPerson.java:12)
at 
net.starhealthcare.sffoundation.model.base._SFExternalPerson.(_SFExternalPerson.java:15)
at 
net.starhealthcare.sffoundation.model.SFExternalPerson.(SFExternalPerson.java:14)
at 
net.starhealthcare.sffoundation.model.base._SFPatient.(_SFPatient.java:15)
at 
net.starhealthcare.sffoundation.model.SFPatient.(SFPatient.java:49)
... 25 more

This happens before any of the tests actually run, in a static @BeforeClass 
init() method. I'm using H2 in in-memory mode as a db. Any idea what could be 
causing this?


Thanks,
- Marius


 ___
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: Suggestions for best deployment?

2010-08-04 Thread Marius Soutier
So are you using your EC2 instances 24/7? Do you use on-demand instances or 
reserved ones? EC2 seems ridiculously cheap as long as you start instances only 
when you need them, but for permanent usage I'm not sure yet.

- Marius

On 03.08.2010, at 14:28, Simon wrote:

> we run a db.m1.large instance and our db is around 20GB. previously it ran on 
> an intel xserve with 8GB of Ram. performance wise db.m1.large is around where 
> we were before, but we've not been scientific about this because we didn't 
> have any performance issues before, and we don't have any now. we didn't move 
> to RDS for performance.
> 
> however, when staging the move we initially ran a db.m1.small instance and 
> that was nowhere near powerful enough. when we boot copies of production for 
> testing purposes we use db.m1.small, but we wouldn't use that in production.
> 
> the real beauty of RDS with regard to performance is that is its literally a 
> couple of clicks to upgrade. how long do you think it will take you to 
> transition your DB to that a linux raid server ? we could double our compute 
> power and ram in literally 3 clicks and a couple of minutes - and because we 
> run with multi-avail zone it would automatically fail over to the slave 
> whilst the upgrade took place.
> 
> we don't use ssl. traffic is limited to our ec instances, and yes sensitive 
> data is encrypted in the db anyway. we've just flown through PCIDSS 
> compliance without a glitch.
> 
> regarding multi-avail: my understanding is that they have made limited 
> modifications to the 5.1 code base to support running mysql on a big scale in 
> the cloud. i don't know if that includes fundamental changes to the 
> master/slave mechanics, but the way multi-avail works "feels" like it's just 
> plain old replication, but wrapped in some fancy automation.
> 
> yeah, the docs do mention latency, but we've not noticed anything at all.
> 
> the biggest mistake we made was attempting to run apps outside ec2 pointing 
> at RDS. the latency in that set-up killed our apps. ymmv.
> 
> simon
> 
> 
> 
> On 2 August 2010 21:02, Kieran Kelleher  wrote:
> Sounds great Simon.
> 
> I have a database of about 35GB of data running on an 8GB PowerPC G5 today in 
> one of my active projects and we have preliminary plans under way to upgrade 
> our DB server to a 32GB Linux  RAID unit. What is the biggest RDS memory size 
> instance that you have used, and what is the perception of performance gains, 
> if any, over traditional self or colo hosting?
> 
> I notice they support SSL connections also to MySQL. Do you use SSL between 
> the EC2 app instance and the RDS instance - or is that overkill considering 
> that I have sensitive data (credit card numbers, etc) encrypted in the 
> database fields anyway? If you do use SSL connections between app and db, 
> have you noticed much latency?
> 
> You said you have availed of the different zone replication/failover feature 
> - from reading the FAQs, it appears that this is different to traditional 
> master-slave replication - are they executing the SQL in parallel on both the 
> master and failover RDS instances to give true mirroring, or am I reading 
> this wrong? Have you noticed latency impact due to this configuration (the 
> online info suggests that there is some latency)?
> 
> Regards, Kieran
> 
> On Aug 2, 2010, at 1:38 PM, Simon wrote:
> 
>> How does session management work with the elastic load balancer? For example 
>> if you have 3 independent EC2 instances all running the same app?
>> 
>> if you are not using https then amazon provide a couple of cookie-based 
>> mechanisms for session stickiness. if you are using https then you can use 
>> the elb to send initial requests to one of your instances, then the user 
>> communicates with that specific instance directly. there is no 
>> ssl-termination available with elb, but the amazon lists suggest this is 
>> coming. once they have this ssl load balancing will be a lot more elegant.
>>  
>> Also, do you completely trust RDS to make sure your data is never lost? Is 
>> there any need for you to have a physical server replicating from RDS? Is 
>> there any risk that one day, amazon loses your database and says "Sorry, but 
>> we assume you have your own backup"?
>> 
>> in short, yes, i completely trust it. we've been running it in production 
>> for 9 months now without a single glitch. we use their multi-avail support 
>> and we've done test failovers which happen flawlessly in minutes. how long 
>> would it take you to (a) make a decision to fail over your master to a slave 
>> and (b) physically carry out the failover and (c) physically restore the 
>> master once things are sorted out ? the automation here alone makes it a 
>> much more powerful solution than running it ourselves.
>> 
>> and how often do you test restoring from your backups ? officially we used 
>> to do it once a month, but it was always a real drag... now we routinely 
>> restore databases - som

Overriding components - bug or feature?

2010-04-21 Thread Marius Soutier
Hi there!

I've just experienced a strange issue in WebObject 5.4. Our application uses 
several internal frameworks to display certain areas of the application. All 
frameworks are always included and only a property defines if the area should 
be displayed or not.

A colleague created a new framework which was a customer-specific version of an 
existing one. So he went ahead and copied the old components to the new 
framework and made sure the component classes were in a different package than 
the original ones. So far, no problem, he even enabled both frameworks side by 
side, everything working fine.

However, when we deployed it on the server, the framework that came first on 
the classpath was used over the other one - the Java classes were loaded 
correctly, only the WODs were wrong. I could reproduce this behavior on my 
machine, but not on my colleague's. Turns out he is still on WO 5.4.2, while 
I'm on 5.4.3.

Is this behavior known, intended? Is there a fix except renaming the components?


Thanks,
- Marius
 ___
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: WebObjects testing techniques and tools

2010-01-18 Thread Marius Soutier
It was indeed helpful (and of course I did read everything in the wiki related 
to unit testing), it was just that last bit of info that Chuck gave me that was 
missing. And the fact that there is an ERXTest application seemed to prove that 
you need an external app to test WO/WOnder frameworks.

I have to admit though, I find the page 
http://wiki.objectstyle.org/confluence/display/WO/Testing-JUnit+and+TestNG a 
little bit lacking, especially in terms of framework testing. The line that 
solved my problem now is also mentioned 
(WOApplication.primeApplication(NSBundle.mainBundle().bundlePath(), null, 
"example.com.app.Application");), but I didn't try it because it says "//(No 
Wonder)", but I do use Wonder. Then I don't understand the "Minor configuration 
in eclipse" part, what exactly is it good for? My unit tests work without that 
configuration, and when I tried it, it didn't seem to change anything.

Thanks for your support,
- Marius

On 18.01.2010, at 23:00, Ray Kiddy wrote:

> 
> On Jan 18, 2010, at 8:41 AM, Jeff Dunnett wrote:
> 
>> Hi Folks,
>> 
>> I am looking at investigating some more sophisticated testing tools and 
>> techniques.   I was wondering what tools and techniques my fellow WebObjects 
>> developers use (aside from JUnit)?  Do you know if any tools or techniques 
>> to check browser issues and configurations (without having to have umpteen 
>> different browsers)?  For instance checking different users agent string etc?
>> 
>> I am just looking for ways to improve testing of my WebObjects applications 
>> through more sophisticated methods/tools.
>> 
>> Regards,
>> Jeff
>> 
> 
> We are obviously not doing a good job with our wiki documentation. I keep 
> hoping people will realize it can be relevant. Yet, here we are, 4 replies in 
> to this thread, and nobody mentions the link at the front of the Wonder wiki:
> 
>   http://wiki.objectstyle.org/confluence/display/WONDER/Testing
> 
> If information pointed to from this page is not helpful, please let us know, 
> so that we can improve what is there.
> 
> thanx - ray
> ___
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/webobjects-dev/m.soutier%40starhealthcare.info
> 
> This email sent to m.sout...@starhealthcare.info


 ___
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: WebObjects testing techniques and tools

2010-01-18 Thread Marius Soutier
Thanks a lot, that was exactly the information I needed. My test case app 
inherited from ERXApplication and was complaining about the missing call to 
ERXApplication.main().


Cheers,
- Marius


On 18.01.2010, at 21:41, Chuck Hill wrote:

> FWApplication is a sub-class of WOApplication.  If you don't need any thing 
> special, you can probably directly use WOApplication.


 ___
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: WebObjects testing techniques and tools

2010-01-18 Thread Marius Soutier
Hey there,

I'd like to hijack this thread to add my own question about unit testing - how 
do you test your frameworks? All the ERX-init methods require you to run your 
tests from a WOApplication. I've seen that the Wonder tests are run from a 
separate application, too (ERXTest). I'd like to run my tests directly inside 
the frameworks but still be able to use the whole WO stuff (the ResourceManager 
comes to mind).


Thanks,
- Marius


On 18.01.2010, at 19:14, Chuck Hill wrote:

> 
> On Jan 18, 2010, at 8:41 AM, Jeff Dunnett wrote:
> 
>> Hi Folks,
>> 
>> I am looking at investigating some more sophisticated testing tools and 
>> techniques.   I was wondering what tools and techniques my fellow WebObjects 
>> developers use (aside from JUnit)?  Do you know if any tools or techniques 
>> to check browser issues and configurations (without having to have umpteen 
>> different browsers)?  For instance checking different users agent string etc?
> 
> I use Selenium for functional testing and JMeter for load testing.  Neither 
> will  detect browser rendering issues if that is what you are after.  Unless 
> you are doing something funky, the user agent string should not matter much.
> 
> Chuck
> 
>> 
>> I am just looking for ways to improve testing of my WebObjects applications 
>> through more sophisticated methods/tools.
>> 
>> Regards,
>> Jeff
>> 
>> ___
>> 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/m.soutier%40starhealthcare.info
> 
> This email sent to m.sout...@starhealthcare.info


 ___
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: Can't create new project.

2009-12-21 Thread Marius Soutier
Did you rename the Eclipse folder? I had a problem with WOLips when Eclipse's 
folder name had spaces in it.

On 21.12.2009, at 04:25, James Cicenia wrote:

> Strange -
> 
> I just did a fresh 3.4.2 Classic Carbon install. I am running latest Snow 
> Leopard variant.
> Got WOLips from the URL.. standard install.
> 
> Still can't create a new project?
> 
> thanks
> James
> 
> On Dec 20, 2009, at 8:26 PM, Kieran Kelleher wrote:
> 
>> James, if you want path of least resistance, get Eclipse 3.4.2 as shown here:
>> http://www.eclipse.org/downloads/packages/release/ganymede/sr2
>> 
>> Works perfect on Snow Leopard.
>> 
>> 
>> 
>> 
>> 
>> On Dec 20, 2009, at 10:04 AM, James Cicenia wrote:
>> 
>>> Hmm -
>>> 
>>> I went to: http://eclipse.org/downloads/
>>> 
>>> There are a dozen versions! I saw at the bottom with the familiar icon 
>>> 3.5.1.
>>> Is this ok? Should I get Carbon or Cocoa?
>>> 
>>> Thanks
>>> James
>>> 
>>> 
>>> On Dec 20, 2009, at 7:18 AM, Ramsey Lee Gurley wrote:
>>> 
 Happened to me once before.  
 
 http://issues.objectstyle.org/jira/browse/WOL-994
 
 Something in the upgrade process borked my setup. Reinstall starting with 
 a clean copy of eclipse
 
 Ramsey
 
 On Dec 19, 2009, at 8:21 PM, James Cicenia wrote:
 
> Hello -
> 
> I haven't created a new project in a while anyway, I just updated 
> Eclipse to 3.4.2 and a nightly wolips.
> I tested it on one of my projects and it seems ok.
> 
> Now I went to create a new project.. and nothing. no dialog.. nothing.
> 
> thoughts?
> 
> James Cicenia 
> 
> ___
> 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/rgurley%40mac.com
> 
> This email sent to rgur...@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/kieran_lists%40mac.com
>>> 
>>> This email sent to kieran_li...@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/m.soutier%40starhealthcare.info
> 
> This email sent to m.sout...@starhealthcare.info


 ___
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: Running WO with JDK 1.6

2009-09-18 Thread Marius Soutier
Oops yes, the JAVA_OPTS is used by some app servers and also Groovy  
(which I've used quite a lot lately).



On 18.09.2009, at 20:05, Robert Tupelo-Schneck wrote:


I think you mean JAVA_TOOL_OPTIONS?

Robert



___
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: Running WO with JDK 1.6

2009-09-18 Thread Marius Soutier
You can also define global JVM parameters with the JAVA_OPTS variable,  
e.g.


setenv JAVA_OPTS -Dfile.encoding=UTF-8

- Marius


On 18.09.2009, at 18:01, Galen Rhodes wrote:


Here's a little helpful hint I recently figured out.

I've seen a few people on here ask how they can run their WO  
application on Leopard Server with JDK 1.6 instead of the default  
JDK 1.5.  As most people have clearly found out, setting JDK 1.6 as  
the default using the Java Preferences applet does nothing for WO  
applications launched by wotaskd (which is typically launched by  
launchd).  The reason is that the Java Preferences applet only  
adjusts the default for the current user who is running the applet.   
Specifically it modifies the file ~/Library/Preferences/ 
com.apple.java.JavaPreferences.plist.  Unless you happen to be  
logged in as the appserver user then this is going to do no good.


BUT, the java launchers (/usr/bin/java for example) will honor the  
JAVA_HOME environment variable!  The trick is setting the  
environment variable it in the right place for launchd.


The easiest way is to set the environment variable for launchd as a  
whole.  All you need to do is create a file called /etc/launchd.conf  
and add the line:


	setenv JAVA_HOME /System/Library/Frameworks/JavaVM.framework/ 
Versions/1.6/Home


Then when you restart the server all Java applications launched by  
launchd (such as wotaskd and JavaMonitor) will be launched with JDK  
1.6.


If you want to do it just for WebObjects applications launched by  
wotaskd then simply modify the launchd script that launches wotask  
and add the environment variable there.  This page, http://developer.apple.com/mac/library/documentation/Darwin/Reference/ManPages/man5/launchd.plist.5.html 
, will tell you how.


--
Galen Rhodes
grho...@thissmallworld.com
http://www.facebook.com/Galen1967


___
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/m.soutier%40starhealthcare.info

This email sent to m.sout...@starhealthcare.info


 ___
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