Re: Problem with pages saved in a variable
Andri, I don't what exactly you want do, but have a look on API Session : restorePageForConextID, savePage, savePageInPermanentCache. You can start to override this API and just log, to understand how WebObjects works with pages and contextIDs. HTH, Stephane Le 13 oct. 09 à 10:29, Andri vonAllmen a écrit : Dear List, in an Applications Session, a NSMutableDictionary object is used for caching pages. Everytime the pageWithName method is called, the dictionary is queried in order to determine if the requested page does already exist, if true the existing page is returned, else a new one is generated and stored in the dictionary. This is made in Application.java by overriding the pageWithName method: public WOComponent pageWithName(String aName, WOContext aContext) { Object result = null; if ( aContext.hasSession() ) result = ((NSMutableDictionary)((Session)aContext.session()).cachedPages ()).objectForKey(aName); if ( result == null ) { result = super.pageWithName(aName, aContext); if ( aContext.hasSession() ) if ( aName != null ) ((NSMutableDictionary)((Session)aContext.session()).cachedPages ()).setObjectForKey(result, aName); } return (WOComponent)result; } This works with one exception. Making changes on Enterprise Objects is not possible in every case. Saving changes works, if always the same object is changed but not if two different objects are changed (changing the first, saving the changes, then changing the second and saving the changes). But if making changes on a object, saving it, and then revert the changes (to the same state as before changing it the first time), making changes on other objects is possible. As mentioned in the WO API Reference, for pages being stored in a variable the ensureAwakeInContext method has to be called, but this has no effect. Same if refreshing the objects in the default editing context (refreshAllObjects, refaultAllObjects) which is used on all pages. Any suggestions or other hints would be appreciated. Regards Andri --- Disclaimer: - This email and contents is for use only by the intended recipient. If you are not the individual or entity to whom it is addressed, you are hereby formally notified that any use, copying or distribution of this email and attachments, in whole or in part, is strictly prohibited. If you have received this email in error, please notify the sender and delete the message and attachment(s) from your system. Any views, opinions or information, expressed or contained in this email, are those of the sender and not necessarily reflect those of CEDES. To help protect our environment, please avoid printing out this information unnecessarily. ___ 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/ stephane.guyot11%40wanadoo.fr This email sent to stephane.guyo...@wanadoo.fr IBCM : International Bank of Chatenay-Malabry http://www.kiva.org/ lender/stephane4127 - Click on Map View ___ 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: Build failed on Snow Leopard
Xcode 3.1 on Snow leopard ??? you should use 3.2 Amedeo On 14/ott/2009, at 04.58, Stavros Panidis wrote: Well, Snow Leopard clean install, then xcode 314, WebObjects 543, eclipse-sdk-4.4.2 and from there WOLips 3.4.5830. Everything else works fine (at the moment) except build. Stavros -- Message: 8 Date: Mon, 12 Oct 2009 22:08:39 -0700 From: Chuck Hill ch...@global-village.net Subject: Re: Build failed To: Stavros Panidis elma...@the.forthnet.gr Cc: webobjects-dev@lists.apple.com Message-ID: 6d6c406c-55a3-4870-9955-19a44068d...@global-village.net Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes On Oct 12, 2009, at 6:32 PM, Stavros Panidis wrote: Hi, trying to build for first time in Snow Leopard I get the following message BUILD FAILED /Users/elmanou/Documents/workspace/Medos/build.xml:28: Could not find /Users/elmanou/Library/wobuild.properties. are there any instructions on how to overcome this? Many thanks in advance wobuild.properties is obsolete. Which version of Eclipse are you using? Which version of WOLips? How did you create the build environment on Snow Leopard? 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/amedeomailing%40insigno.it This email sent to amedeomail...@insigno.it ___ 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
[SOLVED]Antw: Re: Problem with pages saved in a variable
Hi Stephane, The reason for not using the WO caching mechanism was, that I'm maintaining a application which has pageWithName methods ad infinitum and this method does always create a new instance of a page (please do correct me, if this is not true), which is not the behaviour I want it to have (I want it to check the cache first). Thank you for responding, Andri Stephane Guyot stephane.guyo...@wanadoo.fr schrieb am Mittwoch, 14. Oktober 2009 um 09:16 in Nachricht 6e311acc-81e0-40a4-8894-2d2c5a00f...@wanadoo.fr: Andri, I don't what exactly you want do, but have a look on API Session : restorePageForConextID, savePage, savePageInPermanentCache. You can start to override this API and just log, to understand how WebObjects works with pages and contextIDs. HTH, Stephane Le 13 oct. 09 à 10:29, Andri vonAllmen a écrit : Dear List, in an Applications Session, a NSMutableDictionary object is used for caching pages. Everytime the pageWithName method is called, the dictionary is queried in order to determine if the requested page does already exist, if true the existing page is returned, else a new one is generated and stored in the dictionary. This is made in Application.java by overriding the pageWithName method: public WOComponent pageWithName(String aName, WOContext aContext) { Object result = null; if ( aContext.hasSession() ) result = ((NSMutableDictionary)((Session)aContext.session()).cachedPages ()).objectForKey(aName); if ( result == null ) { result = super.pageWithName(aName, aContext); if ( aContext.hasSession() ) if ( aName != null ) ((NSMutableDictionary)((Session)aContext.session()).cachedPages ()).setObjectForKey(result, aName); } return (WOComponent)result; } This works with one exception. Making changes on Enterprise Objects is not possible in every case. Saving changes works, if always the same object is changed but not if two different objects are changed (changing the first, saving the changes, then changing the second and saving the changes). But if making changes on a object, saving it, and then revert the changes (to the same state as before changing it the first time), making changes on other objects is possible. As mentioned in the WO API Reference, for pages being stored in a variable the ensureAwakeInContext method has to be called, but this has no effect. Same if refreshing the objects in the default editing context (refreshAllObjects, refaultAllObjects) which is used on all pages. Any suggestions or other hints would be appreciated. Regards Andri --- Disclaimer: - This email and contents is for use only by the intended recipient. If you are not the individual or entity to whom it is addressed, you are hereby formally notified that any use, copying or distribution of this email and attachments, in whole or in part, is strictly prohibited. If you have received this email in error, please notify the sender and delete the message and attachment(s) from your system. Any views, opinions or information, expressed or contained in this email, are those of the sender and not necessarily reflect those of CEDES. To help protect our environment, please avoid printing out this information unnecessarily. ___ 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/ stephane.guyot11%40wanadoo.fr This email sent to stephane.guyo...@wanadoo.fr IBCM : International Bank of Chatenay-Malabry http://www.kiva.org/ lender/stephane4127 - Click on Map View --- Disclaimer: - This email and contents is for use only by the intended recipient. If you are not the individual or entity to whom it is addressed, you are hereby formally notified that any use, copying or distribution of this email and attachments, in whole or in part, is strictly prohibited. If you have received this email in error, please notify the sender and delete the message and attachment(s) from your system. Any views, opinions or information, expressed or contained in this email, are those of the sender and not necessarily reflect those of CEDES. To help protect our environment, please avoid printing out this information unnecessarily. ___ 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: Build failed on Snow Leopard
Stupid from my part. I installed xcode 3.2 but this did not solved the problem. Any suggestions? Many thanks in advance Stavros Message: 10 Date: Wed, 14 Oct 2009 09:49:15 +0200 From: Amedeo Mantica amedeomail...@insigno.it Subject: Re: Build failed on Snow Leopard To: Stavros Panidis elma...@the.forthnet.gr Cc: webobjects-dev@lists.apple.com Message-ID: 356757fd-3673-4691-a73c-7a03b6a4c...@insigno.it Content-Type: text/plain; charset=us-ascii Xcode 3.1 on Snow leopard ??? you should use 3.2 Amedeo On 14/ott/2009, at 04.58, Stavros Panidis wrote: Well, Snow Leopard clean install, then xcode 314, WebObjects 543, eclipse-sdk-4.4.2 and from there WOLips 3.4.5830. Everything else works fine (at the moment) except build. Stavros -- Message: 8 Date: Mon, 12 Oct 2009 22:08:39 -0700 From: Chuck Hill ch...@global-village.net Subject: Re: Build failed To: Stavros Panidis elma...@the.forthnet.gr Cc: webobjects-dev@lists.apple.com Message-ID: 6d6c406c-55a3-4870-9955-19a44068d...@global- village.net Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes On Oct 12, 2009, at 6:32 PM, Stavros Panidis wrote: Hi, trying to build for first time in Snow Leopard I get the following message BUILD FAILED /Users/elmanou/Documents/workspace/Medos/build.xml:28: Could not find /Users/elmanou/Library/wobuild.properties. are there any instructions on how to overcome this? Many thanks in advance wobuild.properties is obsolete. Which version of Eclipse are you using? Which version of WOLips? How did you create the build environment on Snow Leopard? 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/amedeomailing%40insigno.it This email sent to amedeomail...@insigno.it -- next part -- An HTML attachment was scrubbed... URL: http://lists.apple.com/pipermail/webobjects-dev/attachments/20091014/7f95c8aa/attachment.html -- ___ Webobjects-dev mailing list Webobjects-dev@lists.apple.com http://lists.apple.com/mailman/listinfo/webobjects-dev End of Webobjects-dev Digest, Vol 6, Issue 916 ** ___ 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 deployment with JBoss
Hi, well, you right I should have posted in the list my activity, but, really, we are coming from a crazy week, and this one sound very similar to the passed. Ok, answering your question: I'm looking for a way to LEAVE jboss and install WO on Linux, because I have too many problems with it and, of course, I have no time to solve all of them, but I will wrote out some note about my job for future help. I can give you my opinion about the pros and cons to use JBoss. *Pros*: - JBoss is standalone, and, after adding an user jboss in a group jboss, and config the run.sh with the path to you JRE, works without problems. - You can alter the link where deploy your app changing the name of the WAR package: for example I needed to obtain the url http://{myhost}/cgi-bin/WebObjects/{MyApp}.woa, but introducing a WAR file named {MyApp}.war I obtained http://{MyApp}/WebObjects/{MyApp}.woa. Then I changed the app name in cgi-bin.war then the path was correct. - You can easily add balacer in Apache for accessing to the resources in HTTP over port 80: add mod_proxy, mod_proxy_ftp (probably not needed), mod_proxy_http, mod_proxy_connect, mod_proxy_balancer to Apache2, and setup a virtual host with: Proxy balancer://your-app Order deny,allow Allow from all BalancerMember http://localhost:8080/your-path/WebObjects/Your-App.woa /Proxy ProxyPass /your-path/WebObjects/Your-App.woa balancer://your-app Then requesting the page http://{Your Host}/your-path/WebObjects/Your-App.woa you get your app through port 80. ATTENTION: you need to setup the SAME path in your-path, because WO generate complete path in the links. *Cons*: - It's very slow to update package: I use Project Wonder, with Ajax, Validation, JavaMail, Houdah and Postgresql (plus the defaults of a Wonder App), so when I create the package is large 2 or 3 Mb of my App plus *66* Mb of Frameworks, and upload that is very heavy (now it takes me 10 minutes, but until last week we had a slow connection, then I needed 20 minutes to upload a package). Every time I make a change is very slow to update the version. - WOLips has not a way to create WAR file for the Deployment (or at least I did not find it): the web.xml, that WOLips creates, has the param WOAppMode setted to Development (so the app work like you use WODirectConnectEnabled=true) you have to change the file by hand and update the WAR package. - If you put in the deploy directory more than one WoApp the second one does not start, because the WOServletAdaptor is not available (I don't remember exactly the error, sorry. When I make some changes I will post it). You have to change the load-on-startup vaue in the servlet element of the web.xml file (for example, my first app has the default value, 5, then I change the second app value to 6 and both start when I start the server). The Problem occurs when I add 2 more apps, with the value of load-on-startup to 7 and 8. The first, the third, the fouth start, but the second does not. I thought was a name problem: the apps are called: 1st: cgi-bin 2nd: ticket 3rd: cims 4th: manutenzioni then JBoss starts the app in the order 1 - 3 - 4 - 2, because it uses the name order for the startup. I changed the load-on-startup value of the apps in: cgi-bin = 5 ticket = 8 cims = 6 manutenzioni = 7 but the ticket app still does not load, with the error WOServletAdaptor not available. The only way to make all the app working is: put cgi-bin and ticket apps in the deploy directory, start the server, then, while working, add the cims and the manutenzioni apps in the deploy directory. And I really have not understood why it works in this way... - Then I realized that if I start the server and then add the other two apps without calling a first time cgi-bin and ticket, these ones lose the localization default language (Italian) and use the standard (English). - Last one, I still have the problem with the ERJavaMail that I posted last week, even using the solution posted by Henrique the ERJavaMail try to send mails to your.smtpserver.com, I thought it was a config of JBoss, but I have not found this string in any configuration file. With all of this problem, now I'm trying to install WO on linux, because time for testing is finished and I have to put the apps working for yesterday. If someone have some advice for me, I really appreciate, -- Daniele Corti -- I DON'T DoubleClick -- There is no theory of evolution. Just a list of animals Chuck Norris allows to live. On Tue, Oct 13, 2009 at 16:56, Jochen Haeberle j...@sensano.com wrote: Hi Daniele, I saw you recent post on the WOnder disussion list concerning a problem with a WO-Project deployed under JBoss. But it sounds like you successfully deployed something to JBoss and have some detail problems. As I was always interested in some other deployment method than
Re: Build failed on Snow Leopard
what error you get ? On 14/ott/2009, at 10.40, Eleni Manou wrote: Stupid from my part. I installed xcode 3.2 but this did not solved the problem. Any suggestions? Many thanks in advance Stavros Message: 10 Date: Wed, 14 Oct 2009 09:49:15 +0200 From: Amedeo Mantica amedeomail...@insigno.it Subject: Re: Build failed on Snow Leopard To: Stavros Panidis elma...@the.forthnet.gr Cc: webobjects-dev@lists.apple.com Message-ID: 356757fd-3673-4691-a73c-7a03b6a4c...@insigno.it Content-Type: text/plain; charset=us-ascii Xcode 3.1 on Snow leopard ??? you should use 3.2 Amedeo On 14/ott/2009, at 04.58, Stavros Panidis wrote: Well, Snow Leopard clean install, then xcode 314, WebObjects 543, eclipse-sdk-4.4.2 and from there WOLips 3.4.5830. Everything else works fine (at the moment) except build. Stavros -- Message: 8 Date: Mon, 12 Oct 2009 22:08:39 -0700 From: Chuck Hill ch...@global-village.net Subject: Re: Build failed To: Stavros Panidis elma...@the.forthnet.gr Cc: webobjects-dev@lists.apple.com Message-ID: 6d6c406c-55a3-4870-9955-19a44068d...@global-village.net Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes On Oct 12, 2009, at 6:32 PM, Stavros Panidis wrote: Hi, trying to build for first time in Snow Leopard I get the following message BUILD FAILED /Users/elmanou/Documents/workspace/Medos/build.xml:28: Could not find /Users/elmanou/Library/wobuild.properties. are there any instructions on how to overcome this? Many thanks in advance wobuild.properties is obsolete. Which version of Eclipse are you using? Which version of WOLips? How did you create the build environment on Snow Leopard? 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/amedeomailing%40insigno.it This email sent to amedeomail...@insigno.it -- next part -- An HTML attachment was scrubbed... URL: http://lists.apple.com/pipermail/webobjects-dev/attachments/20091014/7f95c8aa/attachment.html -- ___ Webobjects-dev mailing list Webobjects-dev@lists.apple.com http://lists.apple.com/mailman/listinfo/webobjects-dev End of Webobjects-dev Digest, Vol 6, Issue 916 ** ___ 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/amedeomailing%40insigno.it This email sent to amedeomail...@insigno.it ___ 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: Community machine
Hi Pascal, that's should be great. I'm available for testing, remember also that if you need a machine for testing / hosting ( apple intel or ppc ) I'm available to share a machine (and internet connection) for the help of all wocommunity Regards Amedeo On 14/ott/2009, at 01.36, Pascal Robert wrote: Hello everyone, I'm about to create a Xen virtual machine that people can use to host their own WO open source projects/tools. I was planning to install: - Apache httpd 2.2 - WO 5.4.3 with Wonder's version of JavaMonitor and wotaskd - FrontBase, MySQL and PostgreSQL - SVN - Hudson But before I finish the setup, I want to know if any of you have a use for it. -- --- Pascal Robert Skype: MacTICanada AIM/iChat : MacTICanada ___ 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/amedeomailing%40insigno.it This email sent to amedeomail...@insigno.it ___ 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
WOWorkerThread
Hi all, when deploying a webobjects app, we can see the min and max number of WOWorkerThread specified by variables 'WOWorkerThreadCountMin' and 'WOWorkerThreadCountMax' root 43233 0.1 1,5 2612824 498428 ?? RMi10am 160:15.03 /usr/bin/java -XX:NewSize=2m -Xmx64m -Xms32m - DWORootDirectory=/System -DWOLocalRootDirectory= -DWOUserDirectory=/ System/Library/WebObjects/JavaApplications/wotaskd.woa - DWOEnvClassPath= -DWOApplicationClass=Application -DWOPlatform=MacOS - Dcom.webobjects.pid=43233 -Xms512m -Xmx2048m -DWOHost=192.168.11.8 - DDatabasePoolSize=20 -classpath WOBootstrap.jar com.webobjects._bootstrap.WOBootstrap -WOPort 12346 -WOCachingEnabled YES -WODebuggingEnabled NO -WOOutputPath /Library/WebObjects/Logs/ AdvitServer-1 -WOAutoOpenInBrowser NO -WOAutoOpenClientApplication NO - WOLifebeatInterval 30 -WOLifebeatEnabled YES - WOLifebeatDestinationPort 1085 -WOAdaptor WODefaultAdaptor - WOWorkerThreadCount 8 -WOListenQueueSize 128 -WOWorkerThreadCountMin 16 -WOWorkerThreadCountMax 256 -NSProjectSearchPath () - WOSessionTimeOut 3600 -WOApplicationName AdvitServer -WOMonitorEnabled YES -WONoPause YES -DWOHost=192.168.11.8 -DDatabasePoolSize=20 At some point, the number of threads in my application is 326, of which 256 of them are WOWorkerThread's (dumped the threads with jstack) Even if load decreases, the 256 WOWorkerThread's do not disappear anymore, it seems once created, they don't get released anymore. Is there a mechanism in WebObjects that should release WOWorkerThread's when not needed anymore ? greetz Kristof Looking for Web-to-Print Solutions? Visit our website : http://www.vit2print.com This e-mail, and any attachments thereto, is intended only for use by the addressee(s) named herein and may contain legally privileged and/or confidential information and/or information protected by intellectual property rights. If you are not the intended recipient, please note that any review, dissemination, disclosure, alteration, printing, copying or transmission of this e-mail and/or any file transmitted with it, is strictly prohibited and may be unlawful. If you have received this e-mail by mistake, please immediately notify the sender and permanently delete the original as well as any copy of any e-mail and any printout thereof. We may monitor e-mail to and from our network. NSS nv Tieltstraat 167 8740 Pittem Belgium ___ 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: [SOLVED]Antw: Re: Problem with pages saved in a variable
Can you explain this more in terms of the end result you're trying to achieve rather the approach you're trying at the moment? On Oct 14, 2009, at 4:03 AM, Andri vonAllmen wrote: Hi Stephane, The reason for not using the WO caching mechanism was, that I'm maintaining a application which has pageWithName methods ad infinitum and this method does always create a new instance of a page (please do correct me, if this is not true), which is not the behaviour I want it to have (I want it to check the cache first). Thank you for responding, Andri Stephane Guyot stephane.guyo...@wanadoo.fr schrieb am Mittwoch, 14. Oktober 2009 um 09:16 in Nachricht 6e311acc-81e0-40a4-8894-2d2c5a00f...@wanadoo.fr : Andri, I don't what exactly you want do, but have a look on API Session : restorePageForConextID, savePage, savePageInPermanentCache. You can start to override this API and just log, to understand how WebObjects works with pages and contextIDs. HTH, Stephane Le 13 oct. 09 à 10:29, Andri vonAllmen a écrit : Dear List, in an Applications Session, a NSMutableDictionary object is used for caching pages. Everytime the pageWithName method is called, the dictionary is queried in order to determine if the requested page does already exist, if true the existing page is returned, else a new one is generated and stored in the dictionary. This is made in Application.java by overriding the pageWithName method: public WOComponent pageWithName(String aName, WOContext aContext) { Object result = null; if ( aContext.hasSession() ) result = ((NSMutableDictionary)((Session)aContext.session()).cachedPages ()).objectForKey(aName); if ( result == null ) { result = super.pageWithName(aName, aContext); if ( aContext.hasSession() ) if ( aName != null ) ((NSMutableDictionary)((Session)aContext.session()).cachedPages ()).setObjectForKey(result, aName); } return (WOComponent)result; } This works with one exception. Making changes on Enterprise Objects is not possible in every case. Saving changes works, if always the same object is changed but not if two different objects are changed (changing the first, saving the changes, then changing the second and saving the changes). But if making changes on a object, saving it, and then revert the changes (to the same state as before changing it the first time), making changes on other objects is possible. As mentioned in the WO API Reference, for pages being stored in a variable the ensureAwakeInContext method has to be called, but this has no effect. Same if refreshing the objects in the default editing context (refreshAllObjects, refaultAllObjects) which is used on all pages. Any suggestions or other hints would be appreciated. Regards Andri --- Disclaimer: - This email and contents is for use only by the intended recipient. If you are not the individual or entity to whom it is addressed, you are hereby formally notified that any use, copying or distribution of this email and attachments, in whole or in part, is strictly prohibited. If you have received this email in error, please notify the sender and delete the message and attachment(s) from your system. Any views, opinions or information, expressed or contained in this email, are those of the sender and not necessarily reflect those of CEDES. To help protect our environment, please avoid printing out this information unnecessarily. ___ 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/ stephane.guyot11%40wanadoo.fr This email sent to stephane.guyo...@wanadoo.fr IBCM : International Bank of Chatenay-Malabry http://www.kiva.org/ lender/stephane4127 - Click on Map View --- Disclaimer: - This email and contents is for use only by the intended recipient. If you are not the individual or entity to whom it is addressed, you are hereby formally notified that any use, copying or distribution of this email and attachments, in whole or in part, is strictly prohibited. If you have received this email in error, please notify the sender and delete the message and attachment(s) from your system. Any views, opinions or information, expressed or contained in this email, are those of the sender and not necessarily reflect those of CEDES. To help protect our environment, please avoid printing out this information unnecessarily. ___ 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:
Re: Hudson and setupWorkspace.sh
Hi Frank, On Oct 13, 2009, at 10:59 PM, Mr. Frank Cobia wrote: I am trying to get a Hudson build server setup and I am having a few issues. Hopefully someone can/will help. As background I am running hudson on Mac OS X server and I am using subversion. 1) The setupWorkspace.sh script seems to be looking for the .classpath file in the wrong place. I setup the subversion URL as https://svnserver/path/MyProject. So when Hudson check out from subversion the .classpath is placed in $WORKSPACE/MyProject/.classpath, but setupWorkspace.sh is looking for $WORKSPACE/.classpath. What am I doing wrong? In the job setup, under Subversion, put a period (.) in the Local module directory (optional) field. It probably has MyProject in there now. 2) The setupWorkspace.sh prints the following error even though I can go in by hand after the build and that directory does exit: rm: / Developer/Hudson/Home/jobs/MyProject/workspace/Root/System: No such file or directory This is the same problem. it's looking in .../workspace/Root/System, because you have the Local module directory as your project name, that directory actually exists in /worspace/MyProject/Root/System. 3) How will my apps and frameworks find the frameworks they depend on? Is this automatically done by the setupWorkspace.sh script as long as those frameworks have already been made? Do I have to do a build and install so that they are placed in /Library/Frameworks? Mike's latest workspaceSetup.sh will automatically look for Hudson projects with the same name as the frameworks in your .classpath file - freaking AWESOME, BTW. If it finds them, it will use the last successful build of that hudson job. 4) I can not get Hudson to Archive the Artifacts for framework builds when set to $WORKSPACE/MyProject/dist/*.framework. The configuration screen tells me that $WORKSPACE/MyProject/dist does exist but the build throws an error saying it can not find / Developer/Hudson/Home/jobs/MyProject/workspace/MyProject/dist/ *.framework. Hmmm not sure on this one, but once you change the Local module directory (see #1) then maybe that will fix this too. 5) Similar to #3. I have some frameworks that depend on jar projects. Do I need to somehow copy these to a location to be picked up or will the setupWorkspace fix it so that the jars will be found? Hmmm... This is trickier. I don't do this, and I don't think setupWorkspace.sh will address this either. That leaves you with either modifying setupWorkspace.sh to handle it, or adding additional Execute shell commands prior to Invoking Ant in the hudson job. Hudson is awesome and Mike's setupWorkspace.sh makes it even better, but it's a case of it will only work if you Be Like Mike™ - if you do things differently it will require a bit more work on you part, but setupWorkspace.sh is great to learn from to see how the cool kids do things. Dave Thanks, Frank ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/webobjects%40avendasora.com This email sent to webobje...@avendasora.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: WOWorkerThread
You most likely have a deadlock problem ... Worker threads should never hit 256. You should be able to stack dump your threads and see that you're hanging on some locked resource -- objectstore, session, something like that. ms On Oct 14, 2009, at 8:06 AM, Kristof Cossement wrote: Hi all, when deploying a webobjects app, we can see the min and max number of WOWorkerThread specified by variables 'WOWorkerThreadCountMin' and 'WOWorkerThreadCountMax' root 43233 0.1 1,5 2612824 498428 ?? RMi10am 160:15.03 /usr/bin/java -XX:NewSize=2m -Xmx64m -Xms32m - DWORootDirectory=/System -DWOLocalRootDirectory= -DWOUserDirectory=/ System/Library/WebObjects/JavaApplications/wotaskd.woa - DWOEnvClassPath= -DWOApplicationClass=Application -DWOPlatform=MacOS -Dcom.webobjects.pid=43233 -Xms512m -Xmx2048m -DWOHost=192.168.11.8 - DDatabasePoolSize=20 -classpath WOBootstrap.jar com.webobjects._bootstrap.WOBootstrap -WOPort 12346 - WOCachingEnabled YES -WODebuggingEnabled NO -WOOutputPath /Library/ WebObjects/Logs/AdvitServer-1 -WOAutoOpenInBrowser NO - WOAutoOpenClientApplication NO -WOLifebeatInterval 30 - WOLifebeatEnabled YES -WOLifebeatDestinationPort 1085 -WOAdaptor WODefaultAdaptor -WOWorkerThreadCount 8 -WOListenQueueSize 128 - WOWorkerThreadCountMin 16 -WOWorkerThreadCountMax 256 - NSProjectSearchPath () -WOSessionTimeOut 3600 -WOApplicationName AdvitServer -WOMonitorEnabled YES -WONoPause YES - DWOHost=192.168.11.8 -DDatabasePoolSize=20 At some point, the number of threads in my application is 326, of which 256 of them are WOWorkerThread's (dumped the threads with jstack) Even if load decreases, the 256 WOWorkerThread's do not disappear anymore, it seems once created, they don't get released anymore. Is there a mechanism in WebObjects that should release WOWorkerThread's when not needed anymore ? greetz Kristof Looking for Web-to-Print Solutions? Visit our website : http://www.vit2print.com This e-mail, and any attachments thereto, is intended only for use by the addressee(s) named herein and may contain legally privileged and/or confidential information and/or information protected by intellectual property rights. If you are not the intended recipient, please note that any review, dissemination, disclosure, alteration, printing, copying or transmission of this e-mail and/or any file transmitted with it, is strictly prohibited and may be unlawful. If you have received this e-mail by mistake, please immediately notify the sender and permanently delete the original as well as any copy of any e-mail and any printout thereof. We may monitor e-mail to and from our network. NSS nv Tieltstraat 167 8740 Pittem Belgium ___ 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/mschrag%40mdimension.com This email sent to msch...@mdimension.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
Antw: WOWorkerThread
Hi Kristof, there is no such mechanism as far as I know. Instead of terminating the threads that are idling, they are suspended, in order to be resumed if required. They could be self-terminating, but creating a new thread is quite resource intensive and it is better to reuse existing threads (in nearly every case). This is most likely the reason why the number does never decrease. I assume that you will have the same results if creating a new empty WebObjects Application if refreshing its main page as fast as possible in the browser (maybe a Thread.sleep(1000) will be required every time a session is created in order to enforce concurrency). Andri Kristof Cossement kristof.cossem...@nss.be schrieb am Mittwoch, 14. Oktober 2009 um 14:06 in Nachricht ae12cf24-ffe4-41cc-afe8-5443e1d69...@nss.be: Hi all, when deploying a webobjects app, we can see the min and max number of WOWorkerThread specified by variables 'WOWorkerThreadCountMin' and 'WOWorkerThreadCountMax' root 43233 0.1 1,5 2612824 498428 ?? RMi10am 160:15.03 /usr/bin/java -XX:NewSize=2m -Xmx64m -Xms32m - DWORootDirectory=/System -DWOLocalRootDirectory= -DWOUserDirectory=/ System/Library/WebObjects/JavaApplications/wotaskd.woa - DWOEnvClassPath= -DWOApplicationClass=Application -DWOPlatform=MacOS - Dcom.webobjects.pid=43233 -Xms512m -Xmx2048m -DWOHost=192.168.11.8 - DDatabasePoolSize=20 -classpath WOBootstrap.jar com.webobjects._bootstrap.WOBootstrap -WOPort 12346 -WOCachingEnabled YES -WODebuggingEnabled NO -WOOutputPath /Library/WebObjects/Logs/ AdvitServer-1 -WOAutoOpenInBrowser NO -WOAutoOpenClientApplication NO - WOLifebeatInterval 30 -WOLifebeatEnabled YES - WOLifebeatDestinationPort 1085 -WOAdaptor WODefaultAdaptor - WOWorkerThreadCount 8 -WOListenQueueSize 128 -WOWorkerThreadCountMin 16 -WOWorkerThreadCountMax 256 -NSProjectSearchPath () - WOSessionTimeOut 3600 -WOApplicationName AdvitServer -WOMonitorEnabled YES -WONoPause YES -DWOHost=192.168.11.8 -DDatabasePoolSize=20 At some point, the number of threads in my application is 326, of which 256 of them are WOWorkerThread's (dumped the threads with jstack) Even if load decreases, the 256 WOWorkerThread's do not disappear anymore, it seems once created, they don't get released anymore. Is there a mechanism in WebObjects that should release WOWorkerThread's when not needed anymore ? greetz Kristof Looking for Web-to-Print Solutions? Visit our website : http://www.vit2print.com This e-mail, and any attachments thereto, is intended only for use by the addressee(s) named herein and may contain legally privileged and/or confidential information and/or information protected by intellectual property rights. If you are not the intended recipient, please note that any review, dissemination, disclosure, alteration, printing, copying or transmission of this e-mail and/or any file transmitted with it, is strictly prohibited and may be unlawful. If you have received this e-mail by mistake, please immediately notify the sender and permanently delete the original as well as any copy of any e-mail and any printout thereof. We may monitor e-mail to and from our network. NSS nv Tieltstraat 167 8740 Pittem Belgium --- Disclaimer: - This email and contents is for use only by the intended recipient. If you are not the individual or entity to whom it is addressed, you are hereby formally notified that any use, copying or distribution of this email and attachments, in whole or in part, is strictly prohibited. If you have received this email in error, please notify the sender and delete the message and attachment(s) from your system. Any views, opinions or information, expressed or contained in this email, are those of the sender and not necessarily reflect those of CEDES. To help protect our environment, please avoid printing out this information unnecessarily. ___ 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: [SOLVED]Antw: Re: Problem with pages saved in a variable
The end result: A user navigates from page A to page B to page C. Page C has a hyperlink to page A (return pageWithName(A)). If clicking on this hyperlink, page A shall be shown in the same state as it has been left (e.g. the same filter options, etc.). Mike Schrag msch...@mdimension.com schrieb am Mittwoch, 14. Oktober 2009 um 15:18 in Nachricht 2a345bc9-7581-4c6c-82ab-89e761ee3...@mdimension.com: Can you explain this more in terms of the end result you're trying to achieve rather the approach you're trying at the moment? On Oct 14, 2009, at 4:03 AM, Andri vonAllmen wrote: Hi Stephane, The reason for not using the WO caching mechanism was, that I'm maintaining a application which has pageWithName methods ad infinitum and this method does always create a new instance of a page (please do correct me, if this is not true), which is not the behaviour I want it to have (I want it to check the cache first). Thank you for responding, Andri Stephane Guyot stephane.guyo...@wanadoo.fr schrieb am Mittwoch, 14. Oktober 2009 um 09:16 in Nachricht 6e311acc-81e0-40a4-8894-2d2c5a00f...@wanadoo.fr : Andri, I don't what exactly you want do, but have a look on API Session : restorePageForConextID, savePage, savePageInPermanentCache. You can start to override this API and just log, to understand how WebObjects works with pages and contextIDs. HTH, Stephane Le 13 oct. 09 à 10:29, Andri vonAllmen a écrit : Dear List, in an Applications Session, a NSMutableDictionary object is used for caching pages. Everytime the pageWithName method is called, the dictionary is queried in order to determine if the requested page does already exist, if true the existing page is returned, else a new one is generated and stored in the dictionary. This is made in Application.java by overriding the pageWithName method: public WOComponent pageWithName(String aName, WOContext aContext) { Object result = null; if ( aContext.hasSession() ) result = ((NSMutableDictionary)((Session)aContext.session()).cachedPages ()).objectForKey(aName); if ( result == null ) { result = super.pageWithName(aName, aContext); if ( aContext.hasSession() ) if ( aName != null ) ((NSMutableDictionary)((Session)aContext.session()).cachedPages ()).setObjectForKey(result, aName); } return (WOComponent)result; } This works with one exception. Making changes on Enterprise Objects is not possible in every case. Saving changes works, if always the same object is changed but not if two different objects are changed (changing the first, saving the changes, then changing the second and saving the changes). But if making changes on a object, saving it, and then revert the changes (to the same state as before changing it the first time), making changes on other objects is possible. As mentioned in the WO API Reference, for pages being stored in a variable the ensureAwakeInContext method has to be called, but this has no effect. Same if refreshing the objects in the default editing context (refreshAllObjects, refaultAllObjects) which is used on all pages. Any suggestions or other hints would be appreciated. Regards Andri --- Disclaimer: - This email and contents is for use only by the intended recipient. If you are not the individual or entity to whom it is addressed, you are hereby formally notified that any use, copying or distribution of this email and attachments, in whole or in part, is strictly prohibited. If you have received this email in error, please notify the sender and delete the message and attachment(s) from your system. Any views, opinions or information, expressed or contained in this email, are those of the sender and not necessarily reflect those of CEDES. To help protect our environment, please avoid printing out this information unnecessarily. ___ 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/ stephane.guyot11%40wanadoo.fr This email sent to stephane.guyo...@wanadoo.fr IBCM : International Bank of Chatenay-Malabry http://www.kiva.org/ lender/stephane4127 - Click on Map View --- Disclaimer: - This email and contents is for use only by the intended recipient. If you are not the individual or entity to whom it is addressed, you are hereby formally notified that any use, copying or distribution of this email and attachments, in whole or in part, is strictly prohibited. If you have received this email in error, please notify the sender and delete the message and attachment(s) from your system. Any views,
Re: Antw: WOWorkerThread
Ah .. Maybe I misunderstood, that these are just idle listening threads rather than deadlocked threads, though I'm still very suspicious that your app ramped up to 256. Can you confirm from the stack traces if those threads are actually hung vs waiting for a connection? ms On Oct 14, 2009, at 9:54 AM, Andri vonAllmen wrote: Hi Kristof, there is no such mechanism as far as I know. Instead of terminating the threads that are idling, they are suspended, in order to be resumed if required. They could be self-terminating, but creating a new thread is quite resource intensive and it is better to reuse existing threads (in nearly every case). This is most likely the reason why the number does never decrease. I assume that you will have the same results if creating a new empty WebObjects Application if refreshing its main page as fast as possible in the browser (maybe a Thread.sleep(1000) will be required every time a session is created in order to enforce concurrency). Andri Kristof Cossement kristof.cossem...@nss.be schrieb am Mittwoch, 14. Oktober 2009 um 14:06 in Nachricht ae12cf24-ffe4-41cc-afe8-5443e1d69...@nss.be: Hi all, when deploying a webobjects app, we can see the min and max number of WOWorkerThread specified by variables 'WOWorkerThreadCountMin' and 'WOWorkerThreadCountMax' root 43233 0.1 1,5 2612824 498428 ?? RMi10am 160:15.03 /usr/bin/java -XX:NewSize=2m -Xmx64m -Xms32m - DWORootDirectory=/System -DWOLocalRootDirectory= -DWOUserDirectory=/ System/Library/WebObjects/JavaApplications/wotaskd.woa - DWOEnvClassPath= -DWOApplicationClass=Application -DWOPlatform=MacOS - Dcom.webobjects.pid=43233 -Xms512m -Xmx2048m -DWOHost=192.168.11.8 - DDatabasePoolSize=20 -classpath WOBootstrap.jar com.webobjects._bootstrap.WOBootstrap -WOPort 12346 -WOCachingEnabled YES -WODebuggingEnabled NO -WOOutputPath /Library/WebObjects/Logs/ AdvitServer-1 -WOAutoOpenInBrowser NO -WOAutoOpenClientApplication NO - WOLifebeatInterval 30 -WOLifebeatEnabled YES - WOLifebeatDestinationPort 1085 -WOAdaptor WODefaultAdaptor - WOWorkerThreadCount 8 -WOListenQueueSize 128 -WOWorkerThreadCountMin 16 -WOWorkerThreadCountMax 256 -NSProjectSearchPath () - WOSessionTimeOut 3600 -WOApplicationName AdvitServer -WOMonitorEnabled YES -WONoPause YES -DWOHost=192.168.11.8 -DDatabasePoolSize=20 At some point, the number of threads in my application is 326, of which 256 of them are WOWorkerThread's (dumped the threads with jstack) Even if load decreases, the 256 WOWorkerThread's do not disappear anymore, it seems once created, they don't get released anymore. Is there a mechanism in WebObjects that should release WOWorkerThread's when not needed anymore ? greetz Kristof Looking for Web-to-Print Solutions? Visit our website : http://www.vit2print.com This e-mail, and any attachments thereto, is intended only for use by the addressee(s) named herein and may contain legally privileged and/or confidential information and/or information protected by intellectual property rights. If you are not the intended recipient, please note that any review, dissemination, disclosure, alteration, printing, copying or transmission of this e-mail and/or any file transmitted with it, is strictly prohibited and may be unlawful. If you have received this e-mail by mistake, please immediately notify the sender and permanently delete the original as well as any copy of any e-mail and any printout thereof. We may monitor e-mail to and from our network. NSS nv Tieltstraat 167 8740 Pittem Belgium --- Disclaimer: - This email and contents is for use only by the intended recipient. If you are not the individual or entity to whom it is addressed, you are hereby formally notified that any use, copying or distribution of this email and attachments, in whole or in part, is strictly prohibited. If you have received this email in error, please notify the sender and delete the message and attachment(s) from your system. Any views, opinions or information, expressed or contained in this email, are those of the sender and not necessarily reflect those of CEDES. To help protect our environment, please avoid printing out this information unnecessarily. ___ 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/mschrag%40mdimension.com This email sent to msch...@mdimension.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: [SOLVED]Antw: Re: Problem with pages saved in a variable
My recommendation is not to think of this in terms of preserving the page instance, and instead think of it in terms of preserving the underlying model state for the page and pass that around. Now you COULD actually pass a previous page instance into the next page instance so you come back to the same page. I would probably lean towards that way rather than trying to do this as some sort of global change to the architecture of WO, but I would prefer passing models (or preserving that state persistently) over handing around page instances in any form. For example, if they logout and log back in, do you want them to have the same filter options? If so, it would seem to me that the better way would be to store user prefs in the database for those options, which would solve your problem intra-session as well. ms On Oct 14, 2009, at 9:55 AM, Andri vonAllmen wrote: The end result: A user navigates from page A to page B to page C. Page C has a hyperlink to page A (return pageWithName(A)). If clicking on this hyperlink, page A shall be shown in the same state as it has been left (e.g. the same filter options, etc.). Mike Schrag msch...@mdimension.com schrieb am Mittwoch, 14. Oktober 2009 um 15:18 in Nachricht 2a345bc9-7581-4c6c-82ab-89e761ee3...@mdimension.com : Can you explain this more in terms of the end result you're trying to achieve rather the approach you're trying at the moment? On Oct 14, 2009, at 4:03 AM, Andri vonAllmen wrote: Hi Stephane, The reason for not using the WO caching mechanism was, that I'm maintaining a application which has pageWithName methods ad infinitum and this method does always create a new instance of a page (please do correct me, if this is not true), which is not the behaviour I want it to have (I want it to check the cache first). Thank you for responding, Andri Stephane Guyot stephane.guyo...@wanadoo.fr schrieb am Mittwoch, 14. Oktober 2009 um 09:16 in Nachricht 6e311acc-81e0-40a4-8894-2d2c5a00f...@wanadoo.fr : Andri, I don't what exactly you want do, but have a look on API Session : restorePageForConextID, savePage, savePageInPermanentCache. You can start to override this API and just log, to understand how WebObjects works with pages and contextIDs. HTH, Stephane Le 13 oct. 09 à 10:29, Andri vonAllmen a écrit : Dear List, in an Applications Session, a NSMutableDictionary object is used for caching pages. Everytime the pageWithName method is called, the dictionary is queried in order to determine if the requested page does already exist, if true the existing page is returned, else a new one is generated and stored in the dictionary. This is made in Application.java by overriding the pageWithName method: public WOComponent pageWithName(String aName, WOContext aContext) { Object result = null; if ( aContext.hasSession() ) result = ((NSMutableDictionary)((Session)aContext.session()).cachedPages ()).objectForKey(aName); if ( result == null ) { result = super.pageWithName(aName, aContext); if ( aContext.hasSession() ) if ( aName != null ) ((NSMutableDictionary)((Session)aContext.session()).cachedPages ()).setObjectForKey(result, aName); } return (WOComponent)result; } This works with one exception. Making changes on Enterprise Objects is not possible in every case. Saving changes works, if always the same object is changed but not if two different objects are changed (changing the first, saving the changes, then changing the second and saving the changes). But if making changes on a object, saving it, and then revert the changes (to the same state as before changing it the first time), making changes on other objects is possible. As mentioned in the WO API Reference, for pages being stored in a variable the ensureAwakeInContext method has to be called, but this has no effect. Same if refreshing the objects in the default editing context (refreshAllObjects, refaultAllObjects) which is used on all pages. Any suggestions or other hints would be appreciated. Regards Andri --- Disclaimer: - This email and contents is for use only by the intended recipient. If you are not the individual or entity to whom it is addressed, you are hereby formally notified that any use, copying or distribution of this email and attachments, in whole or in part, is strictly prohibited. If you have received this email in error, please notify the sender and delete the message and attachment(s) from your system. Any views, opinions or information, expressed or contained in this email, are those of the sender and not necessarily reflect those of CEDES. To help protect our environment, please avoid printing out this information unnecessarily. ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com)
Re: [SOLVED]Antw: Re: Problem with pages saved in a variable
I have some cases where before returning the 'next' page, I store the current page on a var on the next page, like 'previousPage' nextPage=pageWithName(blabla); nextPage.setPreviousPage(this); Then on that page I have a link or button that returns previousPage. return previousPage; Seems to work alright. I'm willing to be educated on a better way if any. Henrique Gomes On Oct 14, 2009, at 2:55 PM, Andri vonAllmen wrote: The end result: A user navigates from page A to page B to page C. Page C has a hyperlink to page A (return pageWithName(A)). If clicking on this hyperlink, page A shall be shown in the same state as it has been left (e.g. the same filter options, etc.). Mike Schrag msch...@mdimension.com schrieb am Mittwoch, 14. Oktober 2009 um 15:18 in Nachricht 2a345bc9-7581-4c6c-82ab-89e761ee3...@mdimension.com : Can you explain this more in terms of the end result you're trying to achieve rather the approach you're trying at the moment? On Oct 14, 2009, at 4:03 AM, Andri vonAllmen wrote: Hi Stephane, The reason for not using the WO caching mechanism was, that I'm maintaining a application which has pageWithName methods ad infinitum and this method does always create a new instance of a page (please do correct me, if this is not true), which is not the behaviour I want it to have (I want it to check the cache first). Thank you for responding, Andri Stephane Guyot stephane.guyo...@wanadoo.fr schrieb am Mittwoch, 14. Oktober 2009 um 09:16 in Nachricht 6e311acc-81e0-40a4-8894-2d2c5a00f...@wanadoo.fr : Andri, I don't what exactly you want do, but have a look on API Session : restorePageForConextID, savePage, savePageInPermanentCache. You can start to override this API and just log, to understand how WebObjects works with pages and contextIDs. HTH, Stephane Le 13 oct. 09 à 10:29, Andri vonAllmen a écrit : Dear List, in an Applications Session, a NSMutableDictionary object is used for caching pages. Everytime the pageWithName method is called, the dictionary is queried in order to determine if the requested page does already exist, if true the existing page is returned, else a new one is generated and stored in the dictionary. This is made in Application.java by overriding the pageWithName method: public WOComponent pageWithName(String aName, WOContext aContext) { Object result = null; if ( aContext.hasSession() ) result = ((NSMutableDictionary)((Session)aContext.session()).cachedPages ()).objectForKey(aName); if ( result == null ) { result = super.pageWithName(aName, aContext); if ( aContext.hasSession() ) if ( aName != null ) ((NSMutableDictionary)((Session)aContext.session()).cachedPages ()).setObjectForKey(result, aName); } return (WOComponent)result; } This works with one exception. Making changes on Enterprise Objects is not possible in every case. Saving changes works, if always the same object is changed but not if two different objects are changed (changing the first, saving the changes, then changing the second and saving the changes). But if making changes on a object, saving it, and then revert the changes (to the same state as before changing it the first time), making changes on other objects is possible. As mentioned in the WO API Reference, for pages being stored in a variable the ensureAwakeInContext method has to be called, but this has no effect. Same if refreshing the objects in the default editing context (refreshAllObjects, refaultAllObjects) which is used on all pages. Any suggestions or other hints would be appreciated. Regards Andri --- Disclaimer: - This email and contents is for use only by the intended recipient. If you are not the individual or entity to whom it is addressed, you are hereby formally notified that any use, copying or distribution of this email and attachments, in whole or in part, is strictly prohibited. If you have received this email in error, please notify the sender and delete the message and attachment(s) from your system. Any views, opinions or information, expressed or contained in this email, are those of the sender and not necessarily reflect those of CEDES. To help protect our environment, please avoid printing out this information unnecessarily. ___ 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/ stephane.guyot11%40wanadoo.fr This email sent to stephane.guyo...@wanadoo.fr IBCM : International Bank of Chatenay-Malabry http://www.kiva.org/ lender/stephane4127 - Click on Map View --- Disclaimer: - This email and contents is for use only by the intended recipient. If you are not the individual
Re: Antw: WOWorkerThread
On Oct 14, 2009, at 7:03 AM, Mike Schrag wrote: Ah .. Maybe I misunderstood, that these are just idle listening threads rather than deadlocked threads, though I'm still very suspicious that your app ramped up to 256. Can you confirm from the stack traces if those threads are actually hung vs waiting for a connection? 256 threads is either a deadlock, or very, very, very busy app. I can't see a normal app, in normal operating conditions, creating that many threads. I have never seen this indicate anything other that an deadlock or very slow request processing that leads to a large backlog of requests. Chuck On Oct 14, 2009, at 9:54 AM, Andri vonAllmen wrote: Hi Kristof, there is no such mechanism as far as I know. Instead of terminating the threads that are idling, they are suspended, in order to be resumed if required. They could be self-terminating, but creating a new thread is quite resource intensive and it is better to reuse existing threads (in nearly every case). This is most likely the reason why the number does never decrease. I assume that you will have the same results if creating a new empty WebObjects Application if refreshing its main page as fast as possible in the browser (maybe a Thread.sleep(1000) will be required every time a session is created in order to enforce concurrency). Andri Kristof Cossement kristof.cossem...@nss.be schrieb am Mittwoch, 14. Oktober 2009 um 14:06 in Nachricht ae12cf24-ffe4-41cc-afe8-5443e1d69...@nss.be: Hi all, when deploying a webobjects app, we can see the min and max number of WOWorkerThread specified by variables 'WOWorkerThreadCountMin' and 'WOWorkerThreadCountMax' root 43233 0.1 1,5 2612824 498428 ?? RMi10am 160:15.03 /usr/bin/java -XX:NewSize=2m -Xmx64m -Xms32m - DWORootDirectory=/System -DWOLocalRootDirectory= -DWOUserDirectory=/ System/Library/WebObjects/JavaApplications/wotaskd.woa - DWOEnvClassPath= -DWOApplicationClass=Application -DWOPlatform=MacOS - Dcom.webobjects.pid=43233 -Xms512m -Xmx2048m -DWOHost=192.168.11.8 - DDatabasePoolSize=20 -classpath WOBootstrap.jar com.webobjects._bootstrap.WOBootstrap -WOPort 12346 - WOCachingEnabled YES -WODebuggingEnabled NO -WOOutputPath /Library/WebObjects/Logs/ AdvitServer-1 -WOAutoOpenInBrowser NO -WOAutoOpenClientApplication NO - WOLifebeatInterval 30 -WOLifebeatEnabled YES - WOLifebeatDestinationPort 1085 -WOAdaptor WODefaultAdaptor - WOWorkerThreadCount 8 -WOListenQueueSize 128 -WOWorkerThreadCountMin 16 -WOWorkerThreadCountMax 256 -NSProjectSearchPath () - WOSessionTimeOut 3600 -WOApplicationName AdvitServer -WOMonitorEnabled YES -WONoPause YES -DWOHost=192.168.11.8 -DDatabasePoolSize=20 At some point, the number of threads in my application is 326, of which 256 of them are WOWorkerThread's (dumped the threads with jstack) Even if load decreases, the 256 WOWorkerThread's do not disappear anymore, it seems once created, they don't get released anymore. Is there a mechanism in WebObjects that should release WOWorkerThread's when not needed anymore ? greetz Kristof Looking for Web-to-Print Solutions? Visit our website : http://www.vit2print.com This e-mail, and any attachments thereto, is intended only for use by the addressee(s) named herein and may contain legally privileged and/or confidential information and/or information protected by intellectual property rights. If you are not the intended recipient, please note that any review, dissemination, disclosure, alteration, printing, copying or transmission of this e-mail and/or any file transmitted with it, is strictly prohibited and may be unlawful. If you have received this e-mail by mistake, please immediately notify the sender and permanently delete the original as well as any copy of any e-mail and any printout thereof. We may monitor e-mail to and from our network. NSS nv Tieltstraat 167 8740 Pittem Belgium --- Disclaimer: - This email and contents is for use only by the intended recipient. If you are not the individual or entity to whom it is addressed, you are hereby formally notified that any use, copying or distribution of this email and attachments, in whole or in part, is strictly prohibited. If you have received this email in error, please notify the sender and delete the message and attachment(s) from your system. Any views, opinions or information, expressed or contained in this email, are those of the sender and not necessarily reflect those of CEDES. To help protect our environment, please avoid printing out this information unnecessarily. ___ 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/mschrag%40mdimension.com This email sent
Re: WebObjects deployment with JBoss
Hi Daniele, Daniele Corti wrote: - Last one, I still have the problem with the ERJavaMail that I posted last week, even using the solution posted by Henrique the ERJavaMail try to send mails to your.smtpserver.com http://your.smtpserver.com, I thought it was a config of JBoss, but I have not found this string in any configuration file. The Application class has a method called setSMTPHost. I don't use this method anymore, but I remember it was the only way I found to make ERJavaMail work in an old application, probably an application deployed on WebSphere. IIRC, I used to call this method inside of the Application's constructor. setSMTPHost(your.real.smtpserver.com); With all of this problem, now I'm trying to install WO on linux, because time for testing is finished and I have to put the apps working for yesterday. If someone have some advice for me, I really appreciate, How your application WARs have been packaged? As true WAR or SSDD? I have found problems with SSDD and multiple applications running in the same servlet container. BTW, we have some applications deployed as true WAR on Linux with Tomcat 5.5 and they have been working fine. Cheers, Henrique ___ 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: Hudson and setupWorkspace.sh
Sorry, I hit reply instead of reply all on a previous email. 1) The setupWorkspace.sh script seems to be looking for the .classpath file in the wrong place. I setup the subversion URL as https://svnserver/path/MyProject. So when Hudson check out from subversion the .classpath is placed in $WORKSPACE/MyProject/.classpath, but setupWorkspace.sh is looking for $WORKSPACE/.classpath. What am I doing wrong? In the job setup, under Subversion, put a period (.) in the Local module directory (optional) field. It probably has MyProject in there now. Putting ., instead of leaving it blank, fixed this and #2. 2) The setupWorkspace.sh prints the following error even though I can go in by hand after the build and that directory does exit: rm: /Developer/Hudson/Home/jobs/MyProject/workspace/Root/System: No such file or directory This is the same problem. it's looking in .../workspace/Root/System, because you have the Local module directory as your project name, that directory actually exists in /worspace/MyProject/Root/System. 3) How will my apps and frameworks find the frameworks they depend on? Is this automatically done by the setupWorkspace.sh script as long as those frameworks have already been made? Do I have to do a build and install so that they are placed in /Library/Frameworks? Mike's latest workspaceSetup.sh will automatically look for Hudson projects with the same name as the frameworks in your .classpath file - freaking AWESOME, BTW. If it finds them, it will use the last successful build of that hudson job. This is actually broken for me because I can not archive the build (see #4). I looked in the script and it is looking under lastSuccessful/archive/dist/${FRAMEWORK}.tar.gz. This presents two problems for me. First I can not figure out any pattern under the archive option that will find my framework. Second, my build only produces a MyProject.framework and not MyProject.framework.tar.gz. Anyone help with this? 4) I can not get Hudson to Archive the Artifacts for framework builds when set to $WORKSPACE/MyProject/dist/*.framework. The configuration screen tells me that $WORKSPACE/MyProject/dist does exist but the build throws an error saying it can not find / Developer/Hudson/Home/jobs/MyProject/workspace/MyProject/dist/ *.framework. Hmmm not sure on this one, but once you change the Local module directory (see #1) then maybe that will fix this too. Thanks, Frank ___ 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: Hudson and setupWorkspace.sh
3) How will my apps and frameworks find the frameworks they depend on? Is this automatically done by the setupWorkspace.sh script as long as those frameworks have already been made? Do I have to do a build and install so that they are placed in /Library/Frameworks? Mike's latest workspaceSetup.sh will automatically look for Hudson projects with the same name as the frameworks in your .classpath file - freaking AWESOME, BTW. If it finds them, it will use the last successful build of that hudson job. This is actually broken for me because I can not archive the build (see #4). I looked in the script and it is looking under lastSuccessful/archive/dist/${FRAMEWORK}.tar.gz. This presents two problems for me. First I can not figure out any pattern under the archive option that will find my framework. Second, my build only produces a MyProject.framework and not MyProject.framework.tar.gz. Anyone help with this? I figured out the first part of my problem. It turns out the pattern I need is dist/** and not dist/*. It does not however produce a tar file. Should that be happening automatically ro do I just need to add a shell command to build it? Thanks, Frank ___ 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: Hudson and setupWorkspace.sh
On Oct 14, 2009, at 12:00 PM, Mr. Frank Cobia wrote: 3) How will my apps and frameworks find the frameworks they depend on? Is this automatically done by the setupWorkspace.sh script as long as those frameworks have already been made? Do I have to do a build and install so that they are placed in / Library/Frameworks? Mike's latest workspaceSetup.sh will automatically look for Hudson projects with the same name as the frameworks in your .classpath file - freaking AWESOME, BTW. If it finds them, it will use the last successful build of that hudson job. This is actually broken for me because I can not archive the build (see #4). I looked in the script and it is looking under lastSuccessful/archive/dist/${FRAMEWORK}.tar.gz. This presents two problems for me. First I can not figure out any pattern under the archive option that will find my framework. Second, my build only produces a MyProject.framework and not MyProject.framework.tar.gz. Anyone help with this? I figured out the first part of my problem. It turns out the pattern I need is dist/** and not dist/*. It does not however produce a tar file. Should that be happening automatically ro do I just need to add a shell command to build it? I believe that the tar.gz file is now automatically generated by the latest version of the build.xml files. Can you replace the build.xml file in your framework project with one from a new Framework project? Dave ___ 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: Hudson and setupWorkspace.sh
I believe that the tar.gz file is now automatically generated by the latest version of the build.xml files. Can you replace the build.xml file in your framework project with one from a new Framework project? the general hudson answer, though, is that hudson does not tar anything ... all it does is run your build.xml and copy what you tell it to copy. if you want to tar your build products, your build script needs to tar them. ms ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Hudson and setupWorkspace.sh
Oh, and on my frameworks that I build in hudson, I have this setup for the Archive the Artifacts hudson setting: dist/*.framework/**/* This is what puts MyFramework.framework in the Last Successful Artifacts directory. Dave On Oct 14, 2009, at 1:42 PM, David Avendasora wrote: Hi Frank, On Oct 14, 2009, at 11:30 AM, Mr. Frank Cobia wrote: 4) I can not get Hudson to Archive the Artifacts for framework builds when set to $WORKSPACE/MyProject/dist/*.framework. The configuration screen tells me that $WORKSPACE/MyProject/dist does exist but the build throws an error saying it can not find / Developer/Hudson/Home/jobs/MyProject/workspace/MyProject/dist/ *.framework. Hmmm not sure on this one, but once you change the Local module directory (see #1) then maybe that will fix this too. I still can not figure this one out. The console output actually suggested what to put because it said it found things there, but when I did, it gave an error about them not being there. Since I compile my frameworks into the apps, I do not need the standalone frameworks so i guess it is not a big deal. I just wanted to make sure the framework was around for the app to pickup when it builds. Mike's setupWorkspace.sh simply grabs the framework's tar.gz file and extracts the framework into your project's Root/Library/ Frameworks (if I remember correctly). Obviously you could change the script to just grab the MyFramework.framework folder itself instead and copy it. There's a number of ways of hacking/changing mike's script to conform to your needs. I have changed my version to create a symlink to any frameworks in .classpath that are also in the Hudson jobs directory. This removes the step of copying and extracting and makes the build even faster. I also added the ability to specify more than just simply the version of WO because we have different versions of internal frameworks as well. I've attached my setupWorkspace.sh in case you (or anyone else) is interested. Mike's file is a great place to start, but don't let it limit you. Dave setupTVWorkspace.sh.zip ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/webobjects%40avendasora.com This email sent to webobje...@avendasora.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
D2W and stored procedures
What is the recommended way to use a stored procedure within a D2W Query? My inclination is to create/use a fetchSpecification that uses the sp along with ERD2WQueryPage. If I do take that approach however, will other query components on the page be affected (in other words, does the FS override query bindings; how are the results filtered)? ___ 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
Location: header to get from webobjects app in iframe to static master website and back
The WebObjects application I have built is running in an iFrame in another website which is built statically. Now the question was to be able to send links to specific information about performances (it's for a theater) that is in the WebObjects application. That in itself was accomplished with a Direct Action that points to a specific performance, something along the line of http://www.sometheater.nl/apps/WebObjects/reservation.woa/wa/showPerformance?performnanceid=999. That is also what I am using to point from a HTML page to a specific performance in the iFrame. The question was then asked that it would be nice to have the whole website around it, so that people get pointed back to the website. Getting the complete website around it is not too difficult: just send a Location redirect if there is a request that does not come from the master website pages (in the call to the directAction I would add some variable FromMasterWebsite=yes that would assume the application running as an iFrame in the website). First question is how to get the Location: redirect running? I tried response.appendHeader(http://www.sometheater.nl;, Location); to add to the response header, but that does not seem to be enough. Second question is how can I get point from the master website to the same performance? Is there some trickery with javascript that would accomplish in a way that the website would still be able to be loaded as static pages, but having the ability to call via a javascript:onload() or something that would point to the correct DirectAction link and performanceid? Regards, Johan Henselmans http://www.netsense.nl Tel: +31-20-6267538 Fax: +31-20-6279159 ___ 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: Hudson and setupWorkspace.sh
Mike's setupWorkspace.sh simply grabs the framework's tar.gz file and extracts the framework into your project's Root/Library/ Frameworks (if I remember correctly). Obviously you could change the script to just grab the MyFramework.framework folder itself instead and copy it. There's a number of ways of hacking/changing mike's script to conform to your needs. I have changed my version to create a symlink to any frameworks in .classpath that are also in the Hudson jobs directory. This removes the step of copying and extracting and makes the build even faster. I also added the ability to specify more than just simply the version of WO because we have different versions of internal frameworks as well. I am beginning to think maybe I have my project in Eclipse setup incorrectly. Looking at Mike's script and your script, it expects the frameworks that the app depends on have and entry in the .classpath file that looks like: path=WOFramework/MyFramework When I add a framework to an app in Eclipse I just add it under Build Path - Configure Build Path - Projects. But the entry in the classpath file is a different kind of entry than the one for the Wonder and System frameworks. The most important difference in this context being that the path does not start with WOFramework. Am I setting up my project in Eclipse incorrectly or is this just a difference I need to incorporate into the setup script for Hudson? Mike's file is a great place to start, but don't let it limit you. I see that now. I wanted to stick as close as possible so I would not have a lot of modifications to make in the future if things change and Mike updates his script (why do the work myself :). But as I am beginning to understand how all this works I can see that it is not too difficult to do and it will be better to have a script specifically for my environment. Frank ___ 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: Location: header to get from webobjects app in iframe to static master website and back
Hi Johan, On Oct 14, 2009, at 12:03 PM, Johan Henselmans wrote: The WebObjects application I have built is running in an iFrame in another website which is built statically. Now the question was to be able to send links to specific information about performances (it's for a theater) that is in the WebObjects application. That in itself was accomplished with a Direct Action that points to a specific performance, something along the line of http://www.sometheater.nl/apps/WebObjects/reservation.woa/wa/showPerformance?performnanceid=999 . That is also what I am using to point from a HTML page to a specific performance in the iFrame. The question was then asked that it would be nice to have the whole website around it, so that people get pointed back to the website. Getting the complete website around it is not too difficult: just send a Location redirect if there is a request that does not come from the master website pages (in the call to the directAction I would add some variable FromMasterWebsite=yes that would assume the application running as an iFrame in the website). First question is how to get the Location: redirect running? I tried response.appendHeader(http://www.sometheater.nl;, Location); to add to the response header, but that does not seem to be enough. Return a WORedirect or ERXRedirect? Second question is how can I get point from the master website to the same performance? Is there some trickery with javascript that would accomplish in a way that the website would still be able to be loaded as static pages, but having the ability to call via a javascript:onload() or something that would point to the correct DirectAction link and performanceid? You could redirect to http://www.sometheater.nl?performnanceid=999 and then parse that in the onLoad and set the iFrame location. The problem with that is is would stick unless you somehow later redirected to just http://www.sometheater.nl. Cookies are another idea, I don't recall if you can set a cookie when you redirect. I think you can, but the RFC is a little vague on that. 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: Hudson and setupWorkspace.sh
On Oct 14, 2009, at 4:05 PM, Mr. Frank Cobia wrote: Mike's setupWorkspace.sh simply grabs the framework's tar.gz file and extracts the framework into your project's Root/Library/ Frameworks (if I remember correctly). Obviously you could change the script to just grab the MyFramework.framework folder itself instead and copy it. There's a number of ways of hacking/changing mike's script to conform to your needs. I have changed my version to create a symlink to any frameworks in .classpath that are also in the Hudson jobs directory. This removes the step of copying and extracting and makes the build even faster. I also added the ability to specify more than just simply the version of WO because we have different versions of internal frameworks as well. I am beginning to think maybe I have my project in Eclipse setup incorrectly. Looking at Mike's script and your script, it expects the frameworks that the app depends on have and entry in the .classpath file that looks like: path=WOFramework/MyFramework When I add a framework to an app in Eclipse I just add it under Build Path - Configure Build Path - Projects. Bingo! Don't use Projects anymore. As of the New Hotness build of WOLips (January 09 timeframe) all frameworks are added under Libraries section of the Build Path even if they are Projects. WOLips will see that you have them as projects in your workspace and will use them instead of any compiled version in Library/Frameworks. If a project doesn't exist in your workspace for the framework, WOLips will automatically fall back to looking for it in the normal locations for a compiled framework. Dave ___ 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
First d2w app
Hello, I am doing a direct to web application for the first time. I expected that when I went to insert a new or edit an entity with a property that is a to one relationship, it would give me a popup button to select the correct relationship. But instead of a popup button it is a read only string. I can't find how to set the rule to make this a popup button, could someone help me on this? Thanks ___ 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: First d2w app
Thanks, that's what I needed. On Oct 14, 2009, at 4:40 PM, David LeBer wrote: On 2009-10-14, at 5:02 PM, Matt Hendley wrote: Hello, I am doing a direct to web application for the first time. I expected that when I went to insert a new or edit an entity with a property that is a to one relationship, it would give me a popup button to select the correct relationship. But instead of a popup button it is a read only string. I can't find how to set the rule to make this a popup button, could someone help me on this? Thanks See if question #2 helps: http://wiki.objectstyle.org/confluence/display/WO/D2W+Rules+Reference+-+Cookbook+-+FAQ ;david -- David LeBer Codeferous Software 'co-def-er-ous' adj. Literally 'code-bearing' site: http://codeferous.com blog: http://davidleber.net profile:http://www.linkedin.com/in/davidleber twitter:http://twitter.com/rebeld -- Toronto Area Cocoa / WebObjects developers group: http://tacow.org ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Hudson and setupWorkspace.sh
On Oct 14, 2009, at 4:22 PM, David Avendasora wrote: On Oct 14, 2009, at 4:05 PM, Mr. Frank Cobia wrote: Mike's setupWorkspace.sh simply grabs the framework's tar.gz file and extracts the framework into your project's Root/Library/ Frameworks (if I remember correctly). Obviously you could change the script to just grab the MyFramework.framework folder itself instead and copy it. There's a number of ways of hacking/changing mike's script to conform to your needs. I have changed my version to create a symlink to any frameworks in .classpath that are also in the Hudson jobs directory. This removes the step of copying and extracting and makes the build even faster. I also added the ability to specify more than just simply the version of WO because we have different versions of internal frameworks as well. I am beginning to think maybe I have my project in Eclipse setup incorrectly. Looking at Mike's script and your script, it expects the frameworks that the app depends on have and entry in the .classpath file that looks like: path=WOFramework/MyFramework When I add a framework to an app in Eclipse I just add it under Build Path - Configure Build Path - Projects. Bingo! Don't use Projects anymore. As of the New Hotness build of WOLips (January 09 timeframe) all frameworks are added under Libraries section of the Build Path even if they are Projects. WOLips will see that you have them as projects in your workspace and will use them instead of any compiled version in Library/Frameworks. If a project doesn't exist in your workspace for the framework, WOLips will automatically fall back to looking for it in the normal locations for a compiled framework. Dave About that, I have a related question... I tried to go all workspace not too long ago, and found that I could not get the frameworks to build properly with nothing Wonder related in the /Library/Frameworks folder. If I do an ant frameworks.install then everything is cool. I suspect this is because of the ERJars...? Anyway, is it possible to do that? Go completely clean in the /Library/Frameworks folder and work with all the wonder frameworks in the workspace only? Ramsey smime.p7s Description: S/MIME cryptographic signature ___ 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: Community machine
On Oct 13, 2009, at 7:36 PM, Pascal Robert wrote: Hello everyone, I'm about to create a Xen virtual machine that people can use to host their own WO open source projects/tools. I was planning to install: - Apache httpd 2.2 - WO 5.4.3 with Wonder's version of JavaMonitor and wotaskd - FrontBase, MySQL and PostgreSQL - SVN - Hudson But before I finish the setup, I want to know if any of you have a use for it. Sounds interesting. I think it would be nice also if it were perhaps running some of the wonder demo apps. Maybe run a copy of BugTracker for instance. Ramsey smime.p7s Description: S/MIME cryptographic signature ___ 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: Community machine
- Ramsey Lee Gurley rgur...@mac.com a écrit : On Oct 13, 2009, at 7:36 PM, Pascal Robert wrote: Hello everyone, I'm about to create a Xen virtual machine that people can use to host their own WO open source projects/tools. I was planning to install: - Apache httpd 2.2 - WO 5.4.3 with Wonder's version of JavaMonitor and wotaskd - FrontBase, MySQL and PostgreSQL - SVN - Hudson But before I finish the setup, I want to know if any of you have a use for it. Sounds interesting. I think it would be nice also if it were perhaps running some of the wonder demo apps. Maybe run a copy of BugTracker for instance. Ramsey I don't know if I can find the time to actually be able to build and run BugTracker :-) But yes, running Wonder demo apps is one of the objectives. ___ 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