On Jul 25, 2008, at 9:43 PM, Lachlan Deck wrote:

On 26/07/2008, at 8:18 AM, Gavin Eadie wrote:

I've been trying to get Wonder's JavaMonitor to work for me without success. Before I delve into its guts, I should know if I'm being too eager to use it. Is
it working for anyone else? ... Gav

We're using it on a test server.

Thanks, Lachlan, I'll return to the battle with more confidence. I wonder if any of the following rings unpleasant bells for anyone, it all looks pretty good to me (but I've been staring at it for hours!) ...


I'm running wotaskd and womonitor as a test on my laptop (Mac OS X (not Server)) with Apache 2.2 and I'm getting the adapter started:

Debug: init_adaptor(): beginning initialization. Adaptor version 4.5.1.
Info: init_adaptor(): config options are: String table:
config = http://localhost:1085
confinterval = 10
logPath = /Library/WebObjects/Logs/WebObjects.log
logLevel = Debug
Info: Adaptor shared state file: /tmp/WOAdaptorState
Info: Adaptor info user: <no user set>, password: <no password set>
Debug: init_adaptor(): someone installed a SIGPIPE handler
Debug: init_adaptor(): WOShmem_init succeeded
Debug: init_adaptor(): tr_init succeeded
Debug: init_adaptor(): hl_init succeeded
Warn: la_initialize(): WA_INST_LB_INFO_SIZE too small to use loadaverage
Info: lb_init(): loadaverage scheduler not available - initialization failed
Debug: init_adaptor(): lb_init succeeded
Info: WOShmem_alloc(): allocated region "application list" (868 x 64)
Info: WOShmem_alloc(): allocated region "instance list" (160 x 8192)
Info: WOShmem_alloc(): allocated region "configTimes" (40 x 1)
Info: WOShmem_alloc(): allocated region "configServers" (6208 x 1)
Info: ac_init(): reading configuration from: http://localhost:1085
Info: Caching hostent for localhost
Info: Added new config server localhost:1085.
Debug: init_adaptor(): ac_init succeeded
Debug: init_adaptor(): transaction_init() succeeded
Info: Reading configuration from 
http://localhost:1085/WebObjects/wotaskd.woa/wa/woconfig
Info: attempting to connect to localhost on port 1085
Info: Preparing to read config for host: localhost
Info: New response: HTTP/1.0 200 Apple WebObjects
Error: No parser for file type text/xml; charset=ISO-8859-1
Info: WebObjects_post_config(): WebObjects adaptor initialization succeeded.



I see my app it in the processes:

_appserver 283 0.0 1.3 884992 41436 ?? S 5:10PM 0:09.77 /usr/bin/java -XX:NewSize=2m -Xmx64m -Xms32m - Dcom.sun.management.jmxremote=true -DWORootDirectory=/System - DWOLocalRootDirectory= -DWOUserDirectory=/Library/WebObjects/ Applications/wotaskd.woa -DWOEnvClassPath= - DWOApplicationClass=com.ramsayconz.versions.Application - DWOPlatform=MacOS -Dcom.webobjects.pid=283 -classpath WOBootstrap.jar com.webobjects._bootstrap.WOBootstrap -WOPort 2001 -WOCachingEnabled YES -WODebuggingEnabled NO -WOOutputPath /var/log/webobjects/ VersionDisplay-1 -WOAutoOpenInBrowser NO -WOAutoOpenClientApplication NO -WOLifebeatInterval 30 -WOLifebeatEnabled YES - WOLifebeatDestinationPort 1085 -WOAdaptor WODefaultAdaptor - WOWorkerThreadCount 8 -WOListenQueueSize 128 -WOWorkerThreadCountMin 16 -WOWorkerThreadCountMax 256 -NSProjectSearchPath () - WOSessionTimeOut 3600 -WOApplicationName VersionDisplay - WOMonitorEnabled YES -WONoPause YES

and can get to it via direct connect at: http://localhost:2001/

but when I send Sarafi to get it via Apache:  
http://localhost/cgi-bin/WebObjects/VersionDisplay.woa

I get "The requested application was not found on this server." ...

and nothing in the adaptor log.



asking wotaskd for its info: http://localhost:1085

Wotaskd for WebObjects 5: Gavins-Mobile.local

Site Config as written to disk

<SiteConfig type="NSDictionary">
        <hostArray type="NSArray">
                <element type="NSDictionary">
                        <type type="NSString">MACOSX</type>
                        <name type="NSString">localhost</name>
                </element>
        </hostArray>
        <applicationArray type="NSArray">
                <element type="NSDictionary">
                        <adaptorThreadsMax 
type="NSNumber">256</adaptorThreadsMax>
                        <startingPort type="NSNumber">2001</startingPort>
                        <cachingEnabled type="NSString">YES</cachingEnabled>
                        <adaptorThreads type="NSNumber">8</adaptorThreads>
                        <adaptor type="NSString">WODefaultAdaptor</adaptor>
                        <projectSearchPath 
type="NSString">()</projectSearchPath>
                        <macOutputPath 
type="NSString">/var/log/webobjects/</macOutputPath>
                        <autoOpenInBrowser 
type="NSString">NO</autoOpenInBrowser>
                        <listenQueueSize type="NSNumber">128</listenQueueSize>
                        <statisticsPassword 
type="NSString"></statisticsPassword>
                        <adaptorThreadsMin 
type="NSNumber">16</adaptorThreadsMin>
                        <name type="NSString">VersionDisplay</name>
                        <debuggingEnabled type="NSString">NO</debuggingEnabled>
                        <phasedStartup type="NSString">YES</phasedStartup>
                        <autoRecover type="NSString">YES</autoRecover>
                        <lifebeatInterval type="NSNumber">30</lifebeatInterval>
                        <sessionTimeOut type="NSNumber">3600</sessionTimeOut>
<minimumActiveSessionsCount type="NSNumber">0</ minimumActiveSessionsCount> <macPath type="NSString">/Library/WebObjects/Applications/ VersionDisplay.woa/VersionDisplay</macPath> <notificationEmailEnabled type="NSString">NO</ notificationEmailEnabled>
                        <timeForStartup type="NSNumber">30</timeForStartup>
                </element>
        </applicationArray>
        <instanceArray type="NSArray">
                <element type="NSDictionary">
                        <port type="NSNumber">2001</port>
                        <cachingEnabled type="NSString">YES</cachingEnabled>
                        <schedulingStartDay 
type="NSNumber">1</schedulingStartDay>
<path type="NSString">/Library/WebObjects/Applications/ VersionDisplay.woa/VersionDisplay</path> <outputPath type="NSString">/var/log/webobjects/VersionDisplay-1</ outputPath> <schedulingHourlyStartTime type="NSNumber">3</ schedulingHourlyStartTime>
                        <autoOpenInBrowser 
type="NSString">NO</autoOpenInBrowser>
                        <schedulingEnabled 
type="NSString">YES</schedulingEnabled>
                        <schedulingType type="NSString">DAILY</schedulingType>
                        <debuggingEnabled type="NSString">NO</debuggingEnabled>
                        <schedulingInterval 
type="NSNumber">12</schedulingInterval>
                        <autoRecover type="NSString">YES</autoRecover>
                        <lifebeatInterval type="NSNumber">30</lifebeatInterval>
                        <applicationName 
type="NSString">VersionDisplay</applicationName>
                        <gracefulScheduling 
type="NSString">YES</gracefulScheduling>
<schedulingWeeklyStartTime type="NSNumber">3</ schedulingWeeklyStartTime>
                        <id type="NSNumber">1</id>
                        <hostName type="NSString">localhost</hostName>
<minimumActiveSessionsCount type="NSNumber">0</ minimumActiveSessionsCount> <schedulingDailyStartTime type="NSNumber">3</ schedulingDailyStartTime>
                </element>
        </instanceArray>
        <site type="NSDictionary">
                <viewRefreshEnabled type="NSString">YES</viewRefreshEnabled>
<woAdaptor type="NSString">http://localhost/cgi-bin/WebObjects</ woAdaptor>
                <viewRefreshRate type="NSNumber">60</viewRefreshRate>
        </site>
</SiteConfig>

Adaptor Config as sent to Local WOAdaptors - All Running Applications and Instances

<?xml version="1.0" encoding="ASCII"?>
<adaptor>
  <application name="JavaMonitor">
    <instance id="-8000" port="8000" host="Gavins-Mobile.local"/>
  </application>
  <application name="VersionDisplay">
    <instance id="-2002" port="2002" host="Gavins-Mobile.local"/>
    <instance id="-2001" port="2001" host="Gavins-Mobile.local"/>
  </application>
</adaptor>

Adaptor Config as sent to remote WOAdaptors - All Registered and Running Applications and Instances

<?xml version="1.0" encoding="ASCII"?>
<adaptor>
</adaptor>

Adaptor Config as written to disk - All Registered Applications and Instances

<?xml version="1.0" encoding="ASCII"?>
<adaptor>
  <application name="VersionDisplay">
    <instance id="1" port="2001" host="localhost"/>
  </application>
</adaptor>

Properties of this wotaskd

The Configuration Directory is: /Library/WebObjects/Configuration/
Wotaskd is NOT writing WOConfig.xml to disk
The multicast address is: 239.128.14.2
This wotaskd is running on Port: 1085
Wotaskd is NOT responding to Multicast
WOAssumeApplicationIsDeadMultiplier is 4
.....

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

This email sent to [EMAIL PROTECTED]

Reply via email to