binding oddity?
I made a component yesterday that looked like this... public class myComp extends ERXComponent { public SomeEntity anObject; } anObject was bound in the wod and everything worked great. Later I added a method... public class myComp extends ERXComponent { public SomeEntity anObject; public boolean isAnObject() { return false; } } this is where all hell broke lose. As soon as I added that method I kept getting KVC errors stating that no such key "anObject" existed on a binding that was just working. Can anyone explain this to me? I thought the search order was getBinding(), binding(), _getBinding(), _binding(), binding, _binding. Does isBinding() squeeze into that ordering somewhere? Is this a special case for binding to any boolean? Thanks. -Mike ___ 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: [OT] Apache rewrite rule
Did this on my dev machine and it worked great, but on my leopard server deployment machine I added the same entry in /etc/apache2/httpd.conf and no dice. The shorter URL's are being output from my app using the Wonder er.extensions.ERXApplication.replaceApplicationPath properties, but I get the "requested URL not found" error when I click on one of them. Nothing in the rewrite.log file. Is there some other property to set in httpd.conf or elsewhere? Thanks, Jeff On Apr 16, 2009, at 9:50 AM, Kieran Kelleher wrote: > Finally! Searching the apache docs more, I found another option PT, the > passthrough option, that specifically refers to this being needed for > mod_alias or using mod_rewrite with any other modules that do URI-to-filename > mapping or translation. > > The final working rewrite rule is: > > > # rewrite logging > RewriteLog "/var/log/apache2/rewrite.log" > > # PURL feature > RewriteEngine On > RewriteRule ^/purl/(.*)$ > /cgi-bin/WebObjects/cheetah.woa/-52040/wa/PurlAction/purl?p=$1 [PT] > > > Thanks for the mind-prodding guys. > > Now it is working in apache2 on my dev machine. Hopefully apache 1.3 will be > similar configuration when I deploy this feature in a few days. > > Regards, Kieran > > On Apr 16, 2009, at 10:28 AM, Kieran Kelleher wrote: > >> I added an [R] option on the end of the rule to force an external redirect >> and it works, albeit the URL in the browser address bar becomes the ugly >> one. So, at least this is returning the page ... not let's see if I can make >> it do without an external redirect so that the short URL stays in the >> browser address bar (since the marketing design spec wants the short >> URL) >> >> >> # rewrite logging >> RewriteLog "/tmp/rewrite.log" >> >> # PURL feature >> RewriteEngine On >> RewriteRule ^/purl/(.*)$ >> /cgi-bin/WebObjects/cheetah.woa/-52040/wa/PurlAction/purl?p=$1 [R] >> >> >> >> On Apr 16, 2009, at 10:17 AM, Kieran Kelleher wrote: >> >>> I am using WO 5.3 on leopard with apache 2.2.9. The wo module is coming >>> before rewrite module in httpd.conf: >>> LoadModule WebObjects_module >>> /System/Library/WebObjects/Adaptors/Apache2.2/mod_WebObjects.so >>> LoadModule rewrite_module libexec/apache2/mod_rewrite.so >>> >>> Further investigation shows that each time I try to access the short URL, I >>> see the following error in the apache error_log: >>> [Thu Apr 16 10:12:15 2009] [error] [client ::1] File does not exist: >>> /Library/WebServer/Documents/cgi-bin >>> >>> So just maybe the rewrite rule is working but the result may be conflicting >>> with mod_alias which has a scriptalias entry for the wo cgi-bin??? >>> >>> Does that ring any bells with anyone? >>> >>> Kieran >>> >>> >>> >>> On Apr 16, 2009, at 10:08 AM, Mike Schrag wrote: >>> if you're rewriting to wo instances, you need to make sure the ordering of your modules is right, too ... in 5.3 (i don't know about 5.4), the order of the modules was wrong -- you have to make mod_webobjects come before mod_rewrite (iirc). ms On Apr 16, 2009, at 9:25 AM, Kieran Kelleher wrote: > Hello list, > > Well when Brian Moore said mod_rewrite was voodoo > (http://httpd.apache.org/docs/2.2/rewrite/), I was skeptical, but now I > believe him! I need some help for what I think should be a pretty simple > rewrite rule. I am currently trying to get this to work initially on my > development machine, and I keep getting a 404 "Not Found" message from > apache (version 2.2.9). > > The rule is supposed to take convert URLs like this : > http://localhost/purl/KieranKelleher > > and rewrite them like this (on my dev machine): > http://localhost/cgi-bin/WebObjects/cheetah.woa/-52040/wa/PurlAction/purl?p=KieranKelleher > > I have added this to the end of my /etc/apache2/httpd.conf just before > the last 2 includes at the end of the file (other/*.conf and WO > apache.conf) > > > # rewrite logging > RewriteLog "/tmp/rewrite.log" > > # PURL feature > RewriteEngine On > RewriteRule ^/purl/(.*)$ > /cgi-bin/WebObjects/cheetah.woa/-52040/wa/PurlAction/purl?p=$1 > > > I can confirm that when I restarted apache it creates the > /tmp/rewrite.log if it does not exist, however nothing gets written there. > > I have studied the docs, the wiki docs and many examples. This looks like > it should work, but I cannot for the life of me figure out why it does > not work :-( > > Any clues or hints would be appreciated. > > Thanks, Kieran > ___ > Do not post admin requests to the list. They will be ignored. > Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) > Help/Unsubscribe/Update your Subscription: > http://lists.apple.com/mailman/options/webobjects-dev/mschrag%40mdimen
Re: Hudson Build Script changes
On Nov 2, 2010, at 4:12 PM, David Avendasora wrote: > • For any jobs you have that build Wonder, add the same Parameter, and change > the Repository URL for Wonder to: Ahg. My brain has gone to mush. Here's what the Repository URL should be: ${WONDER_REPOSITORY}${WONDER_BRANCH}/Wonder${WONDER_REVISION} Dave ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Hudson Build Script changes
Hi all, I've been busy today updating the shell scripts that are in the WOCommunity subversion repository so that they can maintain and use wonder builds that may not always be from trunk. *** These changes will break any Hudson jobs that you may have setup that depend upon these scripts! *** There are a couple things you can do to fix any jobs that are having problems: • In the job configuration, add "@122" to the end of the SCRIPT_REPOSITORY parameter. It would now be: https://services.wocommunity.org/wowodc/hudsonbuildfi...@122 OR <- That's an "or" people • For any of your own frameworks or applications, modify all of your jobs to include a WONDER_BRANCH parameter. It should look something like this: <> The build scripts will automatically pick up this new value and use it. Without this parameter, the build will fail. • For any jobs you have that build Wonder, add the same Parameter, and change the Repository URL for Wonder to: ${APPLICATION_REPOSITORY}/${BRANCHES_TAGS_TRUNK}${APPLICATION_BRANCH_TAG}/${APPLICATION_NAME}/${APPLICATION_REVISION} The build scripts will automatically pick up this new value and use it. Without this parameter, the build will fail. PRO TIP: You really should keep a copy of the build scripts that you use with each branch of your own projects so you will always have the scripts that built that particular release of your application. Dave ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: eclipse wont start after failed java update
Hi Jake, First, try manually running the update again. You can get the updater from here: http://support.apple.com/kb/dl972 Post back with the results. If you can include the actual errors here, that would be helpful. Dave On Nov 2, 2010, at 7:37 AM, Jake Bearkley wrote: > Hi All, > > I have just come back from holiday and my machine is stressing me out!! I > need to go on holidays again. > > An automatic software update failed to install Java 1.6 release(?) 3. > Now eclipse wont start and gives this message "JVM Terminated" Exit Code = > -1 and a heap of other launch variables > > my environment was generating my application for Java 1.5, > Eclipse 3.5 and appropriate WOLips installed about 5 months ago. > no recent updates to Wonder or anything else other than apple auto updates. > > can anyone help, I am not the greatest environment modifier, so explicit > instructions will be most helpful > > I never should have gone on holiday! > > Thanks in advance > Bearko > ___ > Do not post admin requests to the list. They will be ignored. > Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) > Help/Unsubscribe/Update your Subscription: > http://lists.apple.com/mailman/options/webobjects-dev/webobjects%40avendasora.com > > This email sent to webobje...@avendasora.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
eclipse wont start after failed java update
Hi All, I have just come back from holiday and my machine is stressing me out!! I need to go on holidays again. An automatic software update failed to install Java 1.6 release(?) 3. Now eclipse wont start and gives this message "JVM Terminated" Exit Code = -1 and a heap of other launch variables my environment was generating my application for Java 1.5, Eclipse 3.5 and appropriate WOLips installed about 5 months ago. no recent updates to Wonder or anything else other than apple auto updates. can anyone help, I am not the greatest environment modifier, so explicit instructions will be most helpful I never should have gone on holiday! Thanks in advance Bearko ___ 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