Re: WOWorkerThread deadlocks

2012-09-11 Thread Maik Musall
Hi Chuck, Am 10.09.2012 um 22:30 schrieb Chuck Hill ch...@global-village.net: The state the app was in when I took that jstack was that no login was possible and user's requests would not return, ultimately running into no instance responses after the timeout elapsed. Grep the app logs

Exception : Cannot refuse new sessions when in development mode

2012-09-11 Thread Raymond NANEON
Hi List,I have a little problem that apppears each day at 3AM when my app instance restart. I have this exception : Une exception est survenue ... Elle provient de la machine qui a l'ip *inconnue* La personne qui a provoqué l'erreur est : ] sessionId = xkrtsg4hOzVBiMA2R8uk2M Trace de

Re: WOWorkerThread deadlocks

2012-09-11 Thread Maik Musall
Hi Alexis, Am 10.09.2012 um 23:19 schrieb Alexis Tual alexis.t...@gmail.com: Note that I recently switched to Wonder for this project (using all the Wonder base classes), and since I did, this problem occurred more frequently. It's now almost once a day, and was about once a week before. I

Re: WOWorkerThread deadlocks

2012-09-11 Thread Maik Musall
Am 11.09.2012 um 09:10 schrieb Maik Musall m...@selbstdenker.ag: Hi Alexis, Am 10.09.2012 um 23:19 schrieb Alexis Tual alexis.t...@gmail.com: Note that I recently switched to Wonder for this project (using all the Wonder base classes), and since I did, this problem occurred more

Rewrite WO app URL

2012-09-11 Thread Raymond NANEON
Hi List,I want to rewrite my new app url http://myserver/cgi-bin/WebObjects/myapp to http::/myserver/myapp. Which parameter can I use in properties file to change it?Thanks for your help.Envoyé depuis iCloud ___ Do not post admin requests to the list.

Re: Rewrite WO app URL

2012-09-11 Thread Adalbert Winkler
Try it with WOAdaptorURL On 11.09.12 11:09, Raymond NANEON wrote: Hi List, I want to rewrite my new app url *http://myserver/cgi-bin/WebObjects/myapp* to *http::/myserver/myapp*. Which parameter can I use in properties file to change it? Thanks for your help. Envoyé depuis iCloud

Re: Rewrite WO app URL

2012-09-11 Thread Pascal Robert
http://fr.slideshare.net/wocommunity/errest (page 32) http://fr.slideshare.net/wocommunity/hidden-treasures-in-project-wonder (page 13) http://wiki.wocommunity.org/display/documentation/Configuring+Apache+for+WebObjects Hi List, I want to rewrite my new app url

Re: Exception : Cannot refuse new sessions when in development mode

2012-09-11 Thread Pascal Robert
Le 2012-09-11 à 03:06, Raymond NANEON rnan...@me.com a écrit : Hi List, I have a little problem that apppears each day at 3AM when my app instance restart. I have this exception : Une exception est survenue ... Elle provient de la machine qui a l'ip *inconnue* La personne qui a

Rép : Re: Rewrite WO app URL

2012-09-11 Thread Raymond NANEON
Thanks to Pascal and Adalbert for them reactivity. I go to see wocommunity slide to fix my problem.RayEnvoyé depuis iCloudLe 11 sep 2012 à 02:20, Pascal Robert prob...@macti.ca a écrit :http://fr.slideshare.net/wocommunity/errest (page 32)

Rép : Re: Exception : Cannot refuse new sessions when in development mode

2012-09-11 Thread Raymond NANEON
Hi Pascal,WODirectConnectEnabled and development mode is not the same… Are you setting er.extensions.ERXApplication.developmentMode to true by any chance?== I don't have er.extensions.ERXApplication.developmentMode in my properties fileMake sure that in the scheduling, that "Graceful Scheduling"

Re: WOWorkerThread deadlocks

2012-09-11 Thread Alexis Tual
Use manual locking for your background threads, your snippet is right, be sure your localEC has autolock set to false. Check out Kerian presentation at WOWODC 2011 : http://www.wocommunity.org/podcasts/wowodc/2011/BackgroundTasks.mov and the examples :

Re: Project Wonder cookbook

2012-09-11 Thread Johann Werner
Hi Pascal, great idea! I will have a look at adding to it when I have some spare time (I know there should be some left this year, just have to remember where I put it ;) Am 10.09.2012 um 19:53 schrieb Pascal Robert prob...@macti.ca: Ok, so one of the objectives of WOCommunity for this year

Re: Trouble Shooting Mountain Lion

2012-09-11 Thread Markus Ruggiero
On 11.09.2012, at 06:09, Jeffrey Schmitz j...@netbrackets.com wrote: Am having this same problem myself after upgrading to mountain lion server: The requested URL /cgi-bin/WebObjects/netBrackets.woa was not found on this server. but I do have the ScriptAlias in my

Re: Community bounties

2012-09-11 Thread Markus Ruggiero
On 10.09.2012, at 18:37, Pascal Robert prob...@macti.ca wrote: Ok, like we said here: Ça va faire le niaisage! So we need people who can: - Make something like Golipse that will install not only Eclipse (current stable version, so 3.7 or 3.8 for now), but also WOLips, Rule Modeler,

Re: Project Wonder cookbook

2012-09-11 Thread Markus Ruggiero
On 10.09.2012, at 19:53, Pascal Robert prob...@macti.ca wrote: Ok, so one of the objectives of WOCommunity for this year is to write a Project Wonder Cookbook. If you ever bought a O'Reilly Cookbook, you know what I'm talking about. If not, those books have a really simple purpose: to

Rép : Re: Rewrite WO app URL

2012-09-11 Thread Raymond NANEON
Hi Pascal,I followed the wocommunity slide but It doesn't work :Application.java public String _rewriteURL(String url){ String processedURL = url; if(url != null _replaceApplicationPathPattern != null _replaceApplicationPathReplace != null){ processedURL =

Re: Rewrite WO app URL

2012-09-11 Thread Pascal Robert
Le 2012-09-11 à 07:52, Raymond NANEON rnan...@me.com a écrit : Hi Pascal, I followed the wocommunity slide but It doesn't work : Application.java public String _rewriteURL(String url){ String processedURL = url; if(url != null _replaceApplicationPathPattern != null

Rép : Re: Rewrite WO app URL

2012-09-11 Thread Raymond NANEON
Hi Pascal,I do all changes but nothing works for me. Do you load mod_rewrite.so in your apache conf?apache.conf : RewriteRule ^/Students(.*)$ /cgi-bin/WebObjects/Dossier-Etudiants.woa/wa$1 [PT,L]Properties

Re: Rewrite WO app URL

2012-09-11 Thread Pascal Robert
Le 2012-09-11 à 08:27, Raymond NANEON rnan...@me.com a écrit : Hi Pascal, I do all changes but nothing works for me. Do you load mod_rewrite.so in your apache conf? Well, yes or it will not work… And it have to be loaded before the WebObjects module. apache.conf : RewriteRule

Re: FYI - regex to list installed WO frameworks

2012-09-11 Thread Kieran Kelleher
Nice. Seems like the winner to me. Fastest and shortest command that functionally works on my machine. :) find /Library/Frameworks -name *.jar | perl -n -e '/(.+).framework\/Resources\/Java\/(\1).jar/ print $1.framework\n' On Sep 11, 2012, at 12:53 AM, Alexis Tual alexis.t...@gmail.com

Re: FYI - regex to list installed WO frameworks

2012-09-11 Thread Kieran Kelleher
Interesting that Q's one had a single .framework entry at the start of the results, which I thought was a mistake since it was different to the others, but it wasn't. I discovered there is a single .framework actually there in /Library/Frameworks - must be from some messed up ant build testing

Re: FYI - regex to list installed WO frameworks

2012-09-11 Thread Maik Musall
Hi, if the frameworks all are in the main directory, this is shorter :-) find /Library/Frameworks -path *framework/Resources/Java/*.jar | cut -d/ -f4 | sort -u Maik Am 11.09.2012 um 14:56 schrieb Kieran Kelleher kelleh...@gmail.com: Nice. Seems like the winner to me. Fastest and shortest

Re: FYI - regex to list installed WO frameworks

2012-09-11 Thread Kieran Kelleher
Clever one! That is the shortest so far :) On Sep 11, 2012, at 9:15 AM, Maik Musall m...@selbstdenker.ag wrote: Hi, if the frameworks all are in the main directory, this is shorter :-) find /Library/Frameworks -path *framework/Resources/Java/*.jar | cut -d/ -f4 | sort -u Maik Am

Re: Eclipse source of problems?

2012-09-11 Thread Ângelo Andrade Cirino
Hi Chuck, I understand that, but it seemed that the SQL generation code was interacting heavily with the frameworks in my _specific_ project, not only with WO's frameworks. What else would make it work in a project and present errors in other with the same model? Angelo Em 11/09/2012, às

Re: Eclipse source of problems?

2012-09-11 Thread Q
On 11/09/2012, at 11:39 PM, Ângelo Andrade Cirino aacir...@gmail.com wrote: Hi Chuck, I understand that, but it seemed that the SQL generation code was interacting heavily with the frameworks in my _specific_ project, not only with WO's frameworks. What else would make it work in a

Re: Eclipse source of problems?

2012-09-11 Thread Mike Schrag
You have models in your own projects and you have plugins in your own projects, all which can influence SQL generation. Imagine if you had a custom database plugin that changed how SQL was generated. That means that generating SQL has to respect the classpath configuration of your project.

Re: adding a component to a D2W page

2012-09-11 Thread Theodore Petrosky
Yea, I like your headerInstructionComponentName better. your comment about wrapping it in a conditional is interesting. if I understand, it would be like this: webobject name = InstructionComponentCondition webobject name = InstructionComponent/ /webobject InstructionComponent :

Re: adding a component to a D2W page

2012-09-11 Thread David LeBer
InstructionComponentCondition : WOConditional { condition = d2wContext.showHeaderInstructionComponent; } 0 : *true* = showHeaderInstructionComponent = false [com.webobjects.directtoweb.BooleanAssignment] 100 : pageConfiguration like 'Edit*Foo' = showHeaderInstructionComponent = true

Rép : Re: Rewrite WO app URL

2012-09-11 Thread Raymond NANEON
Hi Pascal,I tried all possibilities but nothing work :(apache.confLoadModule rewrite_module modules/mod_rewrite.soLoadModule WebObjects_module modules/mod_WebObjects.so...RewriteEngine OnRewriteRule ^/Students(.*)$ /cgi-bin/WebObjects/Dossier-Etudiants.woa/wa$1 [PT,L]httpd.confLoadModule

Re: FYI - regex to list installed WO frameworks

2012-09-11 Thread Bastian Triller
or use ls: $ ls -1 /Library/Frameworks/*.framework/Resources/Java/*.jar|cut -d/ -f4|sort -u Am Dienstag, den 11.09.2012, 09:30 -0400 schrieb Kieran Kelleher: Clever one! That is the shortest so far :) On Sep 11, 2012, at 9:15 AM, Maik Musall m...@selbstdenker.ag wrote: Hi, if the

Re: Rewrite WO app URL

2012-09-11 Thread Pascal Robert
Le 2012-09-11 à 10:56, Raymond NANEON rnan...@me.com a écrit : Hi Pascal, I tried all possibilities but nothing work :( apache.conf LoadModule rewrite_module modules/mod_rewrite.so LoadModule WebObjects_module modules/mod_WebObjects.so ... RewriteEngine On RewriteRule

Re: FYI - regex to list installed WO frameworks

2012-09-11 Thread Kieran Kelleher
The power of unix :) On Sep 11, 2012, at 11:01 AM, Bastian Triller bastian.tril...@gmail.com wrote: or use ls: $ ls -1 /Library/Frameworks/*.framework/Resources/Java/*.jar|cut -d/ -f4|sort -u Am Dienstag, den 11.09.2012, 09:30 -0400 schrieb Kieran Kelleher: Clever one! That is the

Re: Rewrite WO app URL

2012-09-11 Thread Adalbert Winkler
And if you use DirectConnect you can change you application url with the WOAdaptorURL Property. Example: .. public static void main(String argv[]) { ... if (System.getProperty(WOAdaptorURL) == null) System.setProperty(WOAdaptorURL, http://localhost/newname;); ...

Re: Rewrite WO app URL

2012-09-11 Thread Ted Archibald
On the apps I use I like clean URLs, I've been using alot of ERRest to help as well. For rewrite rules I use a more complicated rewrite so that I can write ERRest routes like server.com/AppName/Route/Whatever instead of server.com/AppName/ra/Route/Whatever: RewriteRule

Re: adding a component to a D2W page

2012-09-11 Thread Theodore Petrosky
wow, so by using d2wcontext.someMadeUpAccessKey; in the condition, it is available as a key to the ruleModeler. I kept trying to create a rule: pageConfiguration = 'ListAgenda' but it wouldn't work until I broke it apart into: task = 'list' and entity.name = 'Agenda' don't know why. Ted

Re: adding a component to a D2W page

2012-09-11 Thread David LeBer
I think of it the other way around: Once you assign a value to someMadeUpAccessKey in your rules, you can make use of it in your conditional. D -- David LeBer Codeferous Software On 2012-09-11, at 1:11 PM, Theodore Petrosky tedp...@yahoo.com wrote: wow, so by using

Re: adding a component to a D2W page

2012-09-11 Thread Theodore Petrosky
any idea why this was an issue: pageConfiguration = 'ListAgenda' wouldn't work until I broke it apart into: task = 'list' and entity.name = 'Agenda' when I tried to create a rule with the pageConfiguration vs. a task and entity? Ted --- On Tue, 9/11/12, David LeBer

Re: adding a component to a D2W page

2012-09-11 Thread David Holt
Do you have another entity with Agenda in the name? What exactly didn't work? On 2012-09-11, at 11:06 AM, Theodore Petrosky tedp...@yahoo.com wrote: any idea why this was an issue: pageConfiguration = 'ListAgenda' wouldn't work until I broke it apart into: task = 'list' and

Re: Rép : Re: Rewrite WO app URL

2012-09-11 Thread John Huss
On Tue, Sep 11, 2012 at 9:56 AM, Raymond NANEON rnan...@me.com wrote: Hi Pascal, I tried all possibilities but nothing work :( apache.conf LoadModule rewrite_module modules/mod_rewrite.so LoadModule WebObjects_module modules/mod_WebObjects.so ... RewriteEngine On RewriteRule

Re: Rewrite WO app URL

2012-09-11 Thread Tim Worman
Raymond, The port number in the URL you posted implies that your app is not running through apache. Once that is solved, this is what I am doing through apache mod_rewrite. Properties: #rewrite the app urls

Re: ERPDFGeneration with FOP and examples

2012-09-11 Thread Tim Worman
Just getting to check this out. Awesome stuff. Is it possible we could move Q's PDFIn60Seconds.mov to the community resources? It looks like it was hosted on his iDisk - which went the way of the dodo. :-) Tim UCLA GSEIS On Apr 2, 2012, at 1:27 PM, Q qdo...@gmail.com wrote: Nice work! On

Re: Rewrite WO app URL

2012-09-11 Thread Raymond NANEON
Hi list Thank you for your answers and I'll change my app setting step by step: - Try using WOAdaptorURL in JavaMonitor Properties - If not working, disable direct connect WODirectConnectEnabled = false - I retry if I run my application through apache, wotaskd … the url change or not. I'm not

Re: WOWorkerThread deadlocks

2012-09-11 Thread Chuck Hill
On 2012-09-10, at 11:15 PM, Maik Musall wrote: Hi Chuck, Am 10.09.2012 um 22:30 schrieb Chuck Hill ch...@global-village.net: The state the app was in when I took that jstack was that no login was possible and user's requests would not return, ultimately running into no instance

Re: ERPDFGeneration with FOP and examples

2012-09-11 Thread Q
I don't have a copy of it handy currently (it's archived... somewhere), but I'm more than happy for anyone who has a local copy to put it up on the WOCommunity site. On 12/09/2012, at 5:37 AM, Tim Worman li...@thetimmy.com wrote: Just getting to check this out. Awesome stuff. Is it

Re: Trouble Shooting Mountain Lion

2012-09-11 Thread Jeffrey Schmitz
Yes, but still no love. In the process it changed my document root to Library/Server/Web/Data/Sites/Default. Hate how it does that, is there any way to change that back? In the /etc/apache2/httpd.conf it says: DocumentRoot /Library/WebServer/Documents But that's not where apache is

Re: Trouble Shooting Mountain Lion

2012-09-11 Thread Tim Worman
My 2¢ - use macports or homebrew and install a custom apache. Stay away from Apple's. The biggest reason is what you just wrote in your last - restarting apache changed your settings. The built in apache is fine if you're using it for what Apple thinks their core customers will use it for - a