Re: Dynamic loading of a component into a container?
Yes, this is exactly what i am trying to do! I will try your approach - But first, i will have a look at the WOSwitchComponent (thanks Chuck!) Will tell you when i was successfull with that Am 10.06.2011 um 00:57 schrieb John Kim Larson: If I get what you're asking, you want a div in your app template, say, that you can replace ad hoc from some other component. If so, I've done something similar by pushing the name of the component and a dictionary with bindings to the session dictionary, then in your template pull that name and binding dictionary out of the session, and use that to work a switchcomponent like chuck said that's in the auc. You just have to make sure your contained component knows what to do with your binding dictionary. Sorry if that's unclear. Typing on a rough bus ride one handed. John A. Larson Sent from my iPhone On Jun 9, 2011, at 3:26 PM, Paul Dunkler paul.dunk...@xyrality.com wrote: At the moment i use the AjaxUpdateLink only to trigger a refresh on the AjaxUpdateContainer. In that AjaxUpdateContainer i defined some WOConditionals... But i want an AjaxUpdateLink to load the content of a component into an empty AjaxUpdateContainer... Am 09.06.2011 um 22:22 schrieb John Huss: Isn't this what AjaxUpdateContainer does? What is wrong with using it? On Thu, Jun 9, 2011 at 3:12 PM, Paul Dunkler paul.dunk...@xyrality.com wrote: Hey Guys, is there any possibility in wonder to load a component into a pre-defined zone in the template? I´m dealing with AjaxUpdateContainers and so on since 4 months - it´s nice - i like it, but i see no possibility to load something into an AjaxUpdateContainer... If there is any possibility or some of you may have a suggestion how to do this the good way in wonder - It would be very nice to hear from you. For exmaple: Main-Template: html head title /head body wo:AjaxUpdateZone id=testZone / /body /html Navigation-Template html head title /head body ul liwo:LoadComponentIntoZoneLink x=AddProductComponent zone=testZoneAdd Products/wo:LoadComponentIntoZoneLink /li /ul /body /html (the names of the components are chosen random by me ^^ just for showing you what behavior i want) Thanks in advance! Best Regards, Paul Dunkler ___ 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/johnthuss%40gmail.com This email sent to johnth...@gmail.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/the_larsons%40mac.com This email sent to the_lars...@mac.com Mit freundlichen Grüßen Paul Dunkler inline: xyrality_logo_medium.png - XYRALITY GmbH • Lerchenstraße 28a • 22767 Hamburg Paul Dunkler • Softwareentwickler Mail: paul.dunk...@xyrality.com Tel: +49 (0) 40 23 51 78 97 Mobil: +49 (0) 151 11624143 Fax: +49 (0) 40 23 51 78 98 Web: http://www.xyrality.com/ Registergericht: Hamburg HRB 115332 Geschäftsführer: Sven Ossenbrüggen Alexander Spohr - ___ 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
Last hurdle on new CentOS deployment...
Hello - Well I thought I had everything finally running and configured. Then I tried to access the app. Nothing. The app is running, the port is open, but when I click any link in javamonitor to run the app I either get a blank screen in firefox or else this message in Safari: Safari can’t open the page “http://50.57.83.209:2001/” because the server unexpectedly dropped the connection. This sometimes occurs when the server is busy. Wait for a few minutes, and then try again. Any thoughts on where I should look next? Thanks James ___ 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: Last hurdle on new CentOS deployment...
Le 2011-06-10 à 09:34, James Cicenia a écrit : Hello - Well I thought I had everything finally running and configured. Then I tried to access the app. Nothing. The app is running, the port is open, but when I click any link in javamonitor to run the app I either get a blank screen in firefox or else this message in Safari: Safari can’t open the page “http://50.57.83.209:2001/” because the server unexpectedly dropped the connection. This sometimes occurs when the server is busy. Wait for a few minutes, and then try again. Port :2001? That's the direct connect port... Did you try http://50.57.83.209/cgi-bin/WebObjects/YourAppName.woa instead? Any thoughts on where I should look next? Thanks James ___ 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/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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Last hurdle on new CentOS deployment...
when I do that I just get the Request URL could not be found... hmmm, that then give me: The requested URL /cgi-bin/WebObjects/JewlersPI was not found on this server is this an Apache problem or javamonitor? On Jun 10, 2011, at 8:37 AM, Pascal Robert wrote: Le 2011-06-10 à 09:34, James Cicenia a écrit : Hello - Well I thought I had everything finally running and configured. Then I tried to access the app. Nothing. The app is running, the port is open, but when I click any link in javamonitor to run the app I either get a blank screen in firefox or else this message in Safari: Safari can’t open the page “http://50.57.83.209:2001/” because the server unexpectedly dropped the connection. This sometimes occurs when the server is busy. Wait for a few minutes, and then try again. Port :2001? That's the direct connect port... Did you try http://50.57.83.209/cgi-bin/WebObjects/YourAppName.woa instead? Any thoughts on where I should look next? Thanks James ___ 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/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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Last hurdle on new CentOS deployment...
Le 2011-06-10 à 09:56, James Cicenia a écrit : when I do that I just get the Request URL could not be found... hmmm, that then give me: The requested URL /cgi-bin/WebObjects/JewlersPI was not found on this server is this an Apache problem or javamonitor? Apache. That part of the instructions in the wiki: If you want to keep /cgi-bin/WebObjects as the base URL, you will need to remove a line in httpd.conf. Find the line that starts with ScriptAlias /cgi-bin and comment it out, or else Apache will try to find a WebObjects CGI in /cgi-bin instead of loading the adaptor from the Apache module. On Jun 10, 2011, at 8:37 AM, Pascal Robert wrote: Le 2011-06-10 à 09:34, James Cicenia a écrit : Hello - Well I thought I had everything finally running and configured. Then I tried to access the app. Nothing. The app is running, the port is open, but when I click any link in javamonitor to run the app I either get a blank screen in firefox or else this message in Safari: Safari can’t open the page “http://50.57.83.209:2001/” because the server unexpectedly dropped the connection. This sometimes occurs when the server is busy. Wait for a few minutes, and then try again. Port :2001? That's the direct connect port... Did you try http://50.57.83.209/cgi-bin/WebObjects/YourAppName.woa instead? Any thoughts on where I should look next? Thanks James ___ 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/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: http://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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Last hurdle on new CentOS deployment...
Ok I did miss that. Now I get the dreaded Your request produced an error Of course no error shows up in the logs. Next ? James On Jun 10, 2011, at 9:04 AM, Pascal Robert wrote: Le 2011-06-10 à 09:56, James Cicenia a écrit : when I do that I just get the Request URL could not be found... hmmm, that then give me: The requested URL /cgi-bin/WebObjects/JewlersPI was not found on this server is this an Apache problem or javamonitor? Apache. That part of the instructions in the wiki: If you want to keep /cgi-bin/WebObjects as the base URL, you will need to remove a line in httpd.conf. Find the line that starts with ScriptAlias /cgi-bin and comment it out, or else Apache will try to find a WebObjects CGI in /cgi-bin instead of loading the adaptor from the Apache module. On Jun 10, 2011, at 8:37 AM, Pascal Robert wrote: Le 2011-06-10 à 09:34, James Cicenia a écrit : Hello - Well I thought I had everything finally running and configured. Then I tried to access the app. Nothing. The app is running, the port is open, but when I click any link in javamonitor to run the app I either get a blank screen in firefox or else this message in Safari: Safari can’t open the page “http://50.57.83.209:2001/” because the server unexpectedly dropped the connection. This sometimes occurs when the server is busy. Wait for a few minutes, and then try again. Port :2001? That's the direct connect port... Did you try http://50.57.83.209/cgi-bin/WebObjects/YourAppName.woa instead? Any thoughts on where I should look next? Thanks James ___ 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/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: http://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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Last hurdle on new CentOS deployment...
Le 2011-06-10 à 11:14, James Cicenia a écrit : Ok I did miss that. Now I get the dreaded Your request produced an error Of course no error shows up in the logs. No error in the Apache logs too? Does the Logs directory for your WO apps is writeable by the user who launch wotaskd (probably appserver)? Next ? James On Jun 10, 2011, at 9:04 AM, Pascal Robert wrote: Le 2011-06-10 à 09:56, James Cicenia a écrit : when I do that I just get the Request URL could not be found... hmmm, that then give me: The requested URL /cgi-bin/WebObjects/JewlersPI was not found on this server is this an Apache problem or javamonitor? Apache. That part of the instructions in the wiki: If you want to keep /cgi-bin/WebObjects as the base URL, you will need to remove a line in httpd.conf. Find the line that starts with ScriptAlias /cgi-bin and comment it out, or else Apache will try to find a WebObjects CGI in /cgi-bin instead of loading the adaptor from the Apache module. On Jun 10, 2011, at 8:37 AM, Pascal Robert wrote: Le 2011-06-10 à 09:34, James Cicenia a écrit : Hello - Well I thought I had everything finally running and configured. Then I tried to access the app. Nothing. The app is running, the port is open, but when I click any link in javamonitor to run the app I either get a blank screen in firefox or else this message in Safari: Safari can’t open the page “http://50.57.83.209:2001/” because the server unexpectedly dropped the connection. This sometimes occurs when the server is busy. Wait for a few minutes, and then try again. Port :2001? That's the direct connect port... Did you try http://50.57.83.209/cgi-bin/WebObjects/YourAppName.woa instead? Any thoughts on where I should look next? Thanks James ___ 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/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: http://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: http://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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Last hurdle on new CentOS deployment...
Correct: only error in Apache logs... can't find favicon in my regular log file.. nothing.. waiting for requests. could it be the apache mod_webobjects module I downloaded? I didn't compile but downloaded the so. Though I was a bit confused as hudsen had both centos and CentOS ? James On Jun 10, 2011, at 10:35 AM, Pascal Robert wrote: Le 2011-06-10 à 11:14, James Cicenia a écrit : Ok I did miss that. Now I get the dreaded Your request produced an error Of course no error shows up in the logs. No error in the Apache logs too? Does the Logs directory for your WO apps is writeable by the user who launch wotaskd (probably appserver)? Next ? James On Jun 10, 2011, at 9:04 AM, Pascal Robert wrote: Le 2011-06-10 à 09:56, James Cicenia a écrit : when I do that I just get the Request URL could not be found... hmmm, that then give me: The requested URL /cgi-bin/WebObjects/JewlersPI was not found on this server is this an Apache problem or javamonitor? Apache. That part of the instructions in the wiki: If you want to keep /cgi-bin/WebObjects as the base URL, you will need to remove a line in httpd.conf. Find the line that starts with ScriptAlias /cgi-bin and comment it out, or else Apache will try to find a WebObjects CGI in /cgi-bin instead of loading the adaptor from the Apache module. On Jun 10, 2011, at 8:37 AM, Pascal Robert wrote: Le 2011-06-10 à 09:34, James Cicenia a écrit : Hello - Well I thought I had everything finally running and configured. Then I tried to access the app. Nothing. The app is running, the port is open, but when I click any link in javamonitor to run the app I either get a blank screen in firefox or else this message in Safari: Safari can’t open the page “http://50.57.83.209:2001/” because the server unexpectedly dropped the connection. This sometimes occurs when the server is busy. Wait for a few minutes, and then try again. Port :2001? That's the direct connect port... Did you try http://50.57.83.209/cgi-bin/WebObjects/YourAppName.woa instead? Any thoughts on where I should look next? Thanks James ___ 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/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: http://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: http://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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Dynamic loading of a component into a container?
did you look at the ajaxexample? they are using a wo:AjaxUpdateContainer id = MainTableUC webobject name = Contents /wo:AjaxUpdateContainer Contents : WOComponentContent { } and in a hyperlink: webobject name = HelloWorldLinkHello Ajax World/webobject HelloWorldLink : WOHyperlink { pageName = HelloAjaxWorld; } it will load the page named HelloAjaxWorld. you can also use an action as in HelloWorldLink : WOHyperlink { action = loadHelloAjaxWorld; } and a method: public WOActionResults editInsertion() { HelloAjaxWorld nextpage = pageWithName(HelloAjaxWorld.class); // you can setup the next page here nextpage.setSomeVarHere(some text); return nextpage; } you could wrap the WOComponentContent in an AjaxUpdateContainer and update from code with: AjaxUpdateContainer.updateContainerWithID(MainTableUC, context()); -- Message: 7 Date: Thu, 09 Jun 2011 15:22:24 -0500 From: John Huss johnth...@gmail.com Subject: Re: Dynamic loading of a component into a container? To: Paul Dunkler paul.dunk...@xyrality.com Cc: WebObjects Development webobjects-dev@lists.apple.com Message-ID: banlktinr_mjdwc+eoej7htkhfefqjhq...@mail.gmail.com Content-Type: text/plain; charset=iso-8859-1 Isn't this what AjaxUpdateContainer does? What is wrong with using it? On Thu, Jun 9, 2011 at 3:12 PM, Paul Dunkler paul.dunk...@xyrality.comwrote: Hey Guys, is there any possibility in wonder to load a component into a pre-defined zone in the template? I´m dealing with AjaxUpdateContainers and so on since 4 months - it´s nice - i like it, but i see no possibility to load something into an AjaxUpdateContainer... If there is any possibility or some of you may have a suggestion how to do this the good way in wonder - It would be very nice to hear from you. For exmaple: Main-Template: html head title /head body wo:AjaxUpdateZone id=testZone / /body /html Navigation-Template html head title /head body ul liwo:LoadComponentIntoZoneLink x=AddProductComponent zone=testZoneAdd Products/wo:LoadComponentIntoZoneLink /li /ul /body /html (the names of the components are chosen random by me ^^ just for showing you what behavior i want) Thanks in advance! Best Regards, Paul Dunkler ___ 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/johnthuss%40gmail.com This email sent to johnth...@gmail.com -- next part -- An HTML attachment was scrubbed... URL: http://lists.apple.com/pipermail/webobjects-dev/attachments/20110609/771b8a5d/attachment.html -- ___ Webobjects-dev mailing list Webobjects-dev@lists.apple.com http://lists.apple.com/mailman/listinfo/webobjects-dev End of Webobjects-dev Digest, Vol 8, Issue 383 ** ___ 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
JavaMonitor's Arguments
I spent WAY too much time on this yesterday, but can anyone explain why Javamonitor uses different markup for properties? For instance, if I have the following properties in my property file: er.someProperty=value er.someOtherProperty=true To work in javamonitor I have to change it to the following: -Der.someProperty=value -Der.someOtherProperty=true Is this documented somewhere? ___ 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: JavaMonitor's Arguments
It's always good to know I wasted so much time on something so obvious, lol. ___ 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: Dynamic loading of a component into a container?
I think the trick is twofold. One, you want to be able to control from some ajax link or links which component is loaded and do it on any page. Two, if you want to have component actions in the loaded component, you have to somehow put it in the context. I could be totally wrong, but those are the challenges I'd see doing it the normal way. John A. Larson Sent from my iPhone On Jun 10, 2011, at 11:43 AM, Theodore Petrosky tedp...@yahoo.com wrote: did you look at the ajaxexample? they are using a wo:AjaxUpdateContainer id = MainTableUC webobject name = Contents /wo:AjaxUpdateContainer Contents : WOComponentContent { } and in a hyperlink: webobject name = HelloWorldLinkHello Ajax World/webobject HelloWorldLink : WOHyperlink { pageName = HelloAjaxWorld; } it will load the page named HelloAjaxWorld. you can also use an action as in HelloWorldLink : WOHyperlink { action = loadHelloAjaxWorld; } and a method: public WOActionResults editInsertion() { HelloAjaxWorld nextpage = pageWithName(HelloAjaxWorld.class); // you can setup the next page here nextpage.setSomeVarHere(some text); return nextpage; } you could wrap the WOComponentContent in an AjaxUpdateContainer and update from code with: AjaxUpdateContainer.updateContainerWithID(MainTableUC, context()); -- Message: 7 Date: Thu, 09 Jun 2011 15:22:24 -0500 From: John Huss johnth...@gmail.com Subject: Re: Dynamic loading of a component into a container? To: Paul Dunkler paul.dunk...@xyrality.com Cc: WebObjects Development webobjects-dev@lists.apple.com Message-ID: banlktinr_mjdwc+eoej7htkhfefqjhq...@mail.gmail.com Content-Type: text/plain; charset=iso-8859-1 Isn't this what AjaxUpdateContainer does? What is wrong with using it? On Thu, Jun 9, 2011 at 3:12 PM, Paul Dunkler paul.dunk...@xyrality.comwrote: Hey Guys, is there any possibility in wonder to load a component into a pre-defined zone in the template? I´m dealing with AjaxUpdateContainers and so on since 4 months - it´s nice - i like it, but i see no possibility to load something into an AjaxUpdateContainer... If there is any possibility or some of you may have a suggestion how to do this the good way in wonder - It would be very nice to hear from you. For exmaple: Main-Template: html head title /head body wo:AjaxUpdateZone id=testZone / /body /html Navigation-Template html head title /head body ul liwo:LoadComponentIntoZoneLink x=AddProductComponent zone=testZoneAdd Products/wo:LoadComponentIntoZoneLink /li /ul /body /html (the names of the components are chosen random by me ^^ just for showing you what behavior i want) Thanks in advance! Best Regards, Paul Dunkler ___ 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/johnthuss%40gmail.com This email sent to johnth...@gmail.com -- next part -- An HTML attachment was scrubbed... URL: http://lists.apple.com/pipermail/webobjects-dev/attachments/20110609/771b8a5d/attachment.html -- ___ Webobjects-dev mailing list Webobjects-dev@lists.apple.com http://lists.apple.com/mailman/listinfo/webobjects-dev End of Webobjects-dev Digest, Vol 8, Issue 383 ** ___ 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/the_larsons%40mac.com This email sent to the_lars...@mac.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: Wonder JavaMonitor
On Jun 9, 2011, at 2:23 PM, Klaus Berkling wrote: Got the latest binaries. Looks like things are working a lot better (will need to look at my build setup). But it seems like 'Refuse New Sessions doesn't work. I does work on an older build of Monitor on a production server... Ok all, thanks for your responses yesterday regarding my issues. But wait, there is more. What I'm trying to do is send a bunch of REST and JSON commands to JavaMonitor to: 1) Add a bunch of instances across several nodes. Not 10 to one node, then 10 on the next, and so on; but rather one (or two) on one node, one (or two) on the next and so on. I might have five nodes. Proper load balancing, you understand. This is a pain to do in JavaMonitor. 2) Run a different number of instances for an app based on usage patterns, I might have one app serving Japan, another for the US, and yet another for Europe. e.g. I would bring up instances for Japan while I turn off instances for the US. That's the background. I have mostly completed my code, the JSON and REST calls, works nicely (thanks REST/JSON people). I can add instances and I can turn some on and turn others off. Quite neat actually. Here comes my problem. When I add the IP addresses for my nodes, just one, things break (I can't use just localhost). I'm still running only one host, but using the IP address of it's private NIC. - Turning off an instance does not work, turning on Refuse New Sessions does not work (no JSON or REST involved). - However, I can turn instances on, and I can force-quit instances (I can see this in the instance log). - Everything works if I use localhost. I have added -WOHost ip to my app, the apache.conf (WebObjectsConfig), and wotaskd. Adding the WOHost in the app will not work once I have multiple instance nodes. I have not found a thing in the logs that could shed light on this. One neat-oh site effect after adding -WOHost to wotaskd is that it resulted in an empty SiteConfig.xml file. :-) So, is it probable there a bug in wonder's JavaMonitor, should I pursue that? Or is it me and my configuration? kib Live as if you were to die tomorrow. Learn as if you were to live forever. Mahatma Gandhi Klaus Berkling Web Application Dev. Systems Analyst DynEd International, Inc. www.dyned.com | blog smime.p7s Description: S/MIME cryptographic signature ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Wonder JavaMonitor
Hi Klaus, On Jun 10, 2011, at 3:35 PM, Klaus Berkling wrote: On Jun 9, 2011, at 2:23 PM, Klaus Berkling wrote: Got the latest binaries. Looks like things are working a lot better (will need to look at my build setup). But it seems like 'Refuse New Sessions doesn't work. I does work on an older build of Monitor on a production server... Ok all, thanks for your responses yesterday regarding my issues. But wait, there is more. What I'm trying to do is send a bunch of REST and JSON commands to JavaMonitor to: 1) Add a bunch of instances across several nodes. Not 10 to one node, then 10 on the next, and so on; but rather one (or two) on one node, one (or two) on the next and so on. I might have five nodes. Proper load balancing, you understand. This is a pain to do in JavaMonitor. Yes. Very. Painful. 2) Run a different number of instances for an app based on usage patterns, I might have one app serving Japan, another for the US, and yet another for Europe. e.g. I would bring up instances for Japan while I turn off instances for the US. That's the background. I have mostly completed my code, the JSON and REST calls, works nicely (thanks REST/JSON people). I can add instances and I can turn some on and turn others off. Quite neat actually. Here comes my problem. When I add the IP addresses for my nodes, just one, things break (I can't use just localhost). I'm still running only one host, but using the IP address of it's private NIC. private NIC Uh oh. - Turning off an instance does not work, turning on Refuse New Sessions does not work (no JSON or REST involved). - However, I can turn instances on, and I can force-quit instances (I can see this in the instance log). - Everything works if I use localhost. There are some security checks around the IP address. See WOHostUtilities in Wonder for what is probably the fix for your problem: * pThis class replaces the WebObjects version to support loading a new IP as a local IP to the local hosts list. * This will authorize that IP to send management requests, like stopping the application, or * turning on the refuse new instance setting. This is necessary if WO does not automatically * add the needed IP to the local host list. It happens when you use private IPs and * is recognized as a problem on multi-homed linux servers./p I have added -WOHost ip to my app, the apache.conf (WebObjectsConfig), and wotaskd. Adding the WOHost in the app will not work once I have multiple instance nodes. I have not found a thing in the logs that could shed light on this. One neat-oh site effect after adding -WOHost to wotaskd is that it resulted in an empty SiteConfig.xml file. :-) That usually indicates a permissions problem (?) or a corrupt file. Wonder's version should back it up. So, is it probable there a bug in wonder's JavaMonitor, should I pursue that? Or is it me and my configuration? Private IP address is my guess for today. Chuck -- Chuck Hill Senior Consultant / VP Development Come to WOWODC this July for unparalleled WO learning opportunities and real peer to peer problem solving! Network, socialize, and enjoy a great cosmopolitan city. See you there! http://www.wocommunity.org/wowodc11/ smime.p7s Description: S/MIME cryptographic signature ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Wonder JavaMonitor
On Jun 10, 2011, at 7:07 PM, Klaus Berkling wrote: On Jun 10, 2011, at 5:43 PM, Chuck Hill wrote: There are some security checks around the IP address. See WOHostUtilities in Wonder for what is probably the fix for your problem: * pThis class replaces the WebObjects version to support loading a new IP as a local IP to the local hosts list. * This will authorize that IP to send management requests, like stopping the application, or * turning on the refuse new instance setting. This is necessary if WO does not automatically * add the needed IP to the local host list. It happens when you use private IPs and * is recognized as a problem on multi-homed linux servers./p Thanks. This sounds a lot like my issue (now why did I not find the thread...). I added this line: er.extensions.WOHostUtilities.localhostips=(10.0.0.20,192.168.10.96) The 10... address is private, the 192... address is 'public.' No luck. Is er.extensions.WOHostUtilities already used in wonder's JavaMonitor or do I need to add it? That property is for the app, not JavaMonitor. It tells the app that it is OK to obey admin actions from that address. Chuck -- Chuck Hill Senior Consultant / VP Development Come to WOWODC this July for unparalleled WO learning opportunities and real peer to peer problem solving! Network, socialize, and enjoy a great cosmopolitan city. See you there! http://www.wocommunity.org/wowodc11/ smime.p7s Description: S/MIME cryptographic signature ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Wonder JavaMonitor
On Jun 10, 2011, at 7:10 PM, Chuck Hill wrote: On Jun 10, 2011, at 7:07 PM, Klaus Berkling wrote: On Jun 10, 2011, at 5:43 PM, Chuck Hill wrote: There are some security checks around the IP address. See WOHostUtilities in Wonder for what is probably the fix for your problem: * pThis class replaces the WebObjects version to support loading a new IP as a local IP to the local hosts list. * This will authorize that IP to send management requests, like stopping the application, or * turning on the refuse new instance setting. This is necessary if WO does not automatically * add the needed IP to the local host list. It happens when you use private IPs and * is recognized as a problem on multi-homed linux servers./p Thanks. This sounds a lot like my issue (now why did I not find the thread...). I added this line: er.extensions.WOHostUtilities.localhostips=(10.0.0.20,192.168.10.96) The 10... address is private, the 192... address is 'public.' No luck. Is er.extensions.WOHostUtilities already used in wonder's JavaMonitor or do I need to add it? That property is for the app, not JavaMonitor. It tells the app that it is OK to obey admin actions from that address. Ha ha ha. I had added it to wotaskd for the same reason, wotaskd being the 'app'. I also added it to our app for good measure. I'm laughing because, if our app were a Wonder app, this would be trivial, but it's not so ... sigh. I will revisit this later then I'll (ab)use a HelloWorld app. Time to go home. Thanks Chuck!! kib We keep moving forward, opening new doors, and doing new things, because we're curious and curiosity keeps leading us down new paths. Walt Disney Klaus Berkling Web Application Dev. Systems Analyst DynEd International, Inc. www.dyned.com | blog smime.p7s Description: S/MIME cryptographic signature ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Wonder JavaMonitor
On Jun 10, 2011, at 7:39 PM, Klaus Berkling wrote: On Jun 10, 2011, at 7:10 PM, Chuck Hill wrote: On Jun 10, 2011, at 7:07 PM, Klaus Berkling wrote: On Jun 10, 2011, at 5:43 PM, Chuck Hill wrote: There are some security checks around the IP address. See WOHostUtilities in Wonder for what is probably the fix for your problem: * pThis class replaces the WebObjects version to support loading a new IP as a local IP to the local hosts list. * This will authorize that IP to send management requests, like stopping the application, or * turning on the refuse new instance setting. This is necessary if WO does not automatically * add the needed IP to the local host list. It happens when you use private IPs and * is recognized as a problem on multi-homed linux servers./p Thanks. This sounds a lot like my issue (now why did I not find the thread...). I added this line: er.extensions.WOHostUtilities.localhostips=(10.0.0.20,192.168.10.96) The 10... address is private, the 192... address is 'public.' No luck. Is er.extensions.WOHostUtilities already used in wonder's JavaMonitor or do I need to add it? That property is for the app, not JavaMonitor. It tells the app that it is OK to obey admin actions from that address. Ha ha ha. I had added it to wotaskd for the same reason, wotaskd being the 'app'. I also added it to our app for good measure. I'm laughing because, if our app were a Wonder app, this would be trivial, but it's not so ... sigh. I will revisit this later then I'll (ab)use a HelloWorld app. This is a patch for a WO class, so it is a class loading thing. This class needs to be in the package com.webobjects.appserver._private and the jar it is in needs to come before javawebobjects.jar in the classpath. Time to go home. Thanks Chuck!! I am home. Time to keep working! Chuck -- Chuck Hill Senior Consultant / VP Development Come to WOWODC this July for unparalleled WO learning opportunities and real peer to peer problem solving! Network, socialize, and enjoy a great cosmopolitan city. See you there! http://www.wocommunity.org/wowodc11/ smime.p7s Description: S/MIME cryptographic signature ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com