Re: The WOCommunity slack channel
Me too please! Thanks, Ben On Tue, Sep 27, 2016 at 7:52 AM, Morris, Mark wrote: > Although unfortunately I can’t get to slack from work, please add my > personal email: ma...@mac.com > > Thanks! > Mark > > > ___ > Do not post admin requests to the list. They will be ignored. > Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) > Help/Unsubscribe/Update your Subscription: > https://lists.apple.com/mailman/options/webobjects- > dev/bchew%40smarthealth.com > > This email sent to bc...@smarthealth.com > ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Extending the “No Instance Available” timeout
I did change Receive Timeout to 999,999 under “Site”, and restarted wotaskd and monitor, but that didn’t help. I also tried creating an app in monitor with the same name as the one running in Eclipse, and changing the Receive Timeout, but that didn’t work either. Am I missing something? Thanks, Ben On Wed, Apr 6, 2016 at 2:59 PM, Chuck Hill wrote: > Receive Timeout is set in JavaMonitor. > > From: Benjamin Chew > Date: Tuesday, April 5, 2016 at 11:52 PM > To: Chuck Hill > Cc: OC , WebObjects-Dev Mailing List < > webobjects-dev@lists.apple.com> > Subject: Re: Extending the “No Instance Available” timeout > > Thanks guys, I appreciate all the other suggestions, but I’m quite > positive it is the ping time that is killing me. > > I have tried multiple apps, and all the apps have the same problem. They > worked fine when I was in the US, but I encountered this problem once I got > to Singapore. I’ve verified this by pinging servers in the US, and I’m > getting ~300ms ping times, with some jitter, which does not help. > > OC and Chuck: could you tell me how to adjust my Receive Timeout? > > Thanks, > Ben > > On Wed, Apr 6, 2016 at 2:26 AM, Chuck Hill wrote: > >> I assume that you are running the app locally through Apache as that >> message is from wotaskd. As OC pointed out, the Receive Timeout is what >> you need to adjust up and up and up. >> >> It sounds like latency is what is killing you, I don’t recall how chatty >> JDBC is but it is probably along the lines of ODBC which is quite chatty >> indeed. Latency kills its performance. Another possibility is to run a >> local copy of the DB. >> >> Chuck >> >> >> >> >> On 2016-04-05, 7:38 AM, "webobjects-dev-bounces+chill= >> gevityinc@lists.apple.com on behalf of OC" >> > o...@ocs.cz> wrote: >> >> >Benjamin, >> > >> >On 5. 4. 2016, at 11:02, Benjamin Chew wrote: >> > >> >> I’m in Singapore working off a VPN connection to the States, and while >> waiting for some database-intensive components to display, I keep getting >> “No Instance Available” because it’s taking so long to complete all the >> queries (ping times ~ 200ms). >> > >> >As others have pointed out, ping times could hardly affect this. >> > >> >> I’ve tried going to WOMonitor on my local machine (localhost:56789) >> and modified the Send, Receive and Connect timeouts, but that didn’t seem >> to help. >> > >> >Far as I can say with my very limited knowledge, >> > >> >(a) “No Instance Available” is most time (if not always) caused by the >> receive timeout at the server side; >> >(b) and thus, increasing it enough should help. >> > >> >> Does anyone have any ideas? >> > >> >First thing, I would try some ludicrously high receive timeout. For us, >> it always helped (in the sense that the rendered page did always return, >> presumed the user had the patience to wait long enough, especially when by >> a mistake I had computed some results in O(2^N) :)) >> > >> >It might also help to check the adaptor log -- touch /tmp/logWebObjects >> as root, and the log should appear in /tmp/WebObjectsLog. >> > >> >The ultimate solution, of course, would be background processing and/or >> paging, as others already recommended; but first you need to find the >> particular cause of the long processing, which might be sometimes a bit >> hairy. >> > >> >All the best and good luck, >> >OC >> > >> > >> > ___ >> >Do not post admin requests to the list. They will be ignored. >> >Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) >> >Help/Unsubscribe/Update your Subscription: >> > >> https://lists.apple.com/mailman/options/webobjects-dev/chill%40gevityinc.com >> > >> >This email sent to ch...@gevityinc.com >> > > ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Extending the “No Instance Available” timeout
Thanks guys, I appreciate all the other suggestions, but I’m quite positive it is the ping time that is killing me. I have tried multiple apps, and all the apps have the same problem. They worked fine when I was in the US, but I encountered this problem once I got to Singapore. I’ve verified this by pinging servers in the US, and I’m getting ~300ms ping times, with some jitter, which does not help. OC and Chuck: could you tell me how to adjust my Receive Timeout? Thanks, Ben On Wed, Apr 6, 2016 at 2:26 AM, Chuck Hill wrote: > I assume that you are running the app locally through Apache as that > message is from wotaskd. As OC pointed out, the Receive Timeout is what > you need to adjust up and up and up. > > It sounds like latency is what is killing you, I don’t recall how chatty > JDBC is but it is probably along the lines of ODBC which is quite chatty > indeed. Latency kills its performance. Another possibility is to run a > local copy of the DB. > > Chuck > > > > > On 2016-04-05, 7:38 AM, "webobjects-dev-bounces+chill= > gevityinc@lists.apple.com on behalf of OC" > o...@ocs.cz> wrote: > > >Benjamin, > > > >On 5. 4. 2016, at 11:02, Benjamin Chew wrote: > > > >> I’m in Singapore working off a VPN connection to the States, and while > waiting for some database-intensive components to display, I keep getting > “No Instance Available” because it’s taking so long to complete all the > queries (ping times ~ 200ms). > > > >As others have pointed out, ping times could hardly affect this. > > > >> I’ve tried going to WOMonitor on my local machine (localhost:56789) and > modified the Send, Receive and Connect timeouts, but that didn’t seem to > help. > > > >Far as I can say with my very limited knowledge, > > > >(a) “No Instance Available” is most time (if not always) caused by the > receive timeout at the server side; > >(b) and thus, increasing it enough should help. > > > >> Does anyone have any ideas? > > > >First thing, I would try some ludicrously high receive timeout. For us, > it always helped (in the sense that the rendered page did always return, > presumed the user had the patience to wait long enough, especially when by > a mistake I had computed some results in O(2^N) :)) > > > >It might also help to check the adaptor log -- touch /tmp/logWebObjects > as root, and the log should appear in /tmp/WebObjectsLog. > > > >The ultimate solution, of course, would be background processing and/or > paging, as others already recommended; but first you need to find the > particular cause of the long processing, which might be sometimes a bit > hairy. > > > >All the best and good luck, > >OC > > > > > > ___ > >Do not post admin requests to the list. They will be ignored. > >Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) > >Help/Unsubscribe/Update your Subscription: > > > https://lists.apple.com/mailman/options/webobjects-dev/chill%40gevityinc.com > > > >This email sent to ch...@gevityinc.com > ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Extending the “No Instance Available” timeout
Hi Everyone, I’m wondering if any of you kind souls can help me. :) I’m in Singapore working off a VPN connection to the States, and while waiting for some database-intensive components to display, I keep getting “No Instance Available” because it’s taking so long to complete all the queries (ping times ~ 200ms). I’ve tried going to WOMonitor on my local machine (localhost:56789) and modified the Send, Receive and Connect timeouts, but that didn’t seem to help. I’ve also tried changing WOMaxSocketIdleTime and WOLifebeatInterval in my Eclipse debugging profile, but that didn’t help either. Does anyone have any ideas? Thanks, Ben ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Precompiled WOAdaptor for apache 2.4
No problem, John. Glad someone tested my instructions out. ;) Yeah, setting up SSL is always a pain. I might have missed out some steps that I did for that... Ben On Thu, Nov 6, 2014 at 5:21 AM, John Pollard wrote: > Ben, > Thanks for your notes which helped me to get the config up and running, so > I am back using apache in dev. > Also good of you to make the binary available. > I gave up with: Include /private/etc/apache2/extra/httpd-ssl.conf > because it demanded a string of other modules be enabled and then a > missing server.crt file, but I don’t need ssl in development for now. > I also use mod_rewrite which has changed a bit in config, but easy to > google for those changes. > I deploy to apache2.2 still, so that switch will be saved for another day. > John > > On 4 Nov 2014, at 20:40, Benjamin Chew wrote: > > Sorry for the confusion, the mailing list didn't like attachments over > 300k and did not distribute my email below. > > Here is a link to the binary: > https://www.dropbox.com/s/zxdbp1wbfx4uyuc/mod_WebObjects.so?dl=0 > > If you want to see how I got things to work, read on... > > - > > Okay, I figured it out. Turns out that I needed to update my Xcode command > line tools. > > These are the steps that you need to perform: > > - Install Xcode (6.1) > > - If you already had Xcode 6.1 installed, run this to reinstall the > command line tools: > /usr/bin/xcode-select --install > > - Add link to Xcode toolchain: > cd /Applications/Xcode.app/Contents/Developer/Toolchains > sudo ln -s XcodeDefault.xctoolchain OSX10.10.xctoolchain > > - Download Wonder adaptors > cd /tmp > svn co https://github.com/wocommunity/wonder.git/Utilities/Adaptors > > - Edit makefile > vi /tmp/Adaptors/Apache2.4/Makefile > and remove the argument "-macosx_version_min 10.5" > > - Build adaptor > cd /tmp/Adaptors > gnumake (some bits fail, but carry on) > gnumake Apache2.4 > > This creates mod_WebObjects.so > in /tmp/Adaptors/Apache2.4 > > Other things that I had to do after I built the adaptor: > > - I then created the directory > /System/Library/WebObjects/Adaptors/Apache2.4/ and moved the adaptor there > > - Copied the apache.conf file from > /System/Library/WebObjects/Adaptors/Apache2.2 > to > /System/Library/WebObjects/Adaptors/Apache2.4 > > - Change the path in the 2nd line of apache.conf to: > LoadModule WebObjects_module > /System/Library/WebObjects/Adaptors/Apache2.4/mod_WebObjects.so > > - Make sure all the file permissions in the Apache2.4 directory were > identical to the ones in the Apache2.2 directory > > === Steps below detail how I edited the stock Yosemite httpd.conf in > /etc/apache2 === > > - Add line in httpd.conf: > Include /System/Library/WebObjects/Adaptors/Apache2.4/apache.conf > > - Uncomment line: > Include /private/etc/apache2/extra/httpd-ssl.conf > > - Change the "Directory /" section to allow access: > > AllowOverride none > Require all granted <--- THIS IS A NEW APACHE 2.4 DIRECTIVE TO "ALLOW > FROM ALL" > > > - I did find it a little weird that this was already in my httpd.conf > (maybe it wasn't stock after all?), but if you don't have it, you need to > add it: > > ScriptAliasMatch ^/cgi-bin/((?!(?i:webobjects)).*$) > "/Library/WebServer/CGI-Executables/$1" <--- ADD THIS LINE > > > Ben > > Ben > > On Mon, Nov 3, 2014 at 9:31 AM, Benjamin Chew > wrote: > >> I attached the binary to my last email. Please let me know how testing >> goes. :) >> >> Ben >> >> On Sat, Nov 1, 2014 at 2:14 PM, Michael Kondratov < >> mich...@aspireauctions.com> wrote: >> >> Could anyone post a binary? I have server we could use to test it. >> >> Michael >> >> On Nov 1, 2014, at 4:56 PM, Ken Anderson wrote: >> >> Has anyone tested this successfully yet? >> >> On Oct 30, 2014, at 7:18 PM, Benjamin Chew wrote: >> >> Patrick, thanks for the write-up. I rearranged John's instructions to >> this: >> >> Install XCode (6.1) >> >> cd /Applications/Xcode.app/Contents/Developer/Toolchains >> sudo ln -s XcodeDefault.xctoolchain OSX10.10.xctoolchain >> >> cd /tmp >> svn co https://github.com/wocommunity/wonder.git/Utilities/Adaptors >> >> vi /tmp/Adaptors/Apache2.4/Makefile >> and remove the arg -macosx_version_min 10.5 >> >> cd /tmp/Adaptors >> gnumake (some bits fail, but carry on) >> gnumake Apache2.4 >> >> -- >> >> When I did the "gnumake", I got some errors at the end, bu
Re: Precompiled WOAdaptor for apache 2.4
Thanks for the information, Patrick. Ben On Wed, Nov 5, 2014 at 3:41 AM, Patrick Middleton wrote: > > On 4 Nov 2014, at 20:40, Benjamin Chew wrote: > > ... > >> >> If you want to see how I got things to work, read on... >> > ... > >> >> Other things that I had to do after I built the adaptor: >> >> - I then created the directory /System/Library/WebObjects/Adaptors/Apache2.4/ >> and moved the adaptor there >> >> - Copied the apache.conf file from >> /System/Library/WebObjects/Adaptors/Apache2.2 >> to >> /System/Library/WebObjects/Adaptors/Apache2.4 >> >> - Change the path in the 2nd line of apache.conf to: >> LoadModule WebObjects_module/System/Library/WebObjects/ >> Adaptors/Apache2.4/mod_WebObjects.so >> > ... > > In an ideal world, by convention you would be placing this stuff in > /Library/ , not /System/Library/ . You can put it anywhere you like, > provided Apache can find it. > > > > >> - I did find it a little weird that this was already in my httpd.conf >> (maybe it wasn't stock after all?), but if you don't have it, you need to >> add it: >> >> ScriptAliasMatch ^/cgi-bin/((?!(?i:webobjects)).*$) >> "/Library/WebServer/CGI-Executables/$1" <--- ADD THIS LINE >> >> > > Mmm? > Head to http://httpd.apache.org/ , find and download httpd-2.4.10.tar.gz > , search the source code for the word webobjects -- you won't find it. > Head to http://www.opensource.apple.com/release/os-x-1010/ , find and > download apache-793 [ http://www.opensource.apple. > com/tarballs/apache/apache-793.tar.gz ], search the source code for the > word webobjects -- you will find it in patches/PR-5432464.diff_httpd.conf > , which looks like this: > > =-=-=-=-=-=-=-=-= > --- docs/conf/httpd.conf.in.orig2012-11-07 19:05:38.0 -0800 > +++ docs/conf/httpd.conf.in 2013-11-11 14:30:00.0 -0800 > @@ -246,7 +246,7 @@ > # client. The same rules about trailing "/" apply to ScriptAlias > # directives as to Alias. > # > -ScriptAlias /cgi-bin/ "@exp_cgidir@/" > +ScriptAliasMatch ^/cgi-bin/((?!(?i:webobjects)).*$) "@exp_cgidir@/$1" > > > =-=-=-=-=-=-=-=-= > > > ie, Apple's stock build of Apache 2.4.9 (and 2.2.x, if you care to repeat > the exercise for OSX 10.9.x and earlier) does indeed have a default > configuration that is tweaked so that requests for URLs /cgi-bin/WebObjects > are not processed by the CGI handler. > > > Still reading? OSX 10.10 ships with Apache 2.4.9, the SSL module uses > OpenSSL and the libraries shipped are OpenSSL 0.9.8za . The current > release of Apache is 2.4.10, and OpenSSL is 0.9.8zc or 1.0.1j. If you are > deploying on OSX, and care, or are obliged to care, about running > fully-patched software with no known vulnerabilties or exploits, what Apple > ships will no longer do. When Apple ships security updates, any Apache or > OpenSSL included will be newer, but rarely new enough. Learning to build > your own Apache 2.x and OpenSSL is something I recommend. > > -- Patrick > > ___ > Do not post admin requests to the list. They will be ignored. > Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) > Help/Unsubscribe/Update your Subscription: > https://lists.apple.com/mailman/options/webobjects- > dev/bchew%40smarthealth.com > > This email sent to bc...@smarthealth.com > ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Precompiled WOAdaptor for apache 2.4
Sorry for the confusion, the mailing list didn't like attachments over 300k and did not distribute my email below. Here is a link to the binary: https://www.dropbox.com/s/zxdbp1wbfx4uyuc/mod_WebObjects.so?dl=0 If you want to see how I got things to work, read on... - Okay, I figured it out. Turns out that I needed to update my Xcode command line tools. These are the steps that you need to perform: - Install Xcode (6.1) - If you already had Xcode 6.1 installed, run this to reinstall the command line tools: /usr/bin/xcode-select --install - Add link to Xcode toolchain: cd /Applications/Xcode.app/Contents/Developer/Toolchains sudo ln -s XcodeDefault.xctoolchain OSX10.10.xctoolchain - Download Wonder adaptors cd /tmp svn co https://github.com/wocommunity/wonder.git/Utilities/Adaptors - Edit makefile vi /tmp/Adaptors/Apache2.4/Makefile and remove the argument "-macosx_version_min 10.5" - Build adaptor cd /tmp/Adaptors gnumake (some bits fail, but carry on) gnumake Apache2.4 This creates mod_WebObjects.so in /tmp/Adaptors/Apache2.4 Other things that I had to do after I built the adaptor: - I then created the directory /System/Library/WebObjects/Adaptors/Apache2.4/ and moved the adaptor there - Copied the apache.conf file from /System/Library/WebObjects/Adaptors/Apache2.2 to /System/Library/WebObjects/Adaptors/Apache2.4 - Change the path in the 2nd line of apache.conf to: LoadModule WebObjects_module /System/Library/WebObjects/Adaptors/Apache2.4/mod_WebObjects.so - Make sure all the file permissions in the Apache2.4 directory were identical to the ones in the Apache2.2 directory === Steps below detail how I edited the stock Yosemite httpd.conf in /etc/apache2 === - Add line in httpd.conf: Include /System/Library/WebObjects/Adaptors/Apache2.4/apache.conf - Uncomment line: Include /private/etc/apache2/extra/httpd-ssl.conf - Change the "Directory /" section to allow access: AllowOverride none Require all granted <--- THIS IS A NEW APACHE 2.4 DIRECTIVE TO "ALLOW FROM ALL" - I did find it a little weird that this was already in my httpd.conf (maybe it wasn't stock after all?), but if you don't have it, you need to add it: ScriptAliasMatch ^/cgi-bin/((?!(?i:webobjects)).*$) "/Library/WebServer/CGI-Executables/$1" <--- ADD THIS LINE Ben Ben On Mon, Nov 3, 2014 at 9:31 AM, Benjamin Chew wrote: > I attached the binary to my last email. Please let me know how testing > goes. :) > > Ben > > On Sat, Nov 1, 2014 at 2:14 PM, Michael Kondratov < > mich...@aspireauctions.com> wrote: > > Could anyone post a binary? I have server we could use to test it. > > Michael > > On Nov 1, 2014, at 4:56 PM, Ken Anderson wrote: > > Has anyone tested this successfully yet? > > On Oct 30, 2014, at 7:18 PM, Benjamin Chew wrote: > > Patrick, thanks for the write-up. I rearranged John's instructions to this: > > Install XCode (6.1) > > cd /Applications/Xcode.app/Contents/Developer/Toolchains > sudo ln -s XcodeDefault.xctoolchain OSX10.10.xctoolchain > > cd /tmp > svn co https://github.com/wocommunity/wonder.git/Utilities/Adaptors > > vi /tmp/Adaptors/Apache2.4/Makefile > and remove the arg -macosx_version_min 10.5 > > cd /tmp/Adaptors > gnumake (some bits fail, but carry on) > gnumake Apache2.4 > > -- > > When I did the "gnumake", I got some errors at the end, but I expected > that because Patrick said FastCGI wouldn't build. But when I did the > "gnumake Apache2.4", I got this (unexpected): > > /usr/sbin/apxs -c -S CC=gcc -Wc,"-I/usr/include/apache2 -I../Adaptor > -DSINGLE_THREADED_ADAPTOR -DMACOS -DFORKING_WEBSERVER -DAPACHE -Wall > -arch x86_64 -arch i386" -Wl," -arch x86_64 -arch i386 -lm -module" > mod_WebObjects.c ../Adaptor/MoreURLCUtilities.c ../Adaptor/Platform.c > ../Adaptor/WOURLCUtilities.c ../Adaptor/WOURLCUtilities_3.c > ../Adaptor/appcfg.c ../Adaptor/cfgparse.c ../Adaptor/config.c > ../Adaptor/hostlookup.c ../Adaptor/list.c ../Adaptor/listing.c > ../Adaptor/loadaverage.c ../Adaptor/loadbalancing.c ../Adaptor/log.c > ../Adaptor/nbsocket.c ../Adaptor/random.c ../Adaptor/request.c > ../Adaptor/response.c ../Adaptor/roundrobin.c ../Adaptor/shmem.c > ../Adaptor/strdict.c ../Adaptor/strtbl.c ../Adaptor/transaction.c > ../Adaptor/transport.c ../Adaptor/wastring.c ../Adaptor/womalloc.c > ../Adaptor/xmlcparser.c ../Adaptor/xmlctokenizer.c ../Adaptor/xmlparse.c > /usr/share/apr-1/build-1/libtool --silent --mode=compile gcc-DDARWIN > -DSIGPROCMASK_SETS_THREAD_MASK -DDARWIN_10 -I/usr/include/apache2 > -I/usr/include/apr-1 -I/usr/include/apr-1 -O2 -I/usr/include/apache2 > -I../Adaptor -DSINGLE_THREADED_ADAPTOR -DMACOS -DFORKING_WEBSERVER > -DAPACHE -Wall -a
Re: Precompiled WOAdaptor for apache 2.4
I attached the binary to my last email. Please let me know how testing goes. :)BenOn Sat, Nov 1, 2014 at 2:14 PM, Michael Kondratov wrote:Could anyone post a binary? I have server we could use to test it.MichaelOn Nov 1, 2014, at 4:56 PM, Ken Anderson <kenli...@anderhome.com> wrote:Has anyone tested this successfully yet?On Oct 30, 2014, at 7:18 PM, Benjamin Chew <bc...@smarthealth.com> wrote:Patrick, thanks for the write-up. I rearranged John's instructions to this:Install XCode (6.1)cd /Applications/Xcode.app/Contents/Developer/Toolchainssudo ln -s XcodeDefault.xctoolchain OSX10.10.xctoolchaincd /tmpsvn co https://github.com/wocommunity/wonder.git/Utilities/Adaptorsvi /tmp/Adaptors/Apache2.4/Makefileand remove the arg -macosx_version_min 10.5cd /tmp/Adaptorsgnumake (some bits fail, but carry on)gnumake Apache2.4--When I did the "gnumake", I got some errors at the end, but I expected that because Patrick said FastCGI wouldn't build. But when I did the "gnumake Apache2.4", I got this (unexpected):/usr/sbin/apxs -c -S CC=gcc -Wc,"-I/usr/include/apache2 -I../Adaptor -DSINGLE_THREADED_ADAPTOR -DMACOS -DFORKING_WEBSERVER -DAPACHE -Wall -arch x86_64 -arch i386" -Wl," -arch x86_64 -arch i386 -lm -module" mod_WebObjects.c ../Adaptor/MoreURLCUtilities.c ../Adaptor/Platform.c ../Adaptor/WOURLCUtilities.c ../Adaptor/WOURLCUtilities_3.c ../Adaptor/appcfg.c ../Adaptor/cfgparse.c ../Adaptor/config.c ../Adaptor/hostlookup.c ../Adaptor/list.c ../Adaptor/listing.c ../Adaptor/loadaverage.c ../Adaptor/loadbalancing.c ../Adaptor/log.c ../Adaptor/nbsocket.c ../Adaptor/random.c ../Adaptor/request.c ../Adaptor/response.c ../Adaptor/roundrobin.c ../Adaptor/shmem.c ../Adaptor/strdict.c ../Adaptor/strtbl.c ../Adaptor/transaction.c ../Adaptor/transport.c ../Adaptor/wastring.c ../Adaptor/womalloc.c ../Adaptor/xmlcparser.c ../Adaptor/xmlctokenizer.c ../Adaptor/xmlparse.c/usr/share/apr-1/build-1/libtool --silent --mode=compile gcc -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -DDARWIN_10 -I/usr/include/apache2 -I/usr/include/apr-1 -I/usr/include/apr-1 -O2 -I/usr/include/apache2 -I../Adaptor -DSINGLE_THREADED_ADAPTOR -DMACOS -DFORKING_WEBSERVER -DAPACHE -Wall -arch x86_64 -arch i386 -c -o mod_WebObjects.lo mod_WebObjects.c && touch mod_WebObjects.slomod_WebObjects.c:63:10: fatal error: 'httpd.h' file not found#include ^1 error generated.apxs:Error: Command failed with rc=65536.gnumake: *** [mod_WebObjects.so] Error 1--Does anyone know how to resolve this?Thanks,BenOn Tue, Oct 28, 2014 at 10:51 AM, Gino Pacitti <ginok...@mac.com> wrote:+1> On 28 Oct 2014, at 17:50, John Pollard <j...@pollardweb.com> wrote:>> Patrick's instructions on how to build worked for me, compressed for dummies (like me) as this:>> Install XCode (6.1)>> cd /Applications/Xcode.app/Contents/Developer/Toolchains> sudo ln -s XcodeDefault.xctoolchain OSX10.10.xctoolchain>> vi /tmp/Adaptors/Apache2.4/Makefile> and remove the arg -macosx_version_min 10.5>> cd /tmp> svn co https://github.com/wocommunity/wonder.git/Utilities/Adaptors> cd /tmp/Adaptors> gnumake (some bits fail, but carry on)> gnumake Apache2.4>> This creates:> mod_WebObjects.so> in /tmp/Adaptors/Apache2.4>> I haven't tried using it yet, out of time today. If anyone has advice on changes needed to httpd.conf for using Apache2.4 with WO, that would be of interest. I will report back once I have tried it.>> John>>> On 28 Oct 2014, at 15:35, Gino Pacitti <ginok...@mac.com> wrote:>>>> so you have a compiled WOAdaptor?>>>> I originally had difficulty with that and so just went the simpler route and down versioned Apache to 2.2>>>>>>> On 28 Oct 2014, at 15:31, Patrick Middleton <patr...@onestep.co.uk> wrote:>>>>>> I am puzzled by this entire thread.>>>>>> The other day, at home, at my Mac running Yosemite with the newest shiniest Xcode tools installed,>>> I did something like this...>>>>>> cd /tmp/>>> svn co https://github.com/wocommunity/wonder.git/trunk/Utilities/Adaptors>>> cd /tmp/Adaptors>>> gnumake>>> gnumake Apache2.4>>>>>> and that built me the module; copying stuff by hand was not onerous.>>>>>> There were some gotchas. On OSX, the project is set up to build the WO adaptor internals (this works), the CGI adaptor (this works), the FastCGI adaptor (does not work, missing headers) and the Apache2.2 adaptor (never got there because of FastCGI; didn't care). The project will build the Apache 2.4 adaptor, provided the WO adaptor internals have been built.>>>>>> /usr/sbin/apxs will not work as-is: it tries to use a compiler toolchain that doesn't exist, r
Re: Precompiled WOAdaptor for apache 2.4
Patrick, thanks for the write-up. I rearranged John's instructions to this: Install XCode (6.1) cd /Applications/Xcode.app/Contents/Developer/Toolchains sudo ln -s XcodeDefault.xctoolchain OSX10.10.xctoolchain cd /tmp svn co https://github.com/wocommunity/wonder.git/Utilities/Adaptors vi /tmp/Adaptors/Apache2.4/Makefile and remove the arg -macosx_version_min 10.5 cd /tmp/Adaptors gnumake (some bits fail, but carry on) gnumake Apache2.4 -- When I did the "gnumake", I got some errors at the end, but I expected that because Patrick said FastCGI wouldn't build. But when I did the "gnumake Apache2.4", I got this (unexpected): /usr/sbin/apxs -c -S CC=gcc -Wc,"-I/usr/include/apache2 -I../Adaptor -DSINGLE_THREADED_ADAPTOR -DMACOS -DFORKING_WEBSERVER -DAPACHE -Wall -arch x86_64 -arch i386" -Wl," -arch x86_64 -arch i386 -lm -module" mod_WebObjects.c ../Adaptor/MoreURLCUtilities.c ../Adaptor/Platform.c ../Adaptor/WOURLCUtilities.c ../Adaptor/WOURLCUtilities_3.c ../Adaptor/appcfg.c ../Adaptor/cfgparse.c ../Adaptor/config.c ../Adaptor/hostlookup.c ../Adaptor/list.c ../Adaptor/listing.c ../Adaptor/loadaverage.c ../Adaptor/loadbalancing.c ../Adaptor/log.c ../Adaptor/nbsocket.c ../Adaptor/random.c ../Adaptor/request.c ../Adaptor/response.c ../Adaptor/roundrobin.c ../Adaptor/shmem.c ../Adaptor/strdict.c ../Adaptor/strtbl.c ../Adaptor/transaction.c ../Adaptor/transport.c ../Adaptor/wastring.c ../Adaptor/womalloc.c ../Adaptor/xmlcparser.c ../Adaptor/xmlctokenizer.c ../Adaptor/xmlparse.c /usr/share/apr-1/build-1/libtool --silent --mode=compile gcc-DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -DDARWIN_10 -I/usr/include/apache2 -I/usr/include/apr-1 -I/usr/include/apr-1 -O2 -I/usr/include/apache2 -I../Adaptor -DSINGLE_THREADED_ADAPTOR -DMACOS -DFORKING_WEBSERVER -DAPACHE -Wall -arch x86_64 -arch i386 -c -o mod_WebObjects.lo mod_WebObjects.c && touch mod_WebObjects.slo mod_WebObjects.c:63:10: fatal error: 'httpd.h' file not found #include ^ 1 error generated. apxs:Error: Command failed with rc=65536 . gnumake: *** [mod_WebObjects.so] Error 1 -- Does anyone know how to resolve this? Thanks, Ben On Tue, Oct 28, 2014 at 10:51 AM, Gino Pacitti wrote: > +1 > > On 28 Oct 2014, at 17:50, John Pollard wrote: > > > > Patrick's instructions on how to build worked for me, compressed for > dummies (like me) as this: > > > > Install XCode (6.1) > > > > cd /Applications/Xcode.app/Contents/Developer/Toolchains > > sudo ln -s XcodeDefault.xctoolchain OSX10.10.xctoolchain > > > > vi /tmp/Adaptors/Apache2.4/Makefile > > and remove the arg -macosx_version_min 10.5 > > > > cd /tmp > > svn co https://github.com/wocommunity/wonder.git/Utilities/Adaptors > > cd /tmp/Adaptors > > gnumake (some bits fail, but carry on) > > gnumake Apache2.4 > > > > This creates: > > mod_WebObjects.so > > in /tmp/Adaptors/Apache2.4 > > > > I haven't tried using it yet, out of time today. If anyone has advice on > changes needed to httpd.conf for using Apache2.4 with WO, that would be of > interest. I will report back once I have tried it. > > > > John > > > >> On 28 Oct 2014, at 15:35, Gino Pacitti wrote: > >> > >> so you have a compiled WOAdaptor? > >> > >> I originally had difficulty with that and so just went the simpler > route and down versioned Apache to 2.2 > >> > >> > >>> On 28 Oct 2014, at 15:31, Patrick Middleton > wrote: > >>> > >>> I am puzzled by this entire thread. > >>> > >>> The other day, at home, at my Mac running Yosemite with the newest > shiniest Xcode tools installed, > >>> I did something like this... > >>> > >>> cd /tmp/ > >>> svn co > https://github.com/wocommunity/wonder.git/trunk/Utilities/Adaptors > >>> cd /tmp/Adaptors > >>> gnumake > >>> gnumake Apache2.4 > >>> > >>> and that built me the module; copying stuff by hand was not onerous. > >>> > >>> There were some gotchas. On OSX, the project is set up to build the > WO adaptor internals (this works), the CGI adaptor (this works), the > FastCGI adaptor (does not work, missing headers) and the Apache2.2 adaptor > (never got there because of FastCGI; didn't care). The project will build > the Apache 2.4 adaptor, provided the WO adaptor internals have been built. > >>> > >>> /usr/sbin/apxs will not work as-is: it tries to use a compiler > toolchain that doesn't exist, referring to IIRC > /Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.10.xctoolchain/usr/bin/cc > . apxs is your friend; it's there to let you build Apache modules with the > same compiler and flags (especially optimisation flags) as was used to > build Apache. > >>> > >>> So we do something like (from memory) > >>> > >>> cd > /Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.10.xctoolchain/ > >>> sudo ln -s XcodeDefault.xctoolchain OSX10.10.xctoolchain > >>> > >>> and if I have that right, we can now use Xcode tools via the same > filenames as were used by whoever at Apple built Apache 2.4 for Yosemite. > Have a read of the /usr/sbin/apxs script. Even
Log rotation
Hi everyone, I'm wondering if you could help me out here. I'm trying to implement log rotation, and have been referencing Kieran's example on the wiki ( http://wiki.wocommunity.org/display/documentation/Log+Rotation) as a starting point. I've implemented it very similarly: # Log4j Configuration log4j.loggerFactory=er.extensions.logging.ERXLogger$Factory log4j.rootCategory=INFO, A1, A2 log4j.appender.A1=org.apache.log4j.ConsoleAppender log4j.appender.A1.layout=er.extensions.logging.ERXPatternLayout log4j.appender.A1.layout.ConversionPattern=%d{MMM dd HH:mm:ss} %$[%#] %-5p %c %x - %m%n log4j.appender.A2=org.apache.log4j.DailyRollingFileAppender log4j.appender.A2.file=${WOOutputPath} log4j.appender.A2.datePattern='.'MMddHHmm log4j.appender.A2.append=true log4j.appender.A2.layout=er.extensions.logging.ERXPatternLayout log4j.appender.A2.layout.ConversionPattern=%d{MMM dd HH:mm:ss} %$[%#] %-5p %c %x - %m%n The only difference is that I'm using the WOOutputPath as the file path (highlighted above). This works great except that the default logging system for my app seems to be clashing with my the DailyRollingFileAppender, such that when I start the app up, I get 2 log files. It looks like the log file generated by the DailyRollingFileAppender gets initialized first, then some code in WOApplication sees it and appends a timestamp to it, then continues to log to the WOOutputPath. Does anyone have any ideas as to how to deal with this? Like switch off the default logging? Any help would be greatly appreciated. Thanks, Ben ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Child editing context not getting updated with save
I'm using ERXEC auto locking without calling lock() explicitly and the method is a component action (called in the RR loop). Ben On Wed, Jun 18, 2014 at 9:08 PM, Chuck Hill wrote: > Is the child EC locked? > > On 2014-06-18, 2:27 PM, "Benjamin Chew" wrote: > > Hi All, > > I'm new to dealing with child editing contexts and am wondering if > anyone can help shed some light on this issue. > > So I have a parent EC and a child EC, and I fetch an object into the > child EC. I then modify the object by using code like this: > > EOEditingContext tempEC = ERXEC.newEditingContext(); > > Object objectInTempEC = theObject.localInstanceIn(tempEC); > > objectInTempEC.setFlag(1); > > tempEC.saveChanges(); > > The change gets saved to the database and is propagated to the parent EC > (because it is a peer to the "tempEC"), but the problem is that the change > doesn't then get propagated down to the child EC. > > Does anyone know why this happens and what to do about it? > > As usual, thanks in advance! > > Ben > > ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Child editing context not getting updated with save
Hi All, I'm new to dealing with child editing contexts and am wondering if anyone can help shed some light on this issue. So I have a parent EC and a child EC, and I fetch an object into the child EC. I then modify the object by using code like this: EOEditingContext tempEC = ERXEC.newEditingContext(); Object objectInTempEC = theObject.localInstanceIn(tempEC); objectInTempEC.setFlag(1); tempEC.saveChanges(); The change gets saved to the database and is propagated to the parent EC (because it is a peer to the "tempEC"), but the problem is that the change doesn't then get propagated down to the child EC. Does anyone know why this happens and what to do about it? As usual, thanks in advance! Ben ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Wonder javadoc missing?
Great! Thanks Pascal. Ben > On Aug 23, 2013, at 2:15 AM, Pascal Robert wrote: > > https://issues.jenkins-ci.org/browse/JENKINS-19281 > > So I downgraded Jenkins and everything's is fine. > >> Hum, I upgraded Jenkins this morning. I guess it broke something. >> >>> Hi All, >>> >>> I'm noticing that the javadoc has been missing for at least a couple of >>> hours now. Can someone take a look at this please? Or point me to an >>> alternative URL? >>> >>> This is the URL I've been using: >>> http://jenkins.wocommunity.org/job/Wonder/lastSuccessfulBuild/javadoc/? >>> >>> Thanks, >>> Ben >>> ___ >>> Do not post admin requests to the list. They will be ignored. >>> Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) >>> Help/Unsubscribe/Update your Subscription: >>> https://lists.apple.com/mailman/options/webobjects-dev/probert%40macti.ca >>> >>> This email sent to prob...@macti.ca >> >> >> ___ >> Do not post admin requests to the list. They will be ignored. >> Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) >> Help/Unsubscribe/Update your Subscription: >> https://lists.apple.com/mailman/options/webobjects-dev/probert%40macti.ca >> >> This email sent to prob...@macti.ca > ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Wonder javadoc missing?
Hi All, I'm noticing that the javadoc has been missing for at least a couple of hours now. Can someone take a look at this please? Or point me to an alternative URL? This is the URL I've been using: http://jenkins.wocommunity.org/job/Wonder/lastSuccessfulBuild/javadoc/? Thanks, Ben ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Senior WebObjects Programmer Job Posting
Hi Everyone, We're looking for a Senior WebObjects Engineer to work on a small team of programmers out in sunny Phoenix, Arizona, USA. Below is the full job posting. Please email your resumes to me if you are interested in this position or go to http://www.oursmartjobs.com to apply online. Thanks, Ben -- Senior WebObjects Engineer - SmartPractice (Phoenix, AZ) SmartPractice is a family owned enterprise consisting of a number of affiliate companies serving specific vertical markets. For nearly 40 years, the SmartPractice family of companies has been a diversified organization providing a broad range of products and services for health care professionals. Our areas of focus include dentistry, dermatology and scrubs. The Software Engineering group is looking for a Senior WebObjects Engineer with at least 5+ years of experience in WebObjects 5 to help build/support applications for our diverse companies. iOS experience is plus. The best candidate for this position will be someone who demonstrates the following capabilities: * Being creative. * Being an independent thinker, but open to others' ideas. * Being a good trouble shooter and problem solver. * Knowing how to balance between "over engineering" and "doing something quickly" (and knowing the risks/benefits of either approach). * Being productive with little guidance (a self starter). * Working well on a small team and as part of a larger organization. * Building/supporting/enhancing WebObjects 5 (Java) applications. * Participate in project planning and estimation. * Oversee the design, development and testing of assigned projects. * Learn business processes and how they interact with systems. This includes analyzing "project specifications" (and I use that term lightly) to make sure that the technical implementation marries well with the business objectives as laid out by the project managers. * Learn business data structures, how they relate to each other, and how to utilize them fully within a project. This includes reading SQL (PostgreSQL and Sybase specifically) to understand existing applications and writing SQL so that it is optimal for database/application performance. We are a technologically diverse company so it's impossible to list everything this person could possibly work on. Please take the time to look at some of our existing eCommerce sites and companies (be gentle) to get a better sense. http://www.smartpractice.com http://www.practicemojo.com http://www.smartscrubs.com We have deep roots with WebObjects technology having started developing with it in 1996. While we continue to evolve we expect to continue to leverage this investment going forward. We also have a large deployment of OpenStep (supported by a different group) in which our desktop CRM system is currently deployed. Long term, the Software Engineering group has been tasked with rewriting our CRM system in something modern. Most likely it will be back-ended by WO5, maybe front-ended too? SmartPractice is a great company to work for and I know that you'd be happy here too. Please look at http://www.oursmartjobs.com to learn a little about our company and our benefits. Important Notes: * Salary D.O.E. Please include salary requirements when applying for this position. * SmartPractice and affiliate companies are a tobacco, drug, and alcohol free workplaces. * SmartPractice is an Equal Opportunity Employer. ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Wonder, mod_rewrite and subdomains
Thanks for the info, Jesse. How would I set an app to use a different subdomain without restarting it and changing it's WOAdaptorURL and WOHost properties? What classes/methods should I be looking at? Are there any other resources that would help? Thanks again, Ben On Wed, Mar 21, 2012 at 1:27 PM, Jesse Tayler wrote: > Sure, > > Use apache to redirect based on subdomains or reverse by sending a domain > ID like you have and setting you app page wrapper or whatever else to the > domain > > In the past I used D2W rules based on the domain that changed logic within > the same app etc. which is what I think you are describing. > > > > Sent from my iPad > > On Mar 21, 2012, at 3:08 PM, Benjamin Chew wrote: > > Hi guys, > > I have a request from marketing to redirect to a specific sub-domain based > on a parameter, and I wondering if you guys had encountered something like > this before. > > For example, apple.com has some subdomains: > http://store.apple.com > http://support.apple.com > > I imagine these are actually different apps in Apple's case, but is there > a way to do this in one app based on a parameter? > > For example, > > http://store.apple.com/us/wa/product?id=newipad > would be rewritten as > http://www.apple.com/us/wa/product?domain=store&id=newipad > > http://support.apple.com/us/wa/article?id=retinadisplay > would be rewritten as > http://www.apple.com/us/wa/article?domain=support&id=retinadisplay > > Thanks in advance, > Ben > > ___ > Do not post admin requests to the list. They will be ignored. > Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) > Help/Unsubscribe/Update your Subscription: > https://lists.apple.com/mailman/options/webobjects-dev/jtayler%40oeinc.com > > This email sent to jtay...@oeinc.com > > ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Wonder, mod_rewrite and subdomains
Hi guys, I have a request from marketing to redirect to a specific sub-domain based on a parameter, and I wondering if you guys had encountered something like this before. For example, apple.com has some subdomains: http://store.apple.com http://support.apple.com I imagine these are actually different apps in Apple's case, but is there a way to do this in one app based on a parameter? For example, http://store.apple.com/us/wa/product?id=newipad would be rewritten as http://www.apple.com/us/wa/product?domain=store&id=newipad http://support.apple.com/us/wa/article?id=retinadisplay would be rewritten as http://www.apple.com/us/wa/article?domain=support&id=retinadisplay Thanks in advance, Ben ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
[Job Posting] Senior WebObjects Engineer - SmartPractice, Inc (Phoenix, AZ)
Hi Everyone, My company (SmartPractice) in Phoenix, AZ is looking for a Senior Software Engineer to join Ramsey and myself. Please look over the job posting below and post your resume at http://www.oursmartjobs.com. Thanks, Ben -- SmartPractice, Inc. is a family owned enterprise consisting of a number of affiliate companies serving specific vertical markets. For nearly 40 years, the SmartPractice family of companies has been a diversified organization providing practice management and patient communication solutions to clients throughout the healthcare community. The Software Engineering group is looking for a Senior WebObjects Engineer with at least 5+ years of experience in WebObjects 5 to help build/support applications for our diverse companies. The best candidate for this position will be someone who demonstrates the following capabilities: * Being creative. * Being an independent thinker, but open to others' ideas. * Being a good trouble shooter and problem solver. * Knowing how to balance between "over engineering" and "doing something quickly" (and knowing the risks/benefits of either approach). * Being productive with little guidance (a self starter). * Working well on a small team and as part of a larger organization. * Learning something new every day and teaching those around you. * Building/supporting/enhancing WebObjects 5 (Java) applications. * Participate in project planning and estimation. * Oversee the design, development and testing of assigned projects. * Learn business processes and how they interact with systems. This includes analyzing "project specifications" (and I use that term lightly) to make sure that the technical implementation marries well with the business objectives as laid out by the project managers. * Learn business data structures, how they relate to each other, and how to utilize them fully within a project. This includes reading SQL (PostgreSQL and Sybase specifically) to understand existing applications and writing SQL so that it is optimal for database/application performance. We are a technologically diverse company so it's impossible to list everything this person could possibly work on. Please take the time to look at some of our existing eCommerce sites and companies (be gentle) to get a better sense. http://www.practicemojo.com http://www.smartscrubs.com These are still in WO4/Obj-C!: http://www.smartpractice.com (rewrite to WO5 underway) http://www.allerderm.com http://www.sellsmart.com http://www.porfavor.com We have always been and will probably always be committed to WebObjects technology. We've been using it since it was in pre-release (1996?). We have a large deployment of OpenStep (supported by a different group) in which our desktop CRM system is currently deployed. Long term, the Software Engineering group has been tasked with rewriting our CRM system in something modern. Most likely it will be back-ended by WO5, maybe front-ended too? If you love WebObjects, we do too, and we won't stop loving it anytime soon. SmartPractice is a great company to work for and I know that you'd be happy here too. Please look at http://www.oursmartjobs.com to learn a little about our company and our benefits. Important Notes: * This is not a telecommuting job; work is done on site in Phoenix, AZ. * Salary D.O.E. Please include salary requirements when applying for this position. * SmartPractice and affiliate companies are a tobacco, drug, and alcohol free workplaces. * SmartPractice is an Equal Opportunity Employer. Please post your resume at http://www.oursmartjobs.com. ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Owns destination doesn't play well with nullify delete rule?
Ah, good to know. Thanks Chuck! On Wed, Sep 8, 2010 at 3:15 PM, Chuck Hill wrote: > It's because if you nullify the relationship, after EOF does that it can't > find the related objects to do the cascade delete. Nullify and Cascade are > not compatible. > > Chuck > > > On Sep 7, 2010, at 7:31 AM, Benjamin Chew wrote: > > > Thanks Chuck! Is that because of the owns destination relationship from > category to products? > > > > Ben > > > > On Thu, Sep 2, 2010 at 7:42 PM, Chuck Hill > wrote: > > You want No Action, not Nullify. > > > > Chuck > > > > > > On Sep 2, 2010, at 7:02 PM, Benjamin Chew wrote: > > > > > Hi, > > > > > > I have a category structure set up with these relationships: > > > parent category ---cascade delete rule---> child category > > > parent category <---nullify delete rule--- child category > > > > > > category ---cascade delete rule/owns destination---> products > > > category <---nullify delete rule--- products > > > > > > The problem occurs when I have a category with a child category that > contains products. When I delete the parent category, I expect the parent > and child category, along with all the child category's products to be > deleted, but what ends up happening is that the categories are deleted but > the products are not. > > > > > > When I remove the nullify delete rule from "products" to "category", > the parent and child categories are deleted along with the child category's > products. > > > > > > Does anyone know why this is? > > > > > > Thanks, > > > Ben > > > ___ > > > Do not post admin requests to the list. They will be ignored. > > > Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) > > > Help/Unsubscribe/Update your Subscription: > > > > http://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net > > > > > > This email sent to ch...@global-village.net > > > > -- > > Chuck Hill Senior Consultant / VP Development > > > > Practical WebObjects - for developers who want to increase their overall > knowledge of WebObjects or who are trying to solve specific problems. > > http://www.global-village.net/products/practical_webobjects > > > > > > > > > > > > > > > > > > -- > Chuck Hill Senior Consultant / VP Development > > Practical WebObjects - for developers who want to increase their overall > knowledge of WebObjects or who are trying to solve specific problems. > http://www.global-village.net/products/practical_webobjects > > > > > > > > ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Owns destination doesn't play well with nullify delete rule?
Thanks Chuck! Is that because of the owns destination relationship from category to products? Ben On Thu, Sep 2, 2010 at 7:42 PM, Chuck Hill wrote: > You want No Action, not Nullify. > > Chuck > > > On Sep 2, 2010, at 7:02 PM, Benjamin Chew wrote: > > > Hi, > > > > I have a category structure set up with these relationships: > > parent category ---cascade delete rule---> child category > > parent category <---nullify delete rule--- child category > > > > category ---cascade delete rule/owns destination---> products > > category <---nullify delete rule--- products > > > > The problem occurs when I have a category with a child category that > contains products. When I delete the parent category, I expect the parent > and child category, along with all the child category's products to be > deleted, but what ends up happening is that the categories are deleted but > the products are not. > > > > When I remove the nullify delete rule from "products" to "category", the > parent and child categories are deleted along with the child category's > products. > > > > Does anyone know why this is? > > > > Thanks, > > Ben > > ___ > > Do not post admin requests to the list. They will be ignored. > > Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) > > Help/Unsubscribe/Update your Subscription: > > > http://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net > > > > This email sent to ch...@global-village.net > > -- > Chuck Hill Senior Consultant / VP Development > > Practical WebObjects - for developers who want to increase their overall > knowledge of WebObjects or who are trying to solve specific problems. > http://www.global-village.net/products/practical_webobjects > > > > > > > > ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Owns destination doesn't play well with nullify delete rule?
Hi, I have a category structure set up with these relationships: parent category ---cascade delete rule---> child category parent category <---nullify delete rule--- child category category ---cascade delete rule/owns destination---> products category <---nullify delete rule--- products The problem occurs when I have a category with a child category that contains products. When I delete the parent category, I expect the parent and child category, along with all the child category's products to be deleted, but what ends up happening is that the categories are deleted but the products are not. When I remove the nullify delete rule from "products" to "category", the parent and child categories are deleted along with the child category's products. Does anyone know why this is? Thanks, Ben ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Ajax submit when "Enter" pressed on form fields
Chuck, you are the man. Sorry for being such a noob. Thanks for writing that, btw. :) Ben On Fri, Apr 23, 2010 at 3:31 PM, Chuck Hill wrote: > AjaxDefaultSubmitButton > > > > On Apr 23, 2010, at 3:26 PM, Benjamin Chew wrote: > > Hi guys, >> >> I'm using an AjaxSubmitButton to submit a form and pop up an >> AjaxModalDialog in the process. Does anyone know of a way that I could do >> that same submission when a user presses "Enter" in any of my form fields? >> >> I've tried using the js "click()" method to no avail. >> >> Thanks, >> Ben >> >> Code: >> >> >> >>Part Number >>> "$purchasePartNumber" default = "catalog part #" onkeydown="if >> (event.keyCode == 13) >> document.getElementById('quickOrderSubmitButton').click()"/> >> >>Qty >>> numberformat = "0" default = "qty" onkeydown="if (event.keyCode == 13) >> document.getElementById('quickOrderSubmitButton').click()"/> >> >>> value = "purchase"> >> >> ___ >> Do not post admin requests to the list. They will be ignored. >> Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) >> Help/Unsubscribe/Update your Subscription: >> >> http://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net >> >> This email sent to ch...@global-village.net >> > > -- > Chuck Hill Senior Consultant / VP Development > > Practical WebObjects - for developers who want to increase their overall > knowledge of WebObjects or who are trying to solve specific problems. > http://www.global-village.net/products/practical_webobjects > > > > > > > > ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Ajax submit when "Enter" pressed on form fields
Hi guys, I'm using an AjaxSubmitButton to submit a form and pop up an AjaxModalDialog in the process. Does anyone know of a way that I could do that same submission when a user presses "Enter" in any of my form fields? I've tried using the js "click()" method to no avail. Thanks, Ben Code: Part Number Qty ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Submit form and pop up a AjaxModalDialog confirming submission
Thanks Chuck and Farrukh! I ended up going with Chuck's solution in the end as it was a little cleaner to do open the ModalDialog programmatically. Ben On Wed, Apr 21, 2010 at 7:57 PM, Farrukh Ijaz < farrukh.i...@fuegodigitalmedia.com> wrote: > Try this, I use AjaxSubmitButton instead of AjaxModalDialogOpener using > javascript function. If your component has an AjaxModalDialog component with > some id "sampleDialog", you'll have a javascript function at runtime as > "openAMD_SampleDialog()" to open the dialog. > > >"$purchasePartNumber" focus = "true" /> >numberformat = "0" /> >"EditForm" onComplete = "openAMD_AddToCartModalDialog()"/> > > > > > Farrukh > > On 2010-04-21, at 8:56 PM, Benjamin Chew wrote: > > How do you tie a form submission to an AjaxModalDialog? > > I'm trying to submit a form, process the values with the method "purchase" > and pop up the result (added to cart or error). Right now I have this and it > doesn't work: > > >"$purchasePartNumber" focus = "true" /> > numberformat = "0" /> > < > wo:submitButton action = "$purchase">Purchase wo:AjaxModalDialogOpener> > > > > Thanks, > Ben > ___ > 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/farrukh.ijaz%40fuegodigitalmedia.com > > This email sent to farrukh.i...@fuegodigitalmedia.com > > > ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Submit form and pop up a AjaxModalDialog confirming submission
How do you tie a form submission to an AjaxModalDialog? I'm trying to submit a form, process the values with the method "purchase" and pop up the result (added to cart or error). Right now I have this and it doesn't work: < wo:submitButton action = "$purchase">Purchase Thanks, Ben ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: EOModel SQL Statement
If the numeric suffix is the only part of the policy number that changes, then you can use: WHERE PolicyNumber >= 'KD/FGH/3345/NNN/1000' and PolicyNumber <= ' KD/FGH/3345/NNN/1090' Ben On Tue, Apr 6, 2010 at 7:48 AM, Gino Pacitti wrote: > Can someone help with a SQL statement to return rows... > > I have a field (varchar) which is used to store a PolicyNumber - something > like KD/FGH/3345/NNN/1000 > > They are stored sequentially and go up to KD/FGH/3345/NNN/5000 > > I need to select a set that is something like KD/FGH/3345/NNN/1000 - > KD/FGH/3345/NNN/1090 > > I have tried using a SQL statement that uses BETWEEN and LIKE and <= etc.. > but I cannot get a statement to return the 90 rows between 1000 - 1090.. > > Can someone help? > > Gino > ___ > 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/bchew%40smarthealth.com > > This email sent to bc...@smarthealth.com > ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Ajax fly-out menu
Thanks for letting me know. I did manage to do what I mentioned in the last email. Time to do some testing with real world data! Ben On Wed, Mar 10, 2010 at 7:45 PM, John Ours wrote: > > On Mar 10, 2010, at 5:40 PM, Benjamin Chew wrote: > > > Thanks for the insight. I think I'm still going to try it out and see how > it works for me. > > > > How you did you get the AjaxUpdate to fire on mouseover? I've been > fudging around with this for a couple of days now and I'm at the point where > I'm writing my own Ajax component using bits of AjaxUpdateLink. > > > > The project I did that on wasn't WO...I was using jQuery for ajax. I don't > know offhand how to coerce the Wonder stuff into firing onmouseover. > > > > > > > Ben > > > > On Tue, Mar 9, 2010 at 10:22 PM, John Ours wrote: > > > > On Mar 9, 2010, at 7:04 PM, Benjamin Chew wrote: > > > > > > > > I've been down this road before. In practice the callback is too slow > and the menu isn't really usable. IME if you have a hierarchy that's that > big you're best to switch to another paradigm like a treeview. > > > > > > John > > > > > > Hmm... even if you're just requesting one sub-category at a time in a > simple query? > > > > > > Ben > > > > > > Yep. It's not the time on the server that gets you, it's the round trip > and it just made the menu feel to "sluggish" for my taste. Plus the > callback is fired over and over as the user drags the mouse down the menu. > > > > I suppose you could pull it off by triggering the callback on click and > using some clever loading graphics...or maybe loading the hierarchy one > level ahead or something...just didn't work for me. > > > > ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Ajax fly-out menu
Thanks for the insight. I think I'm still going to try it out and see how it works for me. How you did you get the AjaxUpdate to fire on mouseover? I've been fudging around with this for a couple of days now and I'm at the point where I'm writing my own Ajax component using bits of AjaxUpdateLink. Ben On Tue, Mar 9, 2010 at 10:22 PM, John Ours wrote: > > On Mar 9, 2010, at 7:04 PM, Benjamin Chew wrote: > > > > > I've been down this road before. In practice the callback is too slow > and the menu isn't really usable. IME if you have a hierarchy that's that > big you're best to switch to another paradigm like a treeview. > > > > John > > > > Hmm... even if you're just requesting one sub-category at a time in a > simple query? > > > > Ben > > > Yep. It's not the time on the server that gets you, it's the round trip > and it just made the menu feel to "sluggish" for my taste. Plus the > callback is fired over and over as the user drags the mouse down the menu. > > I suppose you could pull it off by triggering the callback on click and > using some clever loading graphics...or maybe loading the hierarchy one > level ahead or something...just didn't work for me. > ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Ajax fly-out menu
> > > I've been down this road before. In practice the callback is too slow and > the menu isn't really usable. IME if you have a hierarchy that's that big > you're best to switch to another paradigm like a treeview. > > John > Hmm... even if you're just requesting one sub-category at a time in a simple query? Ben ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Ajax fly-out menu
> > >> I'm attempting to code a fly-out menu resembling the one shown at the top >> of this page (http://www.cssmenus.co.uk/flyout.html), with the difference >> being that I want to make an Ajax request every time I hover over a menu >> item to pull the sub-categories to reduce load. >> > > That will reduce page size somewhat, but at the expense of more traffic to > the server. Are you sure that is a good thing to do? We built a recursive category structure using EOs that could (theoretically) accommodate an infinite number of levels, so implementing this using Ajax seems like a good alternative to having to pull the whole category structure all at once, even if that is done only once per session. > I've gotten as far as tinkering with AjaxTree, but realized that I would >> have to rewrite a bunch of code in AjaxUpdateLink as it assumes that the >> Ajax request will be sent "onClick" instead of "onMouseover". >> >> Before I go down that path, I wanted to know if anyone has done this >> before or if someone has other suggestions for me. >> >> Thanks, >> Ben >> > > -- > Chuck Hill Senior Consultant / VP Development > > Practical WebObjects - for developers who want to increase their overall > knowledge of WebObjects or who are trying to solve specific problems. > http://www.global-village.net/products/practical_webobjects > > > > > > > > ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Ajax fly-out menu
Hi All, I'm attempting to code a fly-out menu resembling the one shown at the top of this page (http://www.cssmenus.co.uk/flyout.html), with the difference being that I want to make an Ajax request every time I hover over a menu item to pull the sub-categories to reduce load. I've gotten as far as tinkering with AjaxTree, but realized that I would have to rewrite a bunch of code in AjaxUpdateLink as it assumes that the Ajax request will be sent "onClick" instead of "onMouseover". Before I go down that path, I wanted to know if anyone has done this before or if someone has other suggestions for me. Thanks, Ben ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Fetch Optimization Advice
Could you please explain how that is better than the solutions proposed by Mike? Thanks, Ben On Thu, Jul 9, 2009 at 10:59 AM, Mr. Frank Cobia wrote: > Just in case anybody cares or is looking at similar problems. I came up with > an even better solution. I just programmatically remove the unused > attributes from the model at application startup. > > Thanks, > Frank > > > On Jul 8, 2009, at 4:37 PM, Mr. Frank Cobia wrote: > >> Sorry. I meant never use them in the report or the command line >> application. They are used by my web apps. >> >> Frank >> >> >> On Jul 8, 2009, at 4:34 PM, Mike Schrag wrote: >> Is there any advantage to creating a view and pointing my new entity to that view as opposed to just pointing the entity directly to the table and leaving out the fields I am not interested in? It seems like the view would just add overhead, but you may know some advantage to using it that I am not aware of. >>> >>> Oh, if you NEVER use the fields, then by all means, just remove them from >>> your entity definition (assuming they're not "NOT NULL" fields). >>> >>> 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/frank.cobia%40f2technology.com >>> >>> This email sent to frank.co...@f2technology.com >>> >> >> ___ >> Do not post admin requests to the list. They will be ignored. >> Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) >> Help/Unsubscribe/Update your Subscription: >> >> http://lists.apple.com/mailman/options/webobjects-dev/frank.cobia%40f2technology.com >> >> This email sent to frank.co...@f2technology.com >> > > ___ > Do not post admin requests to the list. They will be ignored. > Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) > Help/Unsubscribe/Update your Subscription: > http://lists.apple.com/mailman/options/webobjects-dev/bchew%40smarthealth.com > > This email sent to bc...@smarthealth.com > ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com