WO5.4 app deployed on Tiger: SSL Problem
I have an app developed on a Leopard box in WO5.4 and then deployed on a Tiger server. In deployment, the WO5.4 frameworks are bundled into the application package, so (I hope) the application uses nothing on the Tiger system. (The application doesn't use Wonder.) The deployed application works perfectly on Tiger - about which I am impressed - all of the functionality is just fine. Things only go wrong when I turn on SSL. The point at which problems occur is the redirect from the application's url (http://gamp.murdoch.edu.au/cgi-bin/WebObjects/CASE.woa) to the SSL based login page. The browser reports: Safari can¹t open the page ³https://gamp.murdoch.edu.au:433/cgi-bin/WebObjects/Cafe.woa/wa/Login/startL ogin² because it could not connect to the server ³gamp.murdoch.edu.au². This corresponds to what I see in debug traces. In the default Direct Action, I create a WORedirect component, set its URL to the startLogin¹ action (see above) and then return the component. After this point, nothing appears in the logs. I know the login page component is never instantiated, so presumably the problem is in the redirect to an SSL address. Also, dispatchRequest() on the application object is never called after returning the WORedirect page. The identical code in other applications works fine when deployed as WO5.3 on the Tiger server. Does anyone know if WO5.4 handles SSL in some different way. (Do I need to call 'secureMode(true)' on the WOContext.) Are there any suggestion for how I might debug this problem? (Unfortunately, I don't have access to a Leopard server with SSL.) I did turned on all the debug flags, but still there is silence after attempting to return the WORedirect page. Thanks Michael Scott ___ 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 [EMAIL PROTECTED]
Re: multiple model usage example
That would need to be an ER Model I take it. Again, do you happen to have a snippet of code taking multiple entity modeler defined models, overriding those settings, etc, and then having a joined model group.. or should this not be in a model group. I'm confused as to how this is all done w/ Wonder as I've also been trying to use ModelConnector and other PracticalWO Frameworks solutions to the same. On Sun, Jul 27, 2008 at 10:48 PM, Guido Neitzer [EMAIL PROTECTED] wrote: On 27.07.2008, at 23:28, Joe Little wrote: Ok. I've banged my head on this one a lot. ConfigurationManager allows you to change anything except for the database itself. ?? dbConnectURLGLOBAL=jdbc:postgresql://localhost/meetings That can also be set on a per model base. cug -- http://www.event-s.net ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Re: multiple model usage example
On 28/07/2008, at 3:48 PM, Guido Neitzer wrote: On 27.07.2008, at 23:28, Joe Little wrote: Ok. I've banged my head on this one a lot. ConfigurationManager allows you to change anything except for the database itself. ?? dbConnectURLGLOBAL=jdbc:postgresql://localhost/meetings That can also be set on a per model base. Joe, in case I wasn't clear... the javadoc for ConfigurationManager tells you what 'properties' to set. So in your Properties file (or Java Monitor additional args) you set the properties as specified. with regards, -- Lachlan Deck ___ 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 [EMAIL PROTECTED]
Re: Unable to release locks held by deallocated EOEditingContext
cug, Yes, I need to look at that – I've been dragging my feet about integrating Wonder. Thanks for the nudge. - Joe On Jul 27, 2008, at 11:48:36, Guido Neitzer wrote: Is there no chance of using Wonder and the ERXEC autolocking? It solves MANY problems and not only problems that are locking related. cug On 27.07.2008, at 12:11, Joe Moreno wrote: Art, I tracked down my editing context bug using the LockErrorScreamerEditingContext (LESEC). Every place I created an EOEdtingContext, in my app and the supporting frameworks, I changed it to the LESEC which made it easy to balance out my EC locks and unlocks. It seems to be working well. Thanks, Joe On Jul 26, 2008, at 10:50:50, Joe Moreno wrote: Art, Thanks for pointing me toward MultiECLockManager. I will take a look at that. I used the LockErrorScreamerEditingContext found here: http://en.wikibooks.org/wiki/Programming:WebObjects/EOF/Using_EOF/Context_and_Database_Locking That was a big help and I was able to correct most of the lock/ unlock EC issues except in a couple places where I still get the following exception. These exceptions are reproducible, but I haven't been able to pinpoint the problem. [2008-07-25 23:54:21 PDT] WorkerThread13 1 row(s) processed [2008-07-25 23:54:21 PDT] WorkerThread13 === Commit Internal Transaction [2008-07-25 23:54:21 PDT] WorkerThread13 --- Unlocked in WorkerThread13 (1 remaining) [2008-07-25 23:54:21 PDT] WorkerThread13 --- Unlocked in WorkerThread13 (0 remaining) [2008-07-25 23:54:21 PDT] Finalizer Unable to release locks held by a deallocated EOEditingContext. [2008-07-25 23:54:21 PDT] Finalizer java.lang.IllegalStateException: Illegal Lock usage: unlocking thread not owner. at com .webobjects.foundation.NSRecursiveLock.unlock(NSRecursiveLock.java: 207) at com .webobjects .eocontrol.EOEditingContext.unlock(EOEditingContext.java:4720) at com .webobjects .eocontrol.EOEditingContext._dispose(EOEditingContext.java:1158) at com .webobjects .eocontrol.EOEditingContext.finalize(EOEditingContext.java:1178) at java.lang.ref.Finalizer.invokeFinalizeMethod(Native Method) at java.lang.ref.Finalizer.runFinalizer(Finalizer.java:83) at java.lang.ref.Finalizer.access$100(Finalizer.java:14) at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:160) [2008-07-25 23:54:21 PDT] WorkerThread13 --- Unlocked in WorkerThread13 (0 remaining) [2008-07-25 23:54:33 PDT] WorkerThread14 +++ Lock number (1) in WorkerThread14 [2008-07-25 23:54:33 PDT] WorkerThread14 === Begin Internal Transaction Thanks, Joe On Jul 25, 2008, at 22:59:22, Art Isbell wrote: On Jul 25, 2008, at 4:41 PM, Joe Moreno wrote: I'm not quite sure what is causing these exceptions which I cannot consistently reproduce. [2008-07-22 14:47:10 PDT] Finalizer Unable to release locks held by a deallocated EOEditingContext. [2008-07-22 14:47:10 PDT] Finalizer java.lang.IllegalStateException: Illegal Lock usage: unlocking thread not owner. The Finalizer thread is trying to unlock an EOEditingContext that a different thread locked which is not allowed. So your code is not unlocking an EOEditingContext that it locked. Look for unbalanced lock()/unlock() pairs. If you're attempting to manage EOEditingContext locking manually, you might want to consider using MultiECLockManager (source available by searching Google) to manage EOEditingContext locking for you automatically and flawlessly. Aloha, Art ___ 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/joemoreno%40mac.com This email sent to [EMAIL PROTECTED] ___ 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/joemoreno%40mac.com This email sent to [EMAIL PROTECTED] ___ 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/lists%40event-s.net This email sent to [EMAIL PROTECTED] -- http://www.event-s.net ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Re: multiple model usage example
On 28/07/2008, at 4:22 PM, Joe Little wrote: That would need to be an ER Model I take it. No... it's your model(s). Again, do you happen to have a snippet of code taking multiple entity modeler defined models, overriding those settings, etc, and then having a joined model group.. or should this not be in a model group. I'm confused as to how this is all done w/ Wonder as I've also been trying to use ModelConnector and other PracticalWO Frameworks solutions to the same. On Sun, Jul 27, 2008 at 10:48 PM, Guido Neitzer [EMAIL PROTECTED] wrote: On 27.07.2008, at 23:28, Joe Little wrote: Ok. I've banged my head on this one a lot. ConfigurationManager allows you to change anything except for the database itself. ?? dbConnectURLGLOBAL=jdbc:postgresql://localhost/meetings That can also be set on a per model base. cug -- http://www.event-s.net ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/lachlan.deck%40gmail.com This email sent to [EMAIL PROTECTED] with regards, -- Lachlan Deck ___ 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 [EMAIL PROTECTED]
Re: WO5.4 app deployed on Tiger: SSL Problem
this doesn't sound like a code problem at all - more like an apache config problem. it sounds to me like you don't have the SSL port open, or you don't have an SSL web site configured for that domain. first of all just make sure you can connect to https://gamp.murdoch.edu.au i'm guessing you'll find you can't Simon On 28 Jul 2008, at 08:17, Michael Scott wrote: Oops – perhaps this belongs on the deploy list. I was thinking from the perspective of code. I’ll post it in the other place. On 28/07/08 2:09 PM, Michael Scott [EMAIL PROTECTED] wrote: I have an app developed on a Leopard box in WO5.4 and then deployed on a Tiger server. In deployment, the WO5.4 frameworks are bundled into the application package, so (I hope) the application uses nothing on the Tiger system. (The application doesn't use Wonder.) The deployed application works perfectly on Tiger - about which I am impressed - all of the functionality is just fine. Things only go wrong when I turn on SSL. The point at which problems occur is the redirect from the application's url (http://gamp.murdoch.edu.au/cgi-bin/WebObjects/CASE.woa ) to the SSL based login page. The browser reports: Safari can’t open the page “https://gamp.murdoch.edu.au:433/cgi-bin/WebObjects/Cafe.woa/wa/Login/startLogin ” because it could not connect to the server “gamp.murdoch.edu.au”. This corresponds to what I see in debug traces. In the default Direct Action, I create a WORedirect component, set its URL to the ‘startLogin’ action (see above) and then return the component. After this point, nothing appears in the logs. I know the login page component is never instantiated, so presumably the problem is in the redirect to an SSL address. Also, dispatchRequest() on the application object is never called after returning the WORedirect page. The identical code in other applications works fine when deployed as WO5.3 on the Tiger server. Does anyone know if WO5.4 handles SSL in some different way. (Do I need to call 'secureMode(true)' on the WOContext.) Are there any suggestion for how I might debug this problem? (Unfortunately, I don't have access to a Leopard server with SSL.) I did turned on all the debug flags, but still there is silence after attempting to return the WORedirect page. Thanks Michael Scott ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/m.scott%40murdoch.edu.au This email sent to [EMAIL PROTECTED] ___ 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/simon_mclean%40mac.com This email sent to [EMAIL PROTECTED] ___ 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 [EMAIL PROTECTED]
Re: WO5.4 app deployed on Tiger: SSL Problem
As Simon says, plus see below. Paul On 28 Jul 2008, at 07:09, Michael Scott wrote: I have an app developed on a Leopard box in WO5.4 and then deployed on a Tiger server. In deployment, the WO5.4 frameworks are bundled into the application package, so (I hope) the application uses nothing on the Tiger system. (The application doesn't use Wonder.) The deployed application works perfectly on Tiger - about which I am impressed - all of the functionality is just fine. Things only go wrong when I turn on SSL. The point at which problems occur is the redirect from the application's url (http://gamp.murdoch.edu.au/cgi-bin/WebObjects/CASE.woa ) to the SSL based login page. The browser reports: Safari can’t open the page “https://gamp.murdoch.edu.au:433/cgi-bin/WebObjects/Cafe.woa/wa/Login/startLogin ” because it could not connect to the server “gamp.murdoch.edu.au”. HTTPS is usually on port 443. This corresponds to what I see in debug traces. In the default Direct Action, I create a WORedirect component, set its URL to the ‘startLogin’ action (see above) and then return the component. After this point, nothing appears in the logs. I know the login page component is never instantiated, so presumably the problem is in the redirect to an SSL address. Also, dispatchRequest() on the application object is never called after returning the WORedirect page. The identical code in other applications works fine when deployed as WO5.3 on the Tiger server. Does anyone know if WO5.4 handles SSL in some different way. (Do I need to call 'secureMode(true)' on the WOContext.) Are there any suggestion for how I might debug this problem? (Unfortunately, I don't have access to a Leopard server with SSL.) I did turned on all the debug flags, but still there is silence after attempting to return the WORedirect page. ___ 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 [EMAIL PROTECTED]
Eclipse WO + SVN
can anyone help me / give me a link with a tutorial how to correctly setup SVN with Eclipse ? Regards Amedeo ___ 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 [EMAIL PROTECTED]
Parse URL
Hi Lists, I have made a configuration in my /etc/hosts file like so: 127.0.0.1 www.adminpage.com 127.0.0.1 www.userpage.com 127.0.0.1 www.memberpage.com 127.0.0.1 localhost and i have 3 WOComponent page namely: WOAdminPage WOUserPage WOMemberPage Main How do i tell my default Main component page to parse the URL and redirect the user based on the URL entered. For example: if i will enter www.adminpage.com:somePort it will parse this URL and redirect a page to point to a component named WOAdminPage same with the rest of the pages. So far I've tried using WOComponent, WOApplication and InetAddress's class to do some parsing routine but I always endup with the localhost and the local IP address. I can't seem to get or capture the URL entered by the user. How do i do URL parsing? Thanks in advance. Regards, -- -- -- -- -- -- -- -- -- -- -- -- welemski -- -- -- -- -- -- -- -- -- -- -- ___ 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 [EMAIL PROTECTED]
Re: Parse URL
apache mod_rewrite is your friend So in your site config for 127.0.0.1 www.adminpage.com do something like RewriteCond %{HTTP_HOST} ^adminpage\.com$ [NC] RewriteCond %{REQUEST_URI} ^/$ RewriteRule ^/(.*) http://www.adminpage.com/cgi-bin/WebObjects/YourApp.woa/wa/DirectAction/daThatReturnsAdminPage [L,R] Simon On 28 Jul 2008, at 12:05, .::welemski::. wrote: How do i do URL parsing? ___ 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 [EMAIL PROTECTED]
Re: Parse URL
Hi, I'd like to use mod_rewrite but i want to make Webobjects do the parsing as I don't want to restart apache everytime i add a new url. All I need is to get or capture the URL entered by the user and let Weobjects do the redirection not the rules inside the config. Is there a way to capture that URL and redirect to another component page? On 7/28/08, Simon McLean [EMAIL PROTECTED] wrote: apache mod_rewrite is your friend So in your site config for 127.0.0.1 www.adminpage.com do something like RewriteCond %{HTTP_HOST} ^adminpage\.com$ [NC] RewriteCond %{REQUEST_URI} ^/$ RewriteRule ^/(.*) http://www.adminpage.com/cgi-bin/WebObjects/YourApp.woa/wa/DirectAction/daThatReturnsAdminPage [L,R] Simon On 28 Jul 2008, at 12:05, .::welemski::. wrote: How do i do URL parsing? -- -- -- -- -- -- -- -- -- -- -- -- welemski -- -- -- -- -- -- -- -- -- -- -- ___ 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 [EMAIL PROTECTED]
Re: Eclipse WO + SVN
Install Subversion Binaries for OS X (these binaries have the necessary JavaHL bindings: (Just download and run the installer) http://www.collab.net/downloads/community/ Install Subclipse Plugin (instructions) http://homepage.mac.com/kelleherk/iblog/C1837526061/E20070705125504/index.html On Jul 28, 2008, at 5:26 AM, Amedeo Mantica wrote: can anyone help me / give me a link with a tutorial how to correctly setup SVN with Eclipse ? Regards Amedeo ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/kieran_lists%40mac.com This email sent to [EMAIL PROTECTED] ___ 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 [EMAIL PROTECTED]
Re: multiple model usage example
Hi Joe, Not sure if this is what you are looking for here is an example of entries in Properties for access to different databases: snip # # ERExtensions - ERXModelGroup properties # er.extensions.ERXModelGroup.prototypeModelNames=WKPrototypes cheetah.URL = jdbc:mysql://host1/cheetah?capitalizeTypenames=true cheetah.DBUser = @@cheetah.dbuser@@ cheetah.DBPassword = @@cheetah.dbpassword@@ cheetah.DBDriver = cheetah.DBPlugin = cheetah.DBJDBCInfo = demography.URL = jdbc:mysql://host2/demography?capitalizeTypenames=true demography.DBUser = @@demography.dbuser@@ demography.DBPassword = @@demography.dbpassword@@ demography.DBDriver = demography.DBPlugin = demography.DBJDBCInfo = /snip IIRC, ERXModelGroup is where a lot of model startup entity loading munging happens, so examining the source there can indicate what is happening, how it works, and what Properties entries affect what. HTH, Kieran On Jul 28, 2008, at 2:22 AM, Joe Little wrote: That would need to be an ER Model I take it. Again, do you happen to have a snippet of code taking multiple entity modeler defined models, overriding those settings, etc, and then having a joined model group.. or should this not be in a model group. I'm confused as to how this is all done w/ Wonder as I've also been trying to use ModelConnector and other PracticalWO Frameworks solutions to the same. On Sun, Jul 27, 2008 at 10:48 PM, Guido Neitzer [EMAIL PROTECTED] wrote: On 27.07.2008, at 23:28, Joe Little wrote: Ok. I've banged my head on this one a lot. ConfigurationManager allows you to change anything except for the database itself. ?? dbConnectURLGLOBAL=jdbc:postgresql://localhost/meetings That can also be set on a per model base. cug -- http://www.event-s.net ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/kieran_lists%40mac.com This email sent to [EMAIL PROTECTED] ___ 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 [EMAIL PROTECTED]
Re: Eclipse WO + SVN
I got the impression a while back that some were moving from subclipse to subversive? Recommendations on this? This year I started using subversive on one of my projects where I needed to do a lot of re-factoring that made exclusively using the command line insufficient. I still am in the command-line habit for the most part though. -- Jonathan On Jul 28, 2008, at 7:58 AM, Kieran Kelleher wrote: Install Subversion Binaries for OS X (these binaries have the necessary JavaHL bindings: (Just download and run the installer) http://www.collab.net/downloads/community/ Install Subclipse Plugin (instructions) http://homepage.mac.com/kelleherk/iblog/C1837526061/E20070705125504/ index.html On Jul 28, 2008, at 5:26 AM, Amedeo Mantica wrote: can anyone help me / give me a link with a tutorial how to correctly setup SVN with Eclipse ? Regards Amedeo ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/kieran_lists% 40mac.com This email sent to [EMAIL PROTECTED] ___ 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/jricker%40vt.edu This email sent to [EMAIL PROTECTED] ___ 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 [EMAIL PROTECTED]
Re: Eclipse WO + SVN
I think people starting out should start with subversive, rather than subclipse: Relevant posts from the woproject list: http://wiki.objectstyle.org/confluence/display/WOL/mail/3047983 http://wiki.objectstyle.org/confluence/display/WOL/mail/3048016 -- Jonathan On Jul 28, 2008, at 8:15 AM, Jonathan Ricker wrote: I got the impression a while back that some were moving from subclipse to subversive? Recommendations on this? This year I started using subversive on one of my projects where I needed to do a lot of re-factoring that made exclusively using the command line insufficient. I still am in the command-line habit for the most part though. -- Jonathan On Jul 28, 2008, at 7:58 AM, Kieran Kelleher wrote: Install Subversion Binaries for OS X (these binaries have the necessary JavaHL bindings: (Just download and run the installer) http://www.collab.net/downloads/community/ Install Subclipse Plugin (instructions) http://homepage.mac.com/kelleherk/iblog/C1837526061/ E20070705125504/index.html On Jul 28, 2008, at 5:26 AM, Amedeo Mantica wrote: can anyone help me / give me a link with a tutorial how to correctly setup SVN with Eclipse ? Regards Amedeo ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/kieran_lists %40mac.com This email sent to [EMAIL PROTECTED] ___ 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/jricker% 40vt.edu This email sent to [EMAIL PROTECTED] ___ 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/jricker%40vt.edu This email sent to [EMAIL PROTECTED] ___ 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 [EMAIL PROTECTED]
Re: Problem with webobjects - tag occurred before another tag
Hi Mike, can you please tell me where to find this preference? warn if missing key in NSDictionary/NSArray I can't seem to find it in eclipse 3.3.2 and WOLips 3.3.5304 plugin Please keep questions on the mailing list -- Preferences=WOLips=Binding Validation. 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 [EMAIL PROTECTED]
computeQueryDictionaryInContext error
Hello, I updated one of my OSX Server's over the weekend, including the installation of WO 5.4.2. Since then, I've begun seeing this error on queries related to components with a particular WOAction binding (/wa/ pagename?grid=n). A quick Google only terms of references of that error with 5.4/5.3 mismatches. Are there any other circumstances this would happen under? Here's the error... Jul 28 03:41:25 srn[16001] (ERXNSLogLog4jBridge.java:41) WARN NSLog - er.extensions.ERXDirectActionRequestHandler: Exception while handling action named news on action class null :java.lang.RuntimeException: computeQueryDictionaryInContext failed. any thoughts? Jaime Magiera Sensory Research http://www.sensoryresearch.net ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Re: Eclipse WO + SVN
Yeah, I switched to the command-line about a year ago and haven't looked back. However, if you do use Subclipse, make sure you open Preferences, go to Team-SVN and click on SVNKit (Pure Java) instead of JavaHL (JNI). I found that with JavaHL if you do a commit across multiple Eclipse projects, it breaks it up into one commit per project, which really pisses off the build guys at my job ;-). If you're really set on using a GUI, there are also a couple of recently-released native Cocoa svn clients that you might want to take a look at: http://jadeohlhauser.com/2008/c_vs_v/. The other thing that's very handy for using svn on a Mac is to get the fmdiff scripts (http://ssel.vub.ac.be/ssel/internal:fmdiff) that let you use FileMerge to resolve conflicts. Much nicer than either the command-line or any of the Eclipse tools. Bruce On Jul 28, 2008, at 8:15 AM, Jonathan Ricker wrote: I got the impression a while back that some were moving from subclipse to subversive? Recommendations on this? This year I started using subversive on one of my projects where I needed to do a lot of re-factoring that made exclusively using the command line insufficient. I still am in the command-line habit for the most part though. -- Jonathan On Jul 28, 2008, at 7:58 AM, Kieran Kelleher wrote: Install Subversion Binaries for OS X (these binaries have the necessary JavaHL bindings: (Just download and run the installer) http://www.collab.net/downloads/community/ Install Subclipse Plugin (instructions) http://homepage.mac.com/kelleherk/iblog/C1837526061/E20070705125504/index.html On Jul 28, 2008, at 5:26 AM, Amedeo Mantica wrote: can anyone help me / give me a link with a tutorial how to correctly setup SVN with Eclipse ? Regards Amedeo ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/kieran_lists%40mac.com This email sent to [EMAIL PROTECTED] ___ 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/jricker %40vt.edu This email sent to [EMAIL PROTECTED] ___ 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/bruce%40iterative.com This email sent to [EMAIL PROTECTED] ___ 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 [EMAIL PROTECTED]
Re: Not able to configure build path
Hi Wen, I had this problem before. What it seems to be doing is that it looks at /Library first then at /System/Library. So if you delete the copy in /Library, it will take the /System/Library copy ~Mersida --- On Mon, 7/28/08, Xia, Wen [EMAIL PROTECTED] wrote: From: Xia, Wen [EMAIL PROTECTED] Subject: Not able to configure build path To: Development WebObjects webobjects-dev@lists.apple.com Date: Monday, July 28, 2008, 12:32 PM For some reason, I can't configure the build path to refer to the /System/Library/Frameworks/JavaWOExtensions.framework. It keeps referring to the the /Library/Frameworks/JavaWOExtensions.framework. The steps I did: - Right-click on the project name - Select Build Path - Configure Build Path - Open the Libraries pane - Click on WebObjects Frameworks and click Edit... - Open the triangle next to Local - Locate JavaWOExtensions and uncheck the checkbox - Open the triangle next to System - Locate JavaWOExtensions and click on the checkbox - Click Finish - Click OK for the JavaBuildPath dialog No error was given, but when I'm done, the JavaWOExtensions.jar still points to the /Library/Frameworks/JavaWOExtensions.framework folder. Does anyone know what might be wrong? Thank you. Wen ___ 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/muc154%40yahoo.com This email sent to [EMAIL PROTECTED] ___ 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 [EMAIL PROTECTED]
Re: Not able to configure build path
I tried to delete the the copy in /Library, it still ignores the System/Library copy. It ³pretends² to be configured using the System/Library copy, but the MacOSClassPath.txt still don¹t have the entry: WOROOT/Library/Frameworks/JavaWOExtensions.framework/Resources/Java/JavaWOEx tensions.jar On 7/28/08 9:39 AM, Mersida Kurti [EMAIL PROTECTED] wrote: Hi Wen, I had this problem before. What it seems to be doing is that it looks at /Library first then at /System/Library. So if you delete the copy in /Library, it will take the /System/Library copy ~Mersida --- On Mon, 7/28/08, Xia, Wen [EMAIL PROTECTED] wrote: From: Xia, Wen [EMAIL PROTECTED] Subject: Not able to configure build path To: Development WebObjects webobjects-dev@lists.apple.com Date: Monday, July 28, 2008, 12:32 PM For some reason, I can't configure the build path to refer to the /System/Library/Frameworks/JavaWOExtensions.framework. It keeps referring to the the /Library/Frameworks/JavaWOExtensions.framework. The steps I did: - Right-click on the project name - Select Build Path - Configure Build Path - Open the Libraries pane - Click on WebObjects Frameworks and click Edit... - Open the triangle next to Local - Locate JavaWOExtensions and uncheck the checkbox - Open the triangle next to System - Locate JavaWOExtensions and click on the checkbox - Click Finish - Click OK for the JavaBuildPath dialog No error was given, but when I'm done, the JavaWOExtensions.jar still points to the /Library/Frameworks/JavaWOExtensions.framework folder. Does anyone know what might be wrong? Thank you. Wen ___ 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/muc154%40yahoo.com This email sent to [EMAIL PROTECTED] ___ 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/wen.xia%40dof.ca.gov This email sent to [EMAIL PROTECTED] ___ 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 [EMAIL PROTECTED]
Identify a resource in apache webserver directory
Hello Group, I have some solution of finding webserver url by going thru WORequest object. I am looking for a more standard way of achieving this task. Could any one please advise best practice to retrieve/store a resource into a Apache Webserver directory. For Eg: I have a css file master.css stored in the following location in my server /Library/WebObjects/MyProject/master.css, how can I retrieve this file in my WOApp dynamically, either at dev/deploy times. Also, I would like to store few images at this location. Please advise me a best methodology to achieve this req. Thanks in advance. Thank You Shravan ___ 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 [EMAIL PROTECTED]
Re: Not able to configure build path
Thank you, Mersida. It did reflect in the UI after I restarted Eclipse. But the final result, the MacOSClassPath.txt still don¹t have the entry: WOROOT/Library/Frameworks/JavaWOExtensions.framework/Resources/Java/JavaWOEx tensions.jar Any other ideas? On 7/28/08 10:07 AM, Mersida Kurti [EMAIL PROTECTED] wrote: You would probably have to close Eclipse in order for the changes to take effect. --- On Mon, 7/28/08, Xia, Wen [EMAIL PROTECTED] wrote: From: Xia, Wen [EMAIL PROTECTED] Subject: Re: Not able to configure build path To: Mersida Kurti [EMAIL PROTECTED], Development WebObjects webobjects-dev@lists.apple.com Date: Monday, July 28, 2008, 12:49 PM Re: Not able to configure build path I tried to delete the the copy in /Library, it still ignores the System/Library copy. It ³pretends² to be configured using the System/Library copy, but the MacOSClassPath.txt still don¹t have the entry: WOROOT/Library/Frameworks/JavaWOExtensions.framework/Resources/Java/JavaWOExt ensions.jar On 7/28/08 9:39 AM, Mersida Kurti [EMAIL PROTECTED] wrote: Hi Wen, I had this problem before. What it seems to be doing is that it looks at /Library first then at /System/Library. So if you delete the copy in /Library, it will take the /System/Library copy ~Mersida --- On Mon, 7/28/08, Xia, Wen [EMAIL PROTECTED] wrote: From: Xia, Wen [EMAIL PROTECTED] Subject: Not able to configure build path To: Development WebObjects webobjects-dev@lists.apple.com Date: Monday, July 28, 2008, 12:32 PM For some reason, I can't configure the build path to refer to the /System/Library/Frameworks/JavaWOExtensions.framework. It keeps referring to the the /Library/Frameworks/JavaWOExtensions.framework. The steps I did: - Right-click on the project name - Select Build Path - Configure Build Path - Open the Libraries pane - Click on WebObjects Frameworks and click Edit... - Open the triangle next to Local - Locate JavaWOExtensions and uncheck the checkbox - Open the triangle next to System - Locate JavaWOExtensions and click on the checkbox - Click Finish - Click OK for the JavaBuildPath dialog No error was given, but when I'm done, the JavaWOExtensions.jar still points to the /Library/Frameworks/JavaWOExtensions.framework folder. Does anyone know what might be wrong? Thank you. Wen ___ 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/muc154%40yahoo.com This email sent to [EMAIL PROTECTED] ___ 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/wen.xia%40dof.ca.gov This email sent to [EMAIL PROTECTED] ___ 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 [EMAIL PROTECTED]
Re: DBEdit with MacIntel
I also miss it, but am not aware of any replacement. Chuck On Jul 28, 2008, at 7:45 AM, Mersida Kurti wrote: Hi David, Thanks for the reply. Have you found a replacement for DBedit? We'll surely miss it too. Thanks in advance. --- On Mon, 7/28/08, David Avendasora [EMAIL PROTECTED] wrote: From: David Avendasora [EMAIL PROTECTED] Subject: Re: DBEdit with MacIntel To: Mersida Kurti [EMAIL PROTECTED] Cc: WebObjects Dev Apple webobjects-dev@lists.apple.com Date: Monday, July 28, 2008, 10:41 AM This isn't an Intel thing, it is a Leopard (OS X 10.5.x) thing. DBEdit uses the Cocoa-Java bridge and will not work on any OS beyond Tiger (10.4). It will be sorely missed by many. Or at least me. Dave On Jul 23, 2008, at 2:27 PM, Mersida Kurti wrote: Hi everyone, Just wondering if anyone has had a chance to get DBEdit to work with the mac intels. I downloaded mine and it says DBEdit quit unexpectedly. I wonder if its just me or everyone. I'm running on Mac OS 10.5.4 Thanks in advance for your help. ___ 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 [EMAIL PROTECTED] ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net This email sent to [EMAIL PROTECTED] -- 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 [EMAIL PROTECTED]
Re: multiple model usage example
On Mon, Jul 28, 2008 at 5:08 AM, Kieran Kelleher [EMAIL PROTECTED] wrote: Hi Joe, Not sure if this is what you are looking for here is an example of entries in Properties for access to different databases: snip # # ERExtensions - ERXModelGroup properties # er.extensions.ERXModelGroup.prototypeModelNames=WKPrototypes cheetah.URL = jdbc:mysql://host1/cheetah?capitalizeTypenames=true cheetah.DBUser = @@cheetah.dbuser@@ cheetah.DBPassword = @@cheetah.dbpassword@@ cheetah.DBDriver = cheetah.DBPlugin = cheetah.DBJDBCInfo = demography.URL = jdbc:mysql://host2/demography?capitalizeTypenames=true demography.DBUser = @@demography.dbuser@@ demography.DBPassword = @@demography.dbpassword@@ demography.DBDriver = demography.DBPlugin = demography.DBJDBCInfo = /snip IIRC, ERXModelGroup is where a lot of model startup entity loading munging happens, so examining the source there can indicate what is happening, how it works, and what Properties entries affect what. I'll look into the code. Never looked inside Wonder source and was hoping for examples on how to use it. So, there isn't posted anyway examples on using ERXModelGroup and loading models into an app within Application? Again, I've been limited to the stuff that WO just gives you to date, which is all automatic. My understanding currently ends there. HTH, Kieran On Jul 28, 2008, at 2:22 AM, Joe Little wrote: That would need to be an ER Model I take it. Again, do you happen to have a snippet of code taking multiple entity modeler defined models, overriding those settings, etc, and then having a joined model group.. or should this not be in a model group. I'm confused as to how this is all done w/ Wonder as I've also been trying to use ModelConnector and other PracticalWO Frameworks solutions to the same. On Sun, Jul 27, 2008 at 10:48 PM, Guido Neitzer [EMAIL PROTECTED] wrote: On 27.07.2008, at 23:28, Joe Little wrote: Ok. I've banged my head on this one a lot. ConfigurationManager allows you to change anything except for the database itself. ?? dbConnectURLGLOBAL=jdbc:postgresql://localhost/meetings That can also be set on a per model base. cug -- http://www.event-s.net ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/kieran_lists%40mac.com This email sent to [EMAIL PROTECTED] ___ 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 [EMAIL PROTECTED]
Re: DBEdit with MacIntel
On Jul 28, 2008, at 8:49 AM, Mike Schrag wrote: This isn't an Intel thing, it is a Leopard (OS X 10.5.x) thing. DBEdit uses the Cocoa-Java bridge and will not work on any OS beyond Tiger (10.4). It will be sorely missed by many. Or at least me. These discussions always end in me doing work :) We discussed this a while back. It seems that you are unable to replace dbEdit... :-P -- 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 [EMAIL PROTECTED]
Re: multiple model usage example
Hi Joe, AFAIK, if you just define properties below for each model using the syntax modelname.URL, modelname.DBUser, etc., all the models and their entities will be automatically loaded at startup by Wonder which checks for such properties at startup. In your Application constructor, after super(), all the models and entities will have been loaded by Wonder, so you can iterate thru models and/or entities and do what you like with them, for example .. // Make demography eomodel readonly boolean demographyIsReadOnly = ERXProperties .booleanForKeyWithDefault(demography.isReadOnlyEntities, false); if (demographyIsReadOnly) { EOModel demography = EOModelGroup.defaultGroup().modelNamed(demography); for (java.util.Enumeration demographyEntityEnumerator = demography.entities().objectEnumerator(); demographyEntityEnumerator .hasMoreElements();) { EOEntity entity = (EOEntity) demographyEntityEnumerator.nextElement(); entity.setReadOnly(true); } } Kieran On Jul 28, 2008, at 1:38 PM, Joe Little wrote: On Mon, Jul 28, 2008 at 5:08 AM, Kieran Kelleher [EMAIL PROTECTED] wrote: Hi Joe, Not sure if this is what you are looking for here is an example of entries in Properties for access to different databases: snip # # ERExtensions - ERXModelGroup properties # er.extensions.ERXModelGroup.prototypeModelNames=WKPrototypes cheetah.URL = jdbc:mysql://host1/cheetah?capitalizeTypenames=true cheetah.DBUser = @@cheetah.dbuser@@ cheetah.DBPassword = @@cheetah.dbpassword@@ cheetah.DBDriver = cheetah.DBPlugin = cheetah.DBJDBCInfo = demography.URL = jdbc:mysql://host2/demography? capitalizeTypenames=true demography.DBUser = @@demography.dbuser@@ demography.DBPassword = @@demography.dbpassword@@ demography.DBDriver = demography.DBPlugin = demography.DBJDBCInfo = /snip IIRC, ERXModelGroup is where a lot of model startup entity loading munging happens, so examining the source there can indicate what is happening, how it works, and what Properties entries affect what. I'll look into the code. Never looked inside Wonder source and was hoping for examples on how to use it. So, there isn't posted anyway examples on using ERXModelGroup and loading models into an app within Application? Again, I've been limited to the stuff that WO just gives you to date, which is all automatic. My understanding currently ends there. HTH, Kieran On Jul 28, 2008, at 2:22 AM, Joe Little wrote: That would need to be an ER Model I take it. Again, do you happen to have a snippet of code taking multiple entity modeler defined models, overriding those settings, etc, and then having a joined model group.. or should this not be in a model group. I'm confused as to how this is all done w/ Wonder as I've also been trying to use ModelConnector and other PracticalWO Frameworks solutions to the same. On Sun, Jul 27, 2008 at 10:48 PM, Guido Neitzer [EMAIL PROTECTED] s.net wrote: On 27.07.2008, at 23:28, Joe Little wrote: Ok. I've banged my head on this one a lot. ConfigurationManager allows you to change anything except for the database itself. ?? dbConnectURLGLOBAL=jdbc:postgresql://localhost/meetings That can also be set on a per model base. cug -- http://www.event-s.net ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/kieran_lists%40mac.com This email sent to [EMAIL PROTECTED] ___ 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 [EMAIL PROTECTED]
Re: Not able to configure build path
Wen, I found this, which clarifies things for me: WOROOT indicates the path whereWebObjects frameworks are installed. On Mac OS X, for example, WebObjects frameworks are located in the /System/Library/Frameworks directory and WOROOT is set to /System. ~Mersida http://127.0.0.1:7980/open?url=%2FUsers%2Fmuc154%2FDesktop%2FWOA_JSP_and_Servlets.pdfaction=1info=16s=e6j17MEmt1a1XOQlWE1LEXINIhM --- On Mon, 7/28/08, Mersida Kurti [EMAIL PROTECTED] wrote: From: Mersida Kurti [EMAIL PROTECTED] Subject: Re: Not able to configure build path To: Development WebObjects webobjects-dev@lists.apple.com, Xia, Wen [EMAIL PROTECTED] Date: Monday, July 28, 2008, 2:31 PM Hi Wen, I checked my machine and I see the same thing. I'm able to deploy and run my apps fine even though the class path is different. I don't know what to tell you. I think as long as the buildpath on eclipse is fine and you can see the jar file in there you should be fine. ~mersida --- On Mon, 7/28/08, Xia, Wen [EMAIL PROTECTED] wrote: From: Xia, Wen [EMAIL PROTECTED] Subject: Re: Not able to configure build path To: Development WebObjects webobjects-dev@lists.apple.com Date: Monday, July 28, 2008, 1:32 PM Re: Not able to configure build path Thank you, Mersida. It did reflect in the UI after I restarted Eclipse. But the final result, the MacOSClassPath.txt still don’t have the entry: WOROOT/Library/Frameworks/JavaWOExtensions.framework/Resources/Java/JavaWOExtensions.jar Any other ideas? On 7/28/08 10:07 AM, Mersida Kurti [EMAIL PROTECTED] wrote: You would probably have to close Eclipse in order for the changes to take effect. --- On Mon, 7/28/08, Xia, Wen [EMAIL PROTECTED] wrote: From: Xia, Wen [EMAIL PROTECTED] Subject: Re: Not able to configure build path To: Mersida Kurti [EMAIL PROTECTED], Development WebObjects webobjects-dev@lists.apple.com Date: Monday, July 28, 2008, 12:49 PM Re: Not able to configure build path I tried to delete the the copy in /Library, it still ignores the System/Library copy. It “pretends” to be configured using the System/Library copy, but the MacOSClassPath.txt still don’t have the entry: WOROOT/Library/Frameworks/JavaWOExtensions.framework/Resources/Java/JavaWOExtensions.jar On 7/28/08 9:39 AM, Mersida Kurti [EMAIL PROTECTED] wrote: Hi Wen, I had this problem before. What it seems to be doing is that it looks at /Library first then at /System/Library. So if you delete the copy in /Library, it will take the /System/Library copy ~Mersida --- On Mon, 7/28/08, Xia, Wen [EMAIL PROTECTED] wrote: From: Xia, Wen [EMAIL PROTECTED] Subject: Not able to configure build path To: Development WebObjects webobjects-dev@lists.apple.com Date: Monday, July 28, 2008, 12:32 PM For some reason, I can't configure the build path to refer to the /System/Library/Frameworks/JavaWOExtensions.framework. It keeps referring to the the /Library/Frameworks/JavaWOExtensions.framework. The steps I did: - Right-click on the project name - Select Build Path - Configure Build Path - Open the Libraries pane - Click on WebObjects Frameworks and click Edit... - Open the triangle next to Local - Locate JavaWOExtensions and uncheck the checkbox - Open the triangle next to System - Locate JavaWOExtensions and click on the checkbox - Click Finish - Click OK for the JavaBuildPath dialog No error was given, but when I'm done, the JavaWOExtensions.jar still points to the /Library/Frameworks/JavaWOExtensions.framework folder. Does anyone know what might be wrong? Thank you. Wen ___ 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/muc154%40yahoo.com This email sent to [EMAIL PROTECTED] ___ 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/wen.xia%40dof.ca.gov This email sent to [EMAIL PROTECTED] ___ 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/muc154%40yahoo.com This email sent to [EMAIL PROTECTED] ___ 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/muc154%40yahoo.com This email sent to [EMAIL PROTECTED]
Re: multiple model usage example
Joe, OK, I see where you are going ... you are wondering how to fetch against a different eomodel ... well, stop wondering ... it is automagic! The only restriction for having lots of eomodels is that *all* entity names must be unique! (Note the java class package.name and database table names can be whatever you want). everything in EOF then just works. Regards, Kieran PS. That code was in my Application constructor but may be irrelevant to your questions I was just showing how you could access models and entities after super in App constructor since Wonder has already loaded them all at that stage. On Jul 28, 2008, at 2:18 PM, Joe Little wrote: On Mon, Jul 28, 2008 at 11:03 AM, Kieran Kelleher [EMAIL PROTECTED] wrote: Hi Joe, AFAIK, if you just define properties below for each model using the syntax modelname.URL, modelname.DBUser, etc., all the models and their entities will be automatically loaded at startup by Wonder which checks for such properties at startup. In your Application constructor, after super(), all the models and entities will have been loaded by Wonder, so you can iterate thru models and/ or entities and do what you like with them, for example .. // Make demography eomodel readonly boolean demographyIsReadOnly = ERXProperties .booleanForKeyWithDefault(demography.isReadOnlyEntities, false); if (demographyIsReadOnly) { EOModel demography = EOModelGroup.defaultGroup().modelNamed(demography); for (java.util.Enumeration demographyEntityEnumerator = demography.entities().objectEnumerator(); demographyEntityEnumerator .hasMoreElements();) { EOEntity entity = (EOEntity) demographyEntityEnumerator.nextElement(); entity.setReadOnly(true); } } So, I presume you'd want ERXModelGroup there. The above was not in Application.java I presume. When asking for a objects for a specific entity, has done one use the usual utilities to call on the specific model? ie.. NSArray items = EOUtilities.objectsForEntityNamed (new EOEditingContext(), Item); I guess I'm only missing the link between auto-loaded models and the above style call, which I did with this: admitModel = ERXModelGroup.defaultGroup().modelNamed(admit); admitArchModel = ERXModelGroup.defaultGroup().modelNamed(admitarch); Does it just look for an Item across both models? Kieran On Jul 28, 2008, at 1:38 PM, Joe Little wrote: On Mon, Jul 28, 2008 at 5:08 AM, Kieran Kelleher [EMAIL PROTECTED] wrote: Hi Joe, Not sure if this is what you are looking for here is an example of entries in Properties for access to different databases: snip # # ERExtensions - ERXModelGroup properties # er.extensions.ERXModelGroup.prototypeModelNames=WKPrototypes cheetah.URL = jdbc:mysql://host1/cheetah?capitalizeTypenames=true cheetah.DBUser = @@cheetah.dbuser@@ cheetah.DBPassword = @@cheetah.dbpassword@@ cheetah.DBDriver = cheetah.DBPlugin = cheetah.DBJDBCInfo = demography.URL = jdbc:mysql://host2/demography? capitalizeTypenames=true demography.DBUser = @@demography.dbuser@@ demography.DBPassword = @@demography.dbpassword@@ demography.DBDriver = demography.DBPlugin = demography.DBJDBCInfo = /snip IIRC, ERXModelGroup is where a lot of model startup entity loading munging happens, so examining the source there can indicate what is happening, how it works, and what Properties entries affect what. I'll look into the code. Never looked inside Wonder source and was hoping for examples on how to use it. So, there isn't posted anyway examples on using ERXModelGroup and loading models into an app within Application? Again, I've been limited to the stuff that WO just gives you to date, which is all automatic. My understanding currently ends there. HTH, Kieran On Jul 28, 2008, at 2:22 AM, Joe Little wrote: That would need to be an ER Model I take it. Again, do you happen to have a snippet of code taking multiple entity modeler defined models, overriding those settings, etc, and then having a joined model group.. or should this not be in a model group. I'm confused as to how this is all done w/ Wonder as I've also been trying to use ModelConnector and other PracticalWO Frameworks solutions to the same. On Sun, Jul 27, 2008 at 10:48 PM, Guido Neitzer [EMAIL PROTECTED] s.net wrote: On 27.07.2008, at 23:28, Joe Little wrote: Ok. I've banged my head on this one a lot. ConfigurationManager allows you to change anything except for the database itself. ?? dbConnectURLGLOBAL=jdbc:postgresql://localhost/meetings That can also be set on a per model base. cug -- http://www.event-s.net ___ Do not post admin requests to the list. They will be ignored.
Re: WO5.4 WOPopupButton wanting formatter
On Jul 19, 2008, at 4:26 AM, Lachlan Deck wrote: On 19/07/2008, at 4:59 PM, Shelley Eitzen wrote: you are correct, one value was an Integer and the other a String, so technically our app is at fault. So is it a bug to report because it works under 5.3 but not under 5.4? I believe in the past WO would auto-convert the string to an integer if that's what the setter needed. But certainly it's inconsistent, at the least, using mixed value types in the array. I thought that KVC would do this conversion. It is a change that breaks existing code, so I would file a bug. Chuck Chuck Hill wrote: On Jul 17, 2008, at 10:54 PM, Shelley Eitzen wrote: Hi All, We have just upgraded to WO5.4. When the app is run, we have component we use for date entry with 3 popups for year, month and day.The component can not be displayed and gives the following error java.lang.IllegalArgumentException: While trying to set the field aDay on an object of type WNSDateEntryWidget we expected a java.lang.Integer but received a java.lang.String with a value of 1. This often happens if you forget to use a formatter. at com.webobjects.foundation.NSKeyValueCoding $_FieldBinding.setValueInObject(NSKeyValueCoding.java:1019) at com.webobjects.foundation.NSKeyValueCoding $_NumberFieldBinding.setValueInObject(NSKeyValueCoding.java:1048) at com.webobjects.foundation.NSKeyValueCoding $DefaultImplementation.takeValueForKey(NSKeyValueCoding.java:1354) at com .webobjects .appserver.WOComponent.takeValueForKey(WOComponent.java:1748) Any suggestions? File a bug if this is a change from 5.3.3: bugreport.apple.com. A lot has changed on WOPopupButton. Try making the list it is bound to a list of Integers instead of a list of strings. Chuck ___ 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/lachlan.deck%40gmail.com This email sent to [EMAIL PROTECTED] with regards, -- Lachlan Deck ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net This email sent to [EMAIL PROTECTED] -- 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 [EMAIL PROTECTED]
Re: DBEdit with MacIntel
argh, if only there was a replacement that was at least close to it I won't give up looking for another app :) --- On Mon, 7/28/08, Chuck Hill [EMAIL PROTECTED] wrote: From: Chuck Hill [EMAIL PROTECTED] Subject: Re: DBEdit with MacIntel To: Mike Schrag [EMAIL PROTECTED] Cc: Development WebObjects webobjects-dev@lists.apple.com Date: Monday, July 28, 2008, 1:46 PM On Jul 28, 2008, at 8:49 AM, Mike Schrag wrote: This isn't an Intel thing, it is a Leopard (OS X 10.5.x) thing. DBEdit uses the Cocoa-Java bridge and will not work on any OS beyond Tiger (10.4). It will be sorely missed by many. Or at least me. These discussions always end in me doing work :) We discussed this a while back. It seems that you are unable to replace dbEdit... :-P -- 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/muc154%40yahoo.com This email sent to [EMAIL PROTECTED] ___ 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 [EMAIL PROTECTED]
Basic EO Caching ?
I've read through the EO Programming Guide many times and can't seem to decipher for sure a question I have. First, from what I understand, under default configuration (one EOObjectStoreCoordinator per Application instance) there can be two levels of a cached EO within an Application instance, those maintained in an EOEditingContext, and those maintained in the Snapshot table maintained by the EOObjectStoreCoordinator that is shared by all EOEditingContext's in the Application Instance. My question concerns how synchronized the cached EO's in an editing contexts are with those maintained in the Snapshot table. Specfically, if one EOEditingContext updates an EO in it's own editing context, and saves the changes (thereby also updating the EO in the Snapshot table), will cached copies of the EO that reside in other current EOEditingContexts be automatically updated on the next fetch? Or will you need to specifically ask for the fetch to reFetch the data from the database to get fresh data? I ran across this, which seems to indicate that ALL editing contexts WILL be automatically refreshed: When multiple users share the same row-level snapshots you minimize the opportunities for multiple users to cause an optimistic locking conflict. Consider the case when user A and user B share row-level snapshots and both users open a record that contains the same row of data. When user A make changes to that row and commits those changes back to the data source, the snapshot of that row reflects user A?s changes. When user B requests the same record after user A changes it, user B is guaranteed to see the data with user A?s changes. In this scenario, both users share the same set of cached data. however, I don't think it explicitly covers the following sequence: 1. A requests a row (corresponding to an EO instance) 2. B requests the same row 3. A updates that same row 4. B requests the same row again. On the second request from B (step 4) will it get A's latest changes (assuming the fetch time stamp hasn't expired)? If not, what is the best way to indicate to B's editing context that it needs to get refreshed data? Seems like I've seen references to a way to notify current editing contexts that they need to refresh themselves on subsequent fetches, or did I just dream that? Thanks, Jeff ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Re: multiple model usage example
On Mon, Jul 28, 2008 at 11:37 AM, Kieran Kelleher [EMAIL PROTECTED] wrote: Joe, OK, I see where you are going ... you are wondering how to fetch against a different eomodel ... well, stop wondering ... it is automagic! The only restriction for having lots of eomodels is that *all* entity names must be unique! (Note the java class package.name and database table names can be whatever you want). everything in EOF then just works. Regards, Kieran PS. That code was in my Application constructor but may be irrelevant to your questions I was just showing how you could access models and entities after super in App constructor since Wonder has already loaded them all at that stage. I think you get where I'm going. If its all unique (which it is in my combined models) my guess is that EOF will know where to pull what entity from which database. So, doing something like this: public NSArray getApplicants () { return EOUtilities.objectsForEntityNamed (new EOEditingContext(), Applicants); } public NSArray getArchApplicants () { return EOUtilities.objectsForEntityNamed (new EOEditingContext(), ArchApplicants); } would work without even playing with the models and constructor definitions, as its done automatically, at least in Wonder Applications/Frameworks. Is that correct? The above come from two separate models. On Jul 28, 2008, at 2:18 PM, Joe Little wrote: On Mon, Jul 28, 2008 at 11:03 AM, Kieran Kelleher [EMAIL PROTECTED] wrote: Hi Joe, AFAIK, if you just define properties below for each model using the syntax modelname.URL, modelname.DBUser, etc., all the models and their entities will be automatically loaded at startup by Wonder which checks for such properties at startup. In your Application constructor, after super(), all the models and entities will have been loaded by Wonder, so you can iterate thru models and/or entities and do what you like with them, for example .. // Make demography eomodel readonly boolean demographyIsReadOnly = ERXProperties.booleanForKeyWithDefault(demography.isReadOnlyEntities, false); if (demographyIsReadOnly) { EOModel demography = EOModelGroup.defaultGroup().modelNamed(demography); for (java.util.Enumeration demographyEntityEnumerator = demography.entities().objectEnumerator(); demographyEntityEnumerator .hasMoreElements();) { EOEntity entity = (EOEntity) demographyEntityEnumerator.nextElement(); entity.setReadOnly(true); } } So, I presume you'd want ERXModelGroup there. The above was not in Application.java I presume. When asking for a objects for a specific entity, has done one use the usual utilities to call on the specific model? ie.. NSArray items = EOUtilities.objectsForEntityNamed (new EOEditingContext(), Item); I guess I'm only missing the link between auto-loaded models and the above style call, which I did with this: admitModel = ERXModelGroup.defaultGroup().modelNamed(admit); admitArchModel = ERXModelGroup.defaultGroup().modelNamed(admitarch); Does it just look for an Item across both models? Kieran On Jul 28, 2008, at 1:38 PM, Joe Little wrote: On Mon, Jul 28, 2008 at 5:08 AM, Kieran Kelleher [EMAIL PROTECTED] wrote: Hi Joe, Not sure if this is what you are looking for here is an example of entries in Properties for access to different databases: snip # # ERExtensions - ERXModelGroup properties # er.extensions.ERXModelGroup.prototypeModelNames=WKPrototypes cheetah.URL = jdbc:mysql://host1/cheetah?capitalizeTypenames=true cheetah.DBUser = @@cheetah.dbuser@@ cheetah.DBPassword = @@cheetah.dbpassword@@ cheetah.DBDriver = cheetah.DBPlugin = cheetah.DBJDBCInfo = demography.URL = jdbc:mysql://host2/demography?capitalizeTypenames=true demography.DBUser = @@demography.dbuser@@ demography.DBPassword = @@demography.dbpassword@@ demography.DBDriver = demography.DBPlugin = demography.DBJDBCInfo = /snip IIRC, ERXModelGroup is where a lot of model startup entity loading munging happens, so examining the source there can indicate what is happening, how it works, and what Properties entries affect what. I'll look into the code. Never looked inside Wonder source and was hoping for examples on how to use it. So, there isn't posted anyway examples on using ERXModelGroup and loading models into an app within Application? Again, I've been limited to the stuff that WO just gives you to date, which is all automatic. My understanding currently ends there. HTH, Kieran On Jul 28, 2008, at 2:22 AM, Joe Little wrote: That would need to be an ER Model I take it. Again, do you happen to have a snippet of code taking multiple entity modeler
Re: multiple model usage example
Yes. You are correct. It knows which database to get each entity from based on the connection dictionary of the model to which the entity belongs. You don't have to do anything except put the models in your app and/or frameworks. Even without Wonder, that is how EOF treats multiple eomodels. Wonder allows more flexibility in terms of multiple eomodels, IIRC, with possibility to define different prototypes for each eomodel and different database vendors for each model and allows you to set eomodel load order which is important to make sure that prototype entities are loaded before the entities that refer to those protos. On Jul 28, 2008, at 3:42 PM, Joe Little wrote: On Mon, Jul 28, 2008 at 11:37 AM, Kieran Kelleher [EMAIL PROTECTED] wrote: Joe, OK, I see where you are going ... you are wondering how to fetch against a different eomodel ... well, stop wondering ... it is automagic! The only restriction for having lots of eomodels is that *all* entity names must be unique! (Note the java class package.name and database table names can be whatever you want). everything in EOF then just works. Regards, Kieran PS. That code was in my Application constructor but may be irrelevant to your questions I was just showing how you could access models and entities after super in App constructor since Wonder has already loaded them all at that stage. I think you get where I'm going. If its all unique (which it is in my combined models) my guess is that EOF will know where to pull what entity from which database. So, doing something like this: public NSArray getApplicants () { return EOUtilities.objectsForEntityNamed (new EOEditingContext(), Applicants); } public NSArray getArchApplicants () { return EOUtilities.objectsForEntityNamed (new EOEditingContext(), ArchApplicants); } would work without even playing with the models and constructor definitions, as its done automatically, at least in Wonder Applications/Frameworks. Is that correct? The above come from two separate models. On Jul 28, 2008, at 2:18 PM, Joe Little wrote: On Mon, Jul 28, 2008 at 11:03 AM, Kieran Kelleher [EMAIL PROTECTED] wrote: Hi Joe, AFAIK, if you just define properties below for each model using the syntax modelname.URL, modelname.DBUser, etc., all the models and their entities will be automatically loaded at startup by Wonder which checks for such properties at startup. In your Application constructor, after super(), all the models and entities will have been loaded by Wonder, so you can iterate thru models and/or entities and do what you like with them, for example .. // Make demography eomodel readonly boolean demographyIsReadOnly = ERXProperties .booleanForKeyWithDefault(demography.isReadOnlyEntities, false); if (demographyIsReadOnly) { EOModel demography = EOModelGroup.defaultGroup().modelNamed(demography); for (java.util.Enumeration demographyEntityEnumerator = demography.entities().objectEnumerator(); demographyEntityEnumerator .hasMoreElements();) { EOEntity entity = (EOEntity) demographyEntityEnumerator.nextElement(); entity.setReadOnly(true); } } So, I presume you'd want ERXModelGroup there. The above was not in Application.java I presume. When asking for a objects for a specific entity, has done one use the usual utilities to call on the specific model? ie.. NSArray items = EOUtilities.objectsForEntityNamed (new EOEditingContext(), Item); I guess I'm only missing the link between auto-loaded models and the above style call, which I did with this: admitModel = ERXModelGroup.defaultGroup().modelNamed(admit); admitArchModel = ERXModelGroup.defaultGroup().modelNamed(admitarch); Does it just look for an Item across both models? Kieran On Jul 28, 2008, at 1:38 PM, Joe Little wrote: On Mon, Jul 28, 2008 at 5:08 AM, Kieran Kelleher [EMAIL PROTECTED] wrote: Hi Joe, Not sure if this is what you are looking for here is an example of entries in Properties for access to different databases: snip # # ERExtensions - ERXModelGroup properties # er.extensions.ERXModelGroup.prototypeModelNames=WKPrototypes cheetah.URL = jdbc:mysql://host1/cheetah?capitalizeTypenames=true cheetah.DBUser = @@cheetah.dbuser@@ cheetah.DBPassword = @@cheetah.dbpassword@@ cheetah.DBDriver = cheetah.DBPlugin = cheetah.DBJDBCInfo = demography.URL = jdbc:mysql://host2/demography? capitalizeTypenames=true demography.DBUser = @@demography.dbuser@@ demography.DBPassword = @@demography.dbpassword@@ demography.DBDriver = demography.DBPlugin = demography.DBJDBCInfo = /snip IIRC, ERXModelGroup is where a lot of model startup entity loading munging happens, so examining
Re: multiple model usage example
On Mon, Jul 28, 2008 at 1:04 PM, Joe Little [EMAIL PROTECTED] wrote: On Mon, Jul 28, 2008 at 12:57 PM, Kieran Kelleher [EMAIL PROTECTED] wrote: Yes. You are correct. It knows which database to get each entity from based on the connection dictionary of the model to which the entity belongs. You don't have to do anything except put the models in your app and/or frameworks. Even without Wonder, that is how EOF treats multiple eomodels. Wonder allows more flexibility in terms of multiple eomodels, IIRC, with possibility to define different prototypes for each eomodel and different database vendors for each model and allows you to set eomodel load order which is important to make sure that prototype entities are loaded before the entities that refer to those protos. There is a lot written on the fact that you can load multiple models, and they refer to modelgroups and above people remark on how to set the dictionary and manually connect up your adaptor. It sounded like there is a lot of missing pieces, and not that it is just done automatically. I thought I had to get the adaptor channel, define each model, assign the right dictionary to each model, and then somehow differentiate a fetch in code specific to each model. That was where the cookie crumbs were leading me to. and it just works.. Thanks to all for the group enlightenment. On Jul 28, 2008, at 3:42 PM, Joe Little wrote: On Mon, Jul 28, 2008 at 11:37 AM, Kieran Kelleher [EMAIL PROTECTED] wrote: Joe, OK, I see where you are going ... you are wondering how to fetch against a different eomodel ... well, stop wondering ... it is automagic! The only restriction for having lots of eomodels is that *all* entity names must be unique! (Note the java class package.name and database table names can be whatever you want). everything in EOF then just works. Regards, Kieran PS. That code was in my Application constructor but may be irrelevant to your questions I was just showing how you could access models and entities after super in App constructor since Wonder has already loaded them all at that stage. I think you get where I'm going. If its all unique (which it is in my combined models) my guess is that EOF will know where to pull what entity from which database. So, doing something like this: public NSArray getApplicants () { return EOUtilities.objectsForEntityNamed (new EOEditingContext(), Applicants); } public NSArray getArchApplicants () { return EOUtilities.objectsForEntityNamed (new EOEditingContext(), ArchApplicants); } would work without even playing with the models and constructor definitions, as its done automatically, at least in Wonder Applications/Frameworks. Is that correct? The above come from two separate models. On Jul 28, 2008, at 2:18 PM, Joe Little wrote: On Mon, Jul 28, 2008 at 11:03 AM, Kieran Kelleher [EMAIL PROTECTED] wrote: Hi Joe, AFAIK, if you just define properties below for each model using the syntax modelname.URL, modelname.DBUser, etc., all the models and their entities will be automatically loaded at startup by Wonder which checks for such properties at startup. In your Application constructor, after super(), all the models and entities will have been loaded by Wonder, so you can iterate thru models and/or entities and do what you like with them, for example .. // Make demography eomodel readonly boolean demographyIsReadOnly = ERXProperties.booleanForKeyWithDefault(demography.isReadOnlyEntities, false); if (demographyIsReadOnly) { EOModel demography = EOModelGroup.defaultGroup().modelNamed(demography); for (java.util.Enumeration demographyEntityEnumerator = demography.entities().objectEnumerator(); demographyEntityEnumerator .hasMoreElements();) { EOEntity entity = (EOEntity) demographyEntityEnumerator.nextElement(); entity.setReadOnly(true); } } So, I presume you'd want ERXModelGroup there. The above was not in Application.java I presume. When asking for a objects for a specific entity, has done one use the usual utilities to call on the specific model? ie.. NSArray items = EOUtilities.objectsForEntityNamed (new EOEditingContext(), Item); I guess I'm only missing the link between auto-loaded models and the above style call, which I did with this: admitModel = ERXModelGroup.defaultGroup().modelNamed(admit); admitArchModel = ERXModelGroup.defaultGroup().modelNamed(admitarch); Does it just look for an Item across both models? Kieran On Jul 28, 2008, at 1:38 PM, Joe Little wrote: On Mon, Jul 28, 2008 at 5:08 AM, Kieran Kelleher [EMAIL PROTECTED] wrote: Hi Joe, Not sure if this is what you are looking for here is an example of entries in Properties for access to different databases: snip
Re: web objects 5.4.2 URL parsing errors
On 28-Jul-08, at 4:06 PM, Mersida Kurti wrote: Hi everyone, I hope someone can help me with this problem: I currently am running on Tiger, Java 1.5. and WebObjects 5.2.4and I have a URL which it parses info from after each Now that I've switched to Leopard, Java 1.5, WO 5.4.2, it is not parsing that string at all, it returns it all backseems like it does not recognize the ampersands or something. i.e: www.test.com/cgi-bin/WebObjects/Test.woa/wa/return?arg1=9898988arg2=something request().formValueForKey(arg1); will returns 9898988arg2=something arg2 returns null. Are you seeing some flavour of this: http://davidleber.net/?p=191 ? ;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 [EMAIL PROTECTED]
Re: Not able to configure build path
Thanks, Mersida. My application works on development mac, but fails on deployment. The problem is it didn¹t build the entry WOROOT/Library/Frameworks/JavaWOExtensions.framework/Resources/Java/JavaWOEx tensions.jar to MacOSClassPath.txt even though the javawoextensions.jar is there on UI. I have no clue why this is happening (maybe a bug?). The temporary fix is to manually add the entry every time I install the app. Any one has any idea? On 7/28/08 11:36 AM, Mersida Kurti [EMAIL PROTECTED] wrote: Wen, I found this, which clarifies things for me: WOROOT indicates the path whereWebObjects frameworks are installed. On Mac OS X, for example, WebObjects frameworks are located in the /System/Library/Frameworks directory and WOROOT is set to /System. ~Mersida http://127.0.0.1:7980/open?url=%2FUsers%2Fmuc154%2FDesktop%2FWOA_JSP_and_Servl ets.pdfaction=1info=16s=e6j17MEmt1a1XOQlWE1LEXINIhM --- On Mon, 7/28/08, Mersida Kurti [EMAIL PROTECTED] wrote: From: Mersida Kurti [EMAIL PROTECTED] Subject: Re: Not able to configure build path To: Development WebObjects webobjects-dev@lists.apple.com, Xia, Wen [EMAIL PROTECTED] Date: Monday, July 28, 2008, 2:31 PM Hi Wen, I checked my machine and I see the same thing. I'm able to deploy and run my apps fine even though the class path is different. I don't know what to tell you. I think as long as the buildpath on eclipse is fine and you can see the jar file in there you should be fine. ~mersida --- On Mon, 7/28/08, Xia, Wen [EMAIL PROTECTED] wrote: From: Xia, Wen [EMAIL PROTECTED] Subject: Re: Not able to configure build path To: Development WebObjects webobjects-dev@lists.apple.com Date: Monday, July 28, 2008, 1:32 PM Re: Not able to configure build path Thank you, Mersida. It did reflect in the UI after I restarted Eclipse. But the final result, the MacOSClassPath.txt still don¹t have the entry: WOROOT/Library/Frameworks/JavaWOExtensions.framework/Resources/Java/JavaWOEx tensions.jar Any other ideas? On 7/28/08 10:07 AM, Mersida Kurti [EMAIL PROTECTED] wrote: You would probably have to close Eclipse in order for the changes to take effect. --- On Mon, 7/28/08, Xia, Wen [EMAIL PROTECTED] wrote: From: Xia, Wen [EMAIL PROTECTED] Subject: Re: Not able to configure build path To: Mersida Kurti [EMAIL PROTECTED], Development WebObjects webobjects-dev@lists.apple.com Date: Monday, July 28, 2008, 12:49 PM Re: Not able to configure build path I tried to delete the the copy in /Library, it still ignores the System/Library copy. It ³pretends² to be configured using the System/Library copy, but the MacOSClassPath.txt still don¹t have the entry: WOROOT/Library/Frameworks/JavaWOExtensions.framework/Resources/Java/JavaWO Extensions.jar On 7/28/08 9:39 AM, Mersida Kurti [EMAIL PROTECTED] wrote: Hi Wen, I had this problem before. What it seems to be doing is that it looks at /Library first then at /System/Library. So if you delete the copy in /Library, it will take the /System/Library copy ~Mersida --- On Mon, 7/28/08, Xia, Wen [EMAIL PROTECTED] wrote: From: Xia, Wen [EMAIL PROTECTED] Subject: Not able to configure build path To: Development WebObjects webobjects-dev@lists.apple.com Date: Monday, July 28, 2008, 12:32 PM For some reason, I can't configure the build path to refer to the /System/Library/Frameworks/JavaWOExtensions.framework. It keeps referring to the the /Library/Frameworks/JavaWOExtensions.framework. The steps I did: - Right-click on the project name - Select Build Path - Configure Build Path - Open the Libraries pane - Click on WebObjects Frameworks and click Edit... - Open the triangle next to Local - Locate JavaWOExtensions and uncheck the checkbox - Open the triangle next to System - Locate JavaWOExtensions and click on the checkbox - Click Finish - Click OK for the JavaBuildPath dialog No error was given, but when I'm done, the JavaWOExtensions.jar still points to the /Library/Frameworks/JavaWOExtensions.framework folder. Does anyone know what might be wrong? Thank you. Wen ___ 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/muc154%40yahoo.com This email sent to [EMAIL PROTECTED] ___ 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/wen.xia%40dof.ca.go v This email sent to [EMAIL PROTECTED] ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list
Re: Not able to configure build path
Hi Wen, Yep, that's what I do everytime I re-deploy that same app, i copy the Conents/MacOS/*.txt everytime i have to redeploy the app because the buildpath will be wrong everytime. All you have to do is change the classpath.txt once and then when you re-deploy it you have to remember to copy the MacOS/*.txt files Maybe it is a bug that we've gotten used to around the office and don't consider it anymore - actuall it is written in our deployment procedure and feels so normal to do it everytime. ~Mersida --- On Mon, 7/28/08, Xia, Wen [EMAIL PROTECTED] wrote: From: Xia, Wen [EMAIL PROTECTED] Subject: Re: Not able to configure build path To: Development WebObjects webobjects-dev@lists.apple.com Date: Monday, July 28, 2008, 5:58 PM Re: Not able to configure build path Thanks, Mersida. My application works on development mac, but fails on deployment. The problem is it didn’t build the entry WOROOT/Library/Frameworks/JavaWOExtensions.framework/Resources/Java/JavaWOExtensions.jar to MacOSClassPath.txt even though the javawoextensions.jar is there on UI. I have no clue why this is happening (maybe a bug?). The temporary fix is to manually add the entry every time I install the app. Any one has any idea? On 7/28/08 11:36 AM, Mersida Kurti [EMAIL PROTECTED] wrote: Wen, I found this, which clarifies things for me: WOROOT indicates the path whereWebObjects frameworks are installed. On Mac OS X, for example, WebObjects frameworks are located in the /System/Library/Frameworks directory and WOROOT is set to /System. ~Mersida http://127.0.0.1:7980/open?url=%2FUsers%2Fmuc154%2FDesktop%2FWOA_JSP_and_Servlets.pdfaction=1info=16s=e6j17MEmt1a1XOQlWE1LEXINIhM --- On Mon, 7/28/08, Mersida Kurti [EMAIL PROTECTED] wrote: From: Mersida Kurti [EMAIL PROTECTED] Subject: Re: Not able to configure build path To: Development WebObjects webobjects-dev@lists.apple.com, Xia, Wen [EMAIL PROTECTED] Date: Monday, July 28, 2008, 2:31 PM Hi Wen, I checked my machine and I see the same thing. I'm able to deploy and run my apps fine even though the class path is different. I don't know what to tell you. I think as long as the buildpath on eclipse is fine and you can see the jar file in there you should be fine. ~mersida --- On Mon, 7/28/08, Xia, Wen [EMAIL PROTECTED] wrote: From: Xia, Wen [EMAIL PROTECTED] Subject: Re: Not able to configure build path To: Development WebObjects webobjects-dev@lists.apple.com Date: Monday, July 28, 2008, 1:32 PM Re: Not able to configure build path Thank you, Mersida. It did reflect in the UI after I restarted Eclipse. But the final result, the MacOSClassPath.txt still don’t have the entry: WOROOT/Library/Frameworks/JavaWOExtensions.framework/Resources/Java/JavaWOExtensions.jar Any other ideas? On 7/28/08 10:07 AM, Mersida Kurti [EMAIL PROTECTED] wrote: You would probably have to close Eclipse in order for the changes to take effect. --- On Mon, 7/28/08, Xia, Wen [EMAIL PROTECTED] wrote: From: Xia, Wen [EMAIL PROTECTED] Subject: Re: Not able to configure build path To: Mersida Kurti [EMAIL PROTECTED], Development WebObjects webobjects-dev@lists.apple.com Date: Monday, July 28, 2008, 12:49 PM Re: Not able to configure build path I tried to delete the the copy in /Library, it still ignores the System/Library copy. It “pretends” to be configured using the System/Library copy, but the MacOSClassPath.txt still don’t have the entry: WOROOT/Library/Frameworks/JavaWOExtensions.framework/Resources/Java/JavaWOExtensions.jar On 7/28/08 9:39 AM, Mersida Kurti [EMAIL PROTECTED] wrote: Hi Wen, I had this problem before. What it seems to be doing is that it looks at /Library first then at /System/Library. So if you delete the copy in /Library, it will take the /System/Library copy ~Mersida --- On Mon, 7/28/08, Xia, Wen [EMAIL PROTECTED] wrote: From: Xia, Wen [EMAIL PROTECTED] Subject: Not able to configure build path To: Development WebObjects webobjects-dev@lists.apple.com Date: Monday, July 28, 2008, 12:32 PM For some reason, I can't configure the build path to refer to the /System/Library/Frameworks/JavaWOExtensions.framework. It keeps referring to the the /Library/Frameworks/JavaWOExtensions.framework. The steps I did: - Right-click on the project name - Select Build Path - Configure Build Path - Open the Libraries pane - Click on WebObjects Frameworks and click Edit... - Open the triangle next to Local - Locate JavaWOExtensions and uncheck the checkbox - Open the triangle next to System - Locate JavaWOExtensions and click on the checkbox - Click Finish - Click OK for the JavaBuildPath dialog No error was given, but when I'm done, the JavaWOExtensions.jar still points to the /Library/Frameworks/JavaWOExtensions.framework folder. Does anyone know what might be wrong? Thank you. Wen ___ Do not post admin
Re: Not able to configure build path
So we are not alone. I will also make note of that. Thanks for your help! On 7/28/08 3:03 PM, Mersida Kurti [EMAIL PROTECTED] wrote: Hi Wen, Yep, that's what I do everytime I re-deploy that same app, i copy the Conents/MacOS/*.txt everytime i have to redeploy the app because the buildpath will be wrong everytime. All you have to do is change the classpath.txt once and then when you re-deploy it you have to remember to copy the MacOS/*.txt files Maybe it is a bug that we've gotten used to around the office and don't consider it anymore - actuall it is written in our deployment procedure and feels so normal to do it everytime. ~Mersida --- On Mon, 7/28/08, Xia, Wen [EMAIL PROTECTED] wrote: From: Xia, Wen [EMAIL PROTECTED] Subject: Re: Not able to configure build path To: Development WebObjects webobjects-dev@lists.apple.com Date: Monday, July 28, 2008, 5:58 PM Re: Not able to configure build path Thanks, Mersida. My application works on development mac, but fails on deployment. The problem is it didn¹t build the entry WOROOT/Library/Frameworks/JavaWOExtensions.framework/Resources/Java/JavaWOExt ensions.jar to MacOSClassPath.txt even though the javawoextensions.jar is there on UI. I have no clue why this is happening (maybe a bug?). The temporary fix is to manually add the entry every time I install the app. Any one has any idea? On 7/28/08 11:36 AM, Mersida Kurti [EMAIL PROTECTED] wrote: Wen, I found this, which clarifies things for me: WOROOT indicates the path whereWebObjects frameworks are installed. On Mac OS X, for example, WebObjects frameworks are located in the /System/Library/Frameworks directory and WOROOT is set to /System. ~Mersida http://127.0.0.1:7980/open?url=%2FUsers%2Fmuc154%2FDesktop%2FWOA_JSP_and_Ser vlets.pdfaction=1info=16s=e6j17MEmt1a1XOQlWE1LEXINIhM http://127.0.0.1:7980/open?url=%2FUsers%2Fmuc154%2FDesktop%2FWOA_JSP_and_Se rvlets.pdfamp;action=1amp;info=16amp;s=e6j17MEmt1a1XOQlWE1LEXINIhM --- On Mon, 7/28/08, Mersida Kurti [EMAIL PROTECTED] wrote: From: Mersida Kurti [EMAIL PROTECTED] Subject: Re: Not able to configure build path To: Development WebObjects webobjects-dev@lists.apple.com, Xia, Wen [EMAIL PROTECTED] Date: Monday, July 28, 2008, 2:31 PM Hi Wen, I checked my machine and I see the same thing. I'm able to deploy and run my apps fine even though the class path is different. I don't know what to tell you. I think as long as the buildpath on eclipse is fine and you can see the jar file in there you should be fine. ~mersida --- On Mon, 7/28/08, Xia, Wen [EMAIL PROTECTED] wrote: From: Xia, Wen [EMAIL PROTECTED] Subject: Re: Not able to configure build path To: Development WebObjects webobjects-dev@lists.apple.com Date: Monday, July 28, 2008, 1:32 PM Re: Not able to configure build path Thank you, Mersida. It did reflect in the UI after I restarted Eclipse. But the final result, the MacOSClassPath.txt still don¹t have the entry: WOROOT/Library/Frameworks/JavaWOExtensions.framework/Resources/Java/JavaWO Extensions.jar Any other ideas? On 7/28/08 10:07 AM, Mersida Kurti [EMAIL PROTECTED] wrote: You would probably have to close Eclipse in order for the changes to take effect. --- On Mon, 7/28/08, Xia, Wen [EMAIL PROTECTED] wrote: From: Xia, Wen [EMAIL PROTECTED] Subject: Re: Not able to configure build path To: Mersida Kurti [EMAIL PROTECTED], Development WebObjects webobjects-dev@lists.apple.com Date: Monday, July 28, 2008, 12:49 PM Re: Not able to configure build path I tried to delete the the copy in /Library, it still ignores the System/Library copy. It ³pretends² to be configured using the System/Library copy, but the MacOSClassPath.txt still don¹t have the entry: WOROOT/Library/Frameworks/JavaWOExtensions.framework/Resources/Java/Java WOExtensions.jar On 7/28/08 9:39 AM, Mersida Kurti [EMAIL PROTECTED] wrote: Hi Wen, I had this problem before. What it seems to be doing is that it looks at /Library first then at /System/Library. So if you delete the copy in /Library, it will take the /System/Library copy ~Mersida --- On Mon, 7/28/08, Xia, Wen [EMAIL PROTECTED] wrote: From: Xia, Wen [EMAIL PROTECTED] Subject: Not able to configure build path To: Development WebObjects webobjects-dev@lists.apple.com Date: Monday, July 28, 2008, 12:32 PM For some reason, I can't configure the build path to refer to the /System/Library/Frameworks/JavaWOExtensions.framework. It keeps referring to the the /Library/Frameworks/JavaWOExtensions.framework. The steps I did: - Right-click on the project name - Select Build Path - Configure Build Path - Open the Libraries pane - Click on WebObjects Frameworks and click Edit... - Open the triangle next to Local - Locate JavaWOExtensions and uncheck the checkbox - Open the triangle next to System - Locate JavaWOExtensions and click on the checkbox - Click Finish - Click OK for the JavaBuildPath dialog No
Re: Not able to configure build path
No, we're not. If you ever find a solution, please post it here, it will save me some extra commands during the day :) ~Mersida --- On Mon, 7/28/08, Xia, Wen [EMAIL PROTECTED] wrote: From: Xia, Wen [EMAIL PROTECTED] Subject: Re: Not able to configure build path To: Mersida Kurti [EMAIL PROTECTED], Development WebObjects webobjects-dev@lists.apple.com Date: Monday, July 28, 2008, 6:11 PM Re: Not able to configure build path So we are not alone. I will also make note of that. Thanks for your help! On 7/28/08 3:03 PM, Mersida Kurti [EMAIL PROTECTED] wrote: Hi Wen, Yep, that's what I do everytime I re-deploy that same app, i copy the Conents/MacOS/*.txt everytime i have to redeploy the app because the buildpath will be wrong everytime. All you have to do is change the classpath.txt once and then when you re-deploy it you have to remember to copy the MacOS/*.txt files Maybe it is a bug that we've gotten used to around the office and don't consider it anymore - actuall it is written in our deployment procedure and feels so normal to do it everytime. ~Mersida --- On Mon, 7/28/08, Xia, Wen [EMAIL PROTECTED] wrote: From: Xia, Wen [EMAIL PROTECTED] Subject: Re: Not able to configure build path To: Development WebObjects webobjects-dev@lists.apple.com Date: Monday, July 28, 2008, 5:58 PM Re: Not able to configure build path Thanks, Mersida. My application works on development mac, but fails on deployment. The problem is it didn’t build the entry WOROOT/Library/Frameworks/JavaWOExtensions.framework/Resources/Java/JavaWOExtensions.jar to MacOSClassPath.txt even though the javawoextensions.jar is there on UI. I have no clue why this is happening (maybe a bug?). The temporary fix is to manually add the entry every time I install the app. Any one has any idea? On 7/28/08 11:36 AM, Mersida Kurti [EMAIL PROTECTED] wrote: Wen, I found this, which clarifies things for me: WOROOT indicates the path whereWebObjects frameworks are installed. On Mac OS X, for example, WebObjects frameworks are located in the /System/Library/Frameworks directory and WOROOT is set to /System. ~Mersida http://127.0.0.1:7980/open?url=%2FUsers%2Fmuc154%2FDesktop%2FWOA_JSP_and_Servlets.pdfaction=1info=16s=e6j17MEmt1a1XOQlWE1LEXINIhM http://127.0.0.1:7980/open?url=%2FUsers%2Fmuc154%2FDesktop%2FWOA_JSP_and_Servlets.pdfamp;action=1amp;info=16amp;s=e6j17MEmt1a1XOQlWE1LEXINIhM --- On Mon, 7/28/08, Mersida Kurti [EMAIL PROTECTED] wrote: From: Mersida Kurti [EMAIL PROTECTED] Subject: Re: Not able to configure build path To: Development WebObjects webobjects-dev@lists.apple.com, Xia, Wen [EMAIL PROTECTED] Date: Monday, July 28, 2008, 2:31 PM Hi Wen, I checked my machine and I see the same thing. I'm able to deploy and run my apps fine even though the class path is different. I don't know what to tell you. I think as long as the buildpath on eclipse is fine and you can see the jar file in there you should be fine. ~mersida --- On Mon, 7/28/08, Xia, Wen [EMAIL PROTECTED] wrote: From: Xia, Wen [EMAIL PROTECTED] Subject: Re: Not able to configure build path To: Development WebObjects webobjects-dev@lists.apple.com Date: Monday, July 28, 2008, 1:32 PM Re: Not able to configure build path Thank you, Mersida. It did reflect in the UI after I restarted Eclipse. But the final result, the MacOSClassPath.txt still don’t have the entry: WOROOT/Library/Frameworks/JavaWOExtensions.framework/Resources/Java/JavaWOExtensions.jar Any other ideas? On 7/28/08 10:07 AM, Mersida Kurti [EMAIL PROTECTED] wrote: You would probably have to close Eclipse in order for the changes to take effect. --- On Mon, 7/28/08, Xia, Wen [EMAIL PROTECTED] wrote: From: Xia, Wen [EMAIL PROTECTED] Subject: Re: Not able to configure build path To: Mersida Kurti [EMAIL PROTECTED], Development WebObjects webobjects-dev@lists.apple.com Date: Monday, July 28, 2008, 12:49 PM Re: Not able to configure build path I tried to delete the the copy in /Library, it still ignores the System/Library copy. It “pretends” to be configured using the System/Library copy, but the MacOSClassPath.txt still don’t have the entry: WOROOT/Library/Frameworks/JavaWOExtensions.framework/Resources/Java/JavaWOExtensions.jar On 7/28/08 9:39 AM, Mersida Kurti [EMAIL PROTECTED] wrote: Hi Wen, I had this problem before. What it seems to be doing is that it looks at /Library first then at /System/Library. So if you delete the copy in /Library, it will take the /System/Library copy ~Mersida --- On Mon, 7/28/08, Xia, Wen [EMAIL PROTECTED] wrote: From: Xia, Wen [EMAIL PROTECTED] Subject: Not able to configure build path To: Development WebObjects webobjects-dev@lists.apple.com Date: Monday, July 28, 2008, 12:32 PM For some reason, I can't configure the build path to refer to the /System/Library/Frameworks/JavaWOExtensions.framework. It keeps referring to the the
Sorting over a derived atribute
Hi! I'm trying to solve a weird problem. Let's say I have entity A that has a to-many relationships to an entity B. Entity B has a boolean attribute called status. I need to run a fetch specification on A with some trivial stuff, but I need the values to be sorted according to B's status. Particularly, I want all A's that have at least one B with status set to true to come before the A's with all the B's with status set to false, or A's that have no B's. Also, for each group of A's I want to use a second sorting criteria using one of the A's attributes, which shouldn't be a problem. My problem is how to create this sort ordering based on the fact that at least one B has status set to true. Doing this in memory is trivial, but on the database is a pain. I thought in two approaches: 1) Create a derived column in the database, and create a read-only attribute in the model. The problem is that PostgreSQL seems unable to create a derived column on a real table. It will only work in views. 2) Creating a derived attribute and using it to the sort ordering. I know that, contrarily to what might seem true, EOF can actually run fetch specs over derived attributes. But I don't know: a) How to create such derived attribute. This is a little more complex than the typical MONTHLY_SALARY * 12 example, and b) Would EOF be able to use that on a sort ordering. There is an obvious third approach that is creating an attribute in A that is true if any of the B's status are true, but that's ugly for so many reasons. Any ideas? Yours Miguel Arroz http://www.survs.com 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 [EMAIL PROTECTED]
Re: Unable to release locks held by deallocated EOEditingContext
On 28.07.2008, at 16:20, Joe Moreno wrote: I only installed what I thought would be the minimum to get ERXEC to work - specifically, I added the ERExtensions-5.0.0.8093.jar to my project. For that stuff to work you need to inherit from ERXApplication and ERXSession. Getting the ERXEC is the right way. You also need to add some properties. Check the commented Properties file in ERExtensions for lock and you should find all you need. cug -- http://www.event-s.net ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Re: computeQueryDictionaryInContext error
After updating my dev machine to the latest XCode/WebObjects, I'm able to reproduce the error locally. Here is the trace. If anyone has any ideas, feel free to jump in. Error: java.lang.RuntimeException: computeQueryDictionaryInContext failed. Reason: computeQueryDictionaryInContext failed. Stack trace: File Line# Method Package ERXWOForm.java 228 _appendHiddenFieldsToResponse er.extensions ERXWOForm.java 256 appendChildrenToResponse er.extensions ERXWOForm.java 396 appendToResponse er.extensions WODynamicGroup.java 126 appendChildrenToResponse com.webobjects.appserver._private WODynamicGroup.java 136 appendToResponse com.webobjects.appserver._private WOComponentContent.java 51 appendToResponse com.webobjects.appserver._private WODynamicGroup.java 126 appendChildrenToResponse com.webobjects.appserver._private WOGenericContainer.java 44 appendToResponse com.webobjects.appserver._private WODynamicGroup.java 126 appendChildrenToResponse com.webobjects.appserver._private WODynamicGroup.java 136 appendToResponse com.webobjects.appserver._private WOComponent.java 1122 appendToResponse com.webobjects.appserver WOComponentReference.java 135 appendToResponse com.webobjects.appserver._private WODynamicGroup.java 126 appendChildrenToResponse com.webobjects.appserver._private WODynamicGroup.java 136 appendToResponse com.webobjects.appserver._private WOComponent.java 1122 appendToResponse com.webobjects.appserver WOComponent.java 1574 _appendPageToResponse com.webobjects.appserver WOComponent.java 1543 _generateResponseInContext com.webobjects.appserver WOComponent.java 1538 generateResponse com.webobjects.appserver WOActionRequestHandler.java 278 _handleRequest com.webobjects.appserver._private WOActionRequestHandler.java 158 handleRequest com.webobjects.appserver._private ERXDirectActionRequestHandler.java 82 handleRequest er.extensions WOApplication.java 1687 dispatchRequest com.webobjects.appserver ERXApplication.java 1439 dispatchRequest er.extensions WOWorkerThread.java 144 runOnce com.webobjects.appserver._private WOWorkerThread.java 226 run com.webobjects.appserver._private Thread.java 613 run java.lang Class.java 1909 getDeclaredMethod java.lang ERXWOForm.java 224 _appendHiddenFieldsToResponse er.extensions Jaime Magiera Sensory Research http://www.sensoryresearch.net ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Re: Parse URL
On 28/07/2008, at 9:40 PM, .::welemski::. wrote: I'd like to use mod_rewrite but i want to make Webobjects do the parsing as I don't want to restart apache everytime i add a new url. All I need is to get or capture the URL entered by the user and let Weobjects do the redirection not the rules inside the config. Is there a way to capture that URL and redirect to another component page? Yes. You need to subclass WO/ERXDirectActionRequestHandler and do your stuff there. Contact me off list for an example. with regards, -- Lachlan Deck ___ 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 [EMAIL PROTECTED]
Re: computeQueryDictionaryInContext error
java.lang Class.java 1909 getDeclaredMethod java.lang ERXWOForm.java 224 _appendHiddenFieldsToResponse er.extensions My guess is that you aren't using an up-to-date Wonder 5.4 with your WO 5.4.x. 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 [EMAIL PROTECTED]
Re: WO5.4 app deployed on Tiger: SSL Problem: fixed
The problem was indeed the absence of an SSL service because I was using the incorrect port. The service was running 443. I was so concerned about potential framework incompatibilities, that I developed tunnel vision and saw only that class of problem. The WO5.4 app now works fine on a Tiger, WO5.3 deployment. I presume this means that the interface between the WOTask daemon and application instances hasn¹t changed. Good. Many thanks to the quick eyes of Simon McLean and Paul Lynch. Michael Scott On 28/07/08 4:33 PM, Paul Lynch [EMAIL PROTECTED] wrote: As Simon says, plus see below. Paul On 28 Jul 2008, at 07:09, Michael Scott wrote: I have an app developed on a Leopard box in WO5.4 and then deployed on a Tiger server. In deployment, the WO5.4 frameworks are bundled into the application package, so (I hope) the application uses nothing on the Tiger system. (The application doesn't use Wonder.) The deployed application works perfectly on Tiger - about which I am impressed - all of the functionality is just fine. Things only go wrong when I turn on SSL. The point at which problems occur is the redirect from the application's url (http://gamp.murdoch.edu.au/cgi-bin/WebObjects/CASE.woa) to the SSL based login page. The browser reports: Safari can¹t open the page ³https://gamp.murdoch.edu.au:433/cgi-bin/WebObjects/Cafe.woa/wa/Login/startLo gin² because it could not connect to the server ³gamp.murdoch.edu.au². HTTPS is usually on port 443. This corresponds to what I see in debug traces. In the default Direct Action, I create a WORedirect component, set its URL to the startLogin¹ action (see above) and then return the component. After this point, nothing appears in the logs. I know the login page component is never instantiated, so presumably the problem is in the redirect to an SSL address. Also, dispatchRequest() on the application object is never called after returning the WORedirect page. The identical code in other applications works fine when deployed as WO5.3 on the Tiger server. Does anyone know if WO5.4 handles SSL in some different way. (Do I need to call 'secureMode(true)' on the WOContext.) Are there any suggestion for how I might debug this problem? (Unfortunately, I don't have access to a Leopard server with SSL.) I did turned on all the debug flags, but still there is silence after attempting to return the WORedirect page. ___ 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 [EMAIL PROTECTED]
Re: Unable to release locks held by deallocated EOEditingContext
cug, Thanks, again, for pointing me to the Properties config for the ERXEC. In the comments, it says, Use with care... when setting to lock/ unlock automatically. What are the gotchas when setting it to automatically lock unlock? Performance? It seems to be working like a charm. Thanks, Joe ## Specifies if new ECs should lock/unlock automatically. Use with care... # er.extensions.ERXEC.defaultAutomaticLockUnlock = true On Jul 28, 2008, at 19:51:16, Guido Neitzer wrote: On 28.07.2008, at 20:12, Joe Moreno wrote: Thanks. I see the API references – is there any other documentation for Wonder (i.e. examples)? There are some tutorials on the Objectstyle wiki. Haven't really checked in a long time. For me it was: - Inherit from ERXApplication (there are two occurrences in the Application file!) - Inherit from ERXSession ERXDirectAction - Read the properties and set values for the ones that seem useful to me. - Use ERXEC.newEditingContext() whenever I need a new editing context. That's it. cug -- http://www.event-s.net ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Re: Unable to release locks held by deallocated EOEditingContext
What are the gotchas when setting it to automatically lock unlock? Performance? It seems to be working like a charm. I need to add this to the same Properties file ... Ditch all those individual locking settings and just set: er.extensions.ERXEC.safeLocking=true 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 [EMAIL PROTECTED]
Re: Unable to release locks held by deallocated EOEditingContext
On 28.07.2008, at 21:17, Joe Moreno wrote: In the comments, it says, Use with care... when setting to lock/ unlock automatically. I think that this comment is from the times when there was a performance hit when this feature was used and when it was fairly new. When you turn on coalesceAutolocking performance shouldn't be an issue (it wasn't before for me either). You might want to use the new catch all setting for autolocking that combines a useful combination for this: er.extensions.ERXEC.safeLocking=true What are the gotchas when setting it to automatically lock unlock? Performance? It seems to be working like a charm. At least for me, it does. cug -- http://www.event-s.net ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Re: Eclipse WO + SVN
On 28/07/2008, at 10:24 PM, Jonathan Ricker wrote: I think people starting out should start with subversive, rather than subclipse: Yep. Relevant posts from the woproject list: http://wiki.objectstyle.org/confluence/display/WOL/mail/3047983 http://wiki.objectstyle.org/confluence/display/WOL/mail/3048016 Really it's just a matter of: 1) adding the subversion binary to the system. I used macports: $ sudo port install subversion 2) adding the two required update sites mentioned here to Eclipse: http://www.polarion.com/products/svn/subversive.php?src=eclipseproject a) Under http://download.eclipse.org/technology/subversive/0.7/update-site/ - SVN Team Provider (Incubation) - JDT Ignore Extensions (Incubation) b) Under http://www.polarion.org/projects/subversive/download/eclipse/2.0/update-site/ - Subversive SVN Connectors - SVNKit 1.2.0 [development] Implementation No need for JavaHL bindings or anything. SVNKit does it all. On Jul 28, 2008, at 8:15 AM, Jonathan Ricker wrote: I got the impression a while back that some were moving from subclipse to subversive? Recommendations on this? This year I started using subversive on one of my projects where I needed to do a lot of re-factoring that made exclusively using the command line insufficient. I still am in the command-line habit for the most part though. -- Jonathan On Jul 28, 2008, at 7:58 AM, Kieran Kelleher wrote: Install Subversion Binaries for OS X (these binaries have the necessary JavaHL bindings: (Just download and run the installer) http://www.collab.net/downloads/community/ Install Subclipse Plugin (instructions) http://homepage.mac.com/kelleherk/iblog/C1837526061/E20070705125504/index.html On Jul 28, 2008, at 5:26 AM, Amedeo Mantica wrote: can anyone help me / give me a link with a tutorial how to correctly setup SVN with Eclipse ? Regards Amedeo ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/kieran_lists%40mac.com This email sent to [EMAIL PROTECTED] ___ 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/jricker%40vt.edu This email sent to [EMAIL PROTECTED] ___ 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/jricker %40vt.edu This email sent to [EMAIL PROTECTED] ___ 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/lachlan.deck%40gmail.com This email sent to [EMAIL PROTECTED] with regards, -- Lachlan Deck ___ 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 [EMAIL PROTECTED]