The below problem was indeed that the HTTP Adaptor URL entry had gotten deleted 
in javamonitor somewhere along the way.  I added it back in and can now start 
and stop my app using the domain name of the server instead of localhost 
(Phew!).

I'm now trying to set up a second machine in the same way in hopes that 
eventually I'll be able to control its applications from the javamonitor 
running on the first machine.

I've set things up the same as far as I can tell:

1. Change the WOHost parameter in 
/Library/WebObjects/JavaApplications/wotaskd.woa/Contents/Resources/Properties 
file from localhost to my domain name (WOHost=www.netbracquets.com)
2. Add er.extensions.WOHostUtilities.localhostips=(IPAddress) to Application 
Properties file. 
(er.extensions.WOHostUtilities.localhostips=(www.netbrackets.com,www.netbracquets.com,
 www.netbrandeds.info) 
3. Delete the localhost host from Javamonitor Sites
4. Restart the machine
5. Add new host in javamonitor using domain name instead of localhost  - Add 
Host: www.netbracquets.com, which resulted in Host Name: www.netbracquets.com / 
24.171.38.134
6. Add application back inito javamonitor under the new host, and Add -WOHost 
<domainname>  to the Additional Arguments (-WOHost www.netbracquets.com)
7. Make sure Javamonitor URL adaptor is set and uses the domain name 
(http://www.netbracquets.com/cgi-bin/WebObjects).
8. Update Apache WebObjectsConfig value to set it the IP of the machine. 
(WebObjectsConfig webobjects://24.171.38.134:1085 10)
9. Start application

 I was able to add the host entry as well as the application, however again 
here, when I try to start the app, the little switch just keeps switching and 
the app doesn't leave a log.  the only log from below is in the womonitor.log 
file...

2013-10-16 23:21:47,710 DEBUG 24.77 MB/9.16 MB [WorkerThread0] 
logging.ERXNSLogLog4jBridge (ERXNSLogLog4jBridge.java:46) - @@@@@ Received 
Lifebeat: lifebeat JavaMonitor lionserver.local 56789
2013-10-16 23:22:11,275 DEBUG 24.78 MB/9.16 MB [main] 
logging.ERXNSLogLog4jBridge (ERXNSLogLog4jBridge.java:46) - _checkAutoRecover 
START
2013-10-16 23:22:11,275 DEBUG 24.79 MB/9.15 MB [main] 
logging.ERXNSLogLog4jBridge (ERXNSLogLog4jBridge.java:46) - _checkAutoRecover 
STOP
2013-10-16 23:22:17,713 DEBUG 24.8 MB/9.14 MB [WorkerThread0] 
logging.ERXNSLogLog4jBridge (ERXNSLogLog4jBridge.java:46) - @@@@@ Received 
Lifebeat: lifebeat JavaMonitor lionserver.local 56789
2013-10-16 23:22:41,275 DEBUG 24.8 MB/9.13 MB [main] 
logging.ERXNSLogLog4jBridge (ERXNSLogLog4jBridge.java:46) - _checkAutoRecover 
START
2013-10-16 23:22:41,276 DEBUG 24.81 MB/9.13 MB [main] 
logging.ERXNSLogLog4jBridge (ERXNSLogLog4jBridge.java:46) - _checkAutoRecover 
STOP
2013-10-16 23:22:44,484 DEBUG 24.91 MB/9.03 MB [WorkerThread7] 
logging.ERXNSLogLog4jBridge (ERXNSLogLog4jBridge.java:46) -
@@@@@ monitorRequestAction received request from Monitor
2013-10-16 23:22:44,484 DEBUG 24.92 MB/9.02 MB [WorkerThread7] 
logging.ERXNSLogLog4jBridge (ERXNSLogLog4jBridge.java:46) - @@@@@ 
monitorRequestAction requestDict: {queryWotaskd = "INSTANCE"; }

2013-10-16 23:22:44,484 DEBUG 24.92 MB/9.01 MB [WorkerThread7] 
logging.ERXNSLogLog4jBridge (ERXNSLogLog4jBridge.java:46) - @@@@@ 
monitorRequestAction returning response to Monitor
2013-10-16 23:22:44,484 DEBUG 24.93 MB/9.01 MB [WorkerThread7] 
logging.ERXNSLogLog4jBridge (ERXNSLogLog4jBridge.java:46) - @@@@@ 
monitorRequestAction responseDict: {queryWotaskdResponse = {instanceResponse = 
(); }; }

2013-10-16 23:22:47,716 DEBUG 25 MB/8.94 MB [WorkerThread0] 
logging.ERXNSLogLog4jBridge (ERXNSLogLog4jBridge.java:46) - @@@@@ Received 
Lifebeat: lifebeat JavaMonitor lionserver.local 56789


On Oct 13, 2013, at 3:33 PM, Klaus Berkling <[email protected]> wrote:

> 
> On Oct 13, 2013, at 1:10 PM, Jeffrey Schmitz <[email protected]> wrote:
> 
>> Not so fast on this.  While the host was successfully added, and the 
>> application seemed to be successfully added using JavaMonitor, the app 
>> itself is not being served up.  I get a No instance available error.
> 
> Did you check that your app instances not just start but also stop using 
> JavaMonitor?
> 
>> Once strange thing I noticed is the link under Name in the JavaMonitor 
>> Applications tab links to a .local address.  i.e. the host I have 
>> successfully added is www.netbrackets.com, but the link used for the added 
>> application is http://netbrackets.local/cgi-bin/WebObjects/netBrackets.woa/1 
>> instead of http://www.netbrackets.com/cgi-bin/WebObjects/netBrackets.woa/1
> 
> In JavaMonitor, under the Site tab, make sure the HTTP Adaptor URL's hostname 
> matches that of your real host name.
> Should probably look like this:
> 
>       http://www.netbrackets.com/cgi-bin/WebObjects
> 
> Also check the WebObjectsConfig value in the apache.con file in 
> /System/Library/WebObjects/Adaptors/Apache2.2.
> Probably something like:
> 
>       WebObjectsConfig http://211.157.25.168:1085 10
> 
> 
> 
>> 
>> 
>>> 
>>> 
>>> On Oct 12, 2013, at 12:56 PM, Jeffrey Schmitz <[email protected]> wrote:
>>> 
>>>> While I don't have an /etc/WebObjects directory, I did try adding the line 
>>>> to my Application's Properties file and restarting, and it worked!
>>>> 
>>>> So the basic steps for me to change from localhost host to a domain name 
>>>> host:
>>>> 
>>>> 1. Change the WOHost parameter in 
>>>> /Library/WebObjects/JavaApplications/wotaskd.woa/Contents/Resources/Properties
>>>>  file from localhost to my domain name
>>>> 2. Add er.extensions.WOHostUtilities.localhostips=(IPAddress) to 
>>>> Application Properties file.
>>>> 3. Delete the localhost host from 
>>>> 4. Restart the machine
>>>> 5. Add new host in javamonitor using domain name instead of localhost
>>>> 6. Add application back inito javamonitor under the new host, and Add 
>>>> -WOHost <domainname> (e.g. www.netbrackets.com) to the Additional 
>>>> Arguments 
>>>> 7. Start application
>>>> 
>>>> Now on to trying to add an application from a different host machine...
>>>> 
>>>> Thanks!
>>>> Jeff
>>>> 
>>>> On Oct 12, 2013, at 11:45 AM, Klaus Berkling <[email protected]> 
>>>> wrote:
>>>> 
>>>>> 
>>>>> On Oct 12, 2013, at 9:29 AM, Chuck Hill <[email protected]> wrote:
>>>>> 
>>>>>> Did you set WOHost on wotaskd too?  And the application?  Did you try 
>>>>>> using WOHostUtilities?
>>>>> 
>>>>> Do what Chuck says. :-)
>>>>> On hosts that have multiple IP addresses I have this in 
>>>>> /etc/WebObjects/Properties
>>>>> 
>>>>> er.extensions.WOHostUtilities.localhostips=(10.0.0.105,211.157.25.168)
>>>>> 
>>>>> This will make the WO apps listen to all the give IP addresses. Try it 
>>>>> with one address.  
>>>>> All the WO apps will read this file, monitor and wotaskd and your app.
>>>>> 
>>>>> 
>>>>>> 
>>>>>> 
>>>>>> On 2013-10-12 7:59 AM, "Jeffrey Schmitz" wrote:
>>>>>> 
>>>>>> OK, I tried it on a machine with a domain name, and still no go  
>>>>>> JavaMonitor did add the host, and showed the right reverse DNS IP 
>>>>>> address, but this time it says it can't contact the host-1085.  I did 
>>>>>> try rebooting the machine but no love.  I also went back and tried with 
>>>>>> a localhost host again, and that still works fine.
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> On Oct 11, 2013, at 8:04 PM, Chuck Hill <[email protected]> wrote:
>>>>>> 
>>>>>>> I don;t know if you will have much luck with that.  IIRC, it does not 
>>>>>>> play nice with .local names.  Take a look at WOHostUtilities.  That 
>>>>>>> might be what you need.
>>>>>>> 
>>>>>>> On 2013-10-11 5:54 PM, "Jeffrey Schmitz" wrote:
>>>>>>> 
>>>>>>> I don't think so, it's just the straight up IP address on my local 
>>>>>>> network.  There is no domain currently mapped to the machine, I'm just 
>>>>>>> doing some internal testing with it right now.  It does have a local 
>>>>>>> name that mac os networking assigns to it (lionserver.local).
>>>>>>> 
>>>>>>> Jeff
>>>>>>> 
>>>>>>> On Oct 10, 2013, at 10:44 PM, Chuck Hill <[email protected]> 
>>>>>>> wrote:
>>>>>>> 
>>>>>>>> Is that the canonical IP for this machine?  Can it be resolved to the 
>>>>>>>> machine vs reverse DNS?
>>>>>>>> 
>>>>>>>> 
>>>>>>>> 
>>>>>>>> On 2013-10-10 8:41 PM, "Jeffrey Schmitz" wrote:
>>>>>>>> 
>>>>>>>> Hi All,
>>>>>>>>   I'm trying to change the host specified in WOMonitor from localhost 
>>>>>>>> to the IP of my machine, so that I can eventually manage multiple load 
>>>>>>>> balanced applications on multiple machines from a single WOMonitor.
>>>>>>>> 
>>>>>>>> To do this, I deleted the localhost host from WOmonitor and added a 
>>>>>>>> host by specifying the local IP of the machine (192.168.11.200).  I 
>>>>>>>> also changed the WOHost entry in the 
>>>>>>>> /Library/WebObjects/JavaApplications/wotaskd.woa/Contents/Resources/Properties
>>>>>>>> file from localhost to the local ip.  I then re-add my application 
>>>>>>>> back into WOMonitor, and restart the machine just to start fresh.
>>>>>>>> 
>>>>>>>> However, when I try to start the application, JavaMonitor doesn't seem 
>>>>>>>> to be able to start it.  The only log message I see is in the 
>>>>>>>> womonitor.log file:
>>>>>>>> 
>>>>>>>> Exception sending lifebeat to wotaskd: java.net.ConnectException: 
>>>>>>>> Connection refused
>>>>>>>> 
>>>>>>>> What piece of hocus pocus am I missing to be able to start using 
>>>>>>>> something other than localhost as my Host?
>>>>>>>> 
>>>>>>>> Thanks,
>>>>>>>> Jeff
>>>>>>>> 
>>>>>>>> /Library/LaunchDaemons/com.apple.webobjects.womonitor.plist:
>>>>>>>> <?xml version="1.0" encoding="UTF-8"?>
>>>>>>>> <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" 
>>>>>>>> "http://www.apple.com/DTDs/PropertyList-1.0.dtd";>
>>>>>>>> <plist version="1.0">
>>>>>>>> <dict>
>>>>>>>>        <key>Disabled</key>
>>>>>>>>        <false/>
>>>>>>>>        <key>GroupName</key>
>>>>>>>>        <string>appserverusr</string>
>>>>>>>>        <key>Label</key>
>>>>>>>>        <string>com.apple.webobjects.womonitor</string>
>>>>>>>>        <key>OnDemand</key>
>>>>>>>>        <false/>
>>>>>>>>        <key>Program</key>
>>>>>>>>        
>>>>>>>> <string>/Library/WebObjects/JavaApplications/JavaMonitor.woa/JavaMonitor</string>
>>>>>>>>        <key>ProgramArguments</key>
>>>>>>>>        <array>
>>>>>>>>                <string>JavaMonitor</string>
>>>>>>>>                <string>-WOPort</string>
>>>>>>>>                <string>56789</string>
>>>>>>>>                <string>-_DeploymentDebugging</string>
>>>>>>>>                <string>true</string>
>>>>>>>>        </array>
>>>>>>>>        <key>ServiceIPC</key>
>>>>>>>>        <false/>
>>>>>>>>        <key>UserName</key>
>>>>>>>>        <string>appserver</string>
>>>>>>>>        <key>StandardOutPath</key>
>>>>>>>>        <string>/Library/WebObjects/Logs/womonitor.log</string>
>>>>>>>>        <key>StandardErrorPath</key>
>>>>>>>>        <string>/Library/WebObjects/Logs/womonitor.err</string>
>>>>>>>> </dict>
>>>>>>>> </plist>
>>>>>>>> 
>>>>>>>> com.apple/webobjects.wotaskd.plist
>>>>>>>> <plist version="1.0">
>>>>>>>> <dict>
>>>>>>>>        <key>Disabled</key>
>>>>>>>>        <false/>
>>>>>>>>        <key>GroupName</key>
>>>>>>>>        <string>appserverusr</string>
>>>>>>>>        <key>Label</key>
>>>>>>>>        <string>com.apple.webobjects.wotaskd</string>
>>>>>>>>        <key>OnDemand</key>
>>>>>>>>        <false/>
>>>>>>>>        <key>Program</key>
>>>>>>>>        
>>>>>>>> <string>/Library/WebObjects/JavaApplications/wotaskd.woa/wotaskd</string>
>>>>>>>>        <key>ProgramArguments</key>
>>>>>>>>        <array>
>>>>>>>>                <string>wotaskd</string>
>>>>>>>>                <string>-WOPort</string>
>>>>>>>>                <string>1085</string>
>>>>>>>>                <string>-_DeploymentDebugging</string>
>>>>>>>>                <string>true</string>
>>>>>>>>        </array>
>>>>>>>>        <key>ServiceIPC</key>
>>>>>>>>        <false/>
>>>>>>>>        <key>UserName</key>
>>>>>>>>        <string>appserver</string>
>>>>>>>>        <key>StandardOutPath</key>
>>>>>>>>        <string>/Library/WebObjects/Logs/womonitor.log</string>
>>>>>>>>        <key>StandardErrorPath</key>
>>>>>>>>        <string>/Library/WebObjects/Logs/womonitor.err</string>
>>>>>>>> </dict>
>>>>>>>> </plist>
>>>>>>>> 
>>>>>>>> 
>>>>>>>> 
>>>>>>>> -- 
>>>>>>>> Chuck Hill             
>>>>>>>> Executive Managing Partner, VP Development and Technical Services
>>>>>>>> 
>>>>>>>> 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/gvc/practical_webobjects
>>>>>>>> 
>>>>>>>> Global Village Consulting ranks 13th in 2012 in BIV's Top 100 Fastest 
>>>>>>>> Growing Companies in B.C! 
>>>>>>>> 
>>>>>>>> Global Village Consulting ranks 44th in 25th annual PROFIT 500 ranking 
>>>>>>>> of Canada’s Fastest-Growing Companies by PROFIT Magazine!
>>>>>>> 
>>>>>>> 
>>>>>>> 
>>>>>>> -- 
>>>>>>> Chuck Hill             
>>>>>>> Executive Managing Partner, VP Development and Technical Services
>>>>>>> 
>>>>>>> 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/gvc/practical_webobjects
>>>>>>> 
>>>>>>> Global Village Consulting ranks 13th in 2012 in BIV's Top 100 Fastest 
>>>>>>> Growing Companies in B.C! 
>>>>>>> 
>>>>>>> Global Village Consulting ranks 44th in 25th annual PROFIT 500 ranking 
>>>>>>> of Canada’s Fastest-Growing Companies by PROFIT Magazine!
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> -- 
>>>>>> Chuck Hill             
>>>>>> Executive Managing Partner, VP Development and Technical Services
>>>>>> 
>>>>>> 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/gvc/practical_webobjects
>>>>>> 
>>>>>> Global Village Consulting ranks 13th in 2012 in BIV's Top 100 Fastest 
>>>>>> Growing Companies in B.C! 
>>>>>> 
>>>>>> Global Village Consulting ranks 44th in 25th annual PROFIT 500 ranking 
>>>>>> of Canada’s Fastest-Growing Companies by PROFIT Magazine!
>>>>>> _______________________________________________
>>>>>> Do not post admin requests to the list. They will be ignored.
>>>>>> Webobjects-dev mailing list      ([email protected])
>>>>>> Help/Unsubscribe/Update your Subscription:
>>>>>> https://lists.apple.com/mailman/options/webobjects-dev/webobjects%40berkling.us
>>>>>> 
>>>>>> This email sent to [email protected]
>>>>> 
>>>>> 
>>>>> 
>>>>> kib
>>>>> 
>>>>> Klaus Berkling
>>>>> www.berkling.us | @kiberkli
>>>>> 
>>>>> 
>>>>> 
>>>>> _______________________________________________
>>>>> Do not post admin requests to the list. They will be ignored.
>>>>> Webobjects-dev mailing list      ([email protected])
>>>>> Help/Unsubscribe/Update your Subscription:
>>>>> https://lists.apple.com/mailman/options/webobjects-dev/jeff%40netbrackets.com
>>>>> 
>>>>> This email sent to [email protected]
>>>> 
>>>> _______________________________________________
>>>> Do not post admin requests to the list. They will be ignored.
>>>> Webobjects-dev mailing list      ([email protected])
>>>> Help/Unsubscribe/Update your Subscription:
>>>> https://lists.apple.com/mailman/options/webobjects-dev/jeff%40netbrackets.com
>>>> 
>>>> This email sent to [email protected]
>>> 
>> 
> 
> 
> 
> kib
> 
> Klaus Berkling
> www.berkling.us | @kiberkli
> 
> 
> 
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list      ([email protected])
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/jeff%40netbrackets.com
> 
> This email sent to [email protected]

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to