Ok, we've read about 500 pages of troubleshooting, configured and
re-configured apache.conf, WOConfig.xml, all setting in JavaMonitor
and we just can't get multiple instances to work at all (they start
up alright and work individually, but that's it)! We have to
specify each instance's port in the URL to get each instance to
work, connecting to the .woa file without specifying a port returns
an error stating nothing is there. Round-Robin load balancing, with
our WOConfig.xml file and apache.conf modifications (religiously
followed in Apple's Deploying_Applications" guide), should be doing
its job, it just doesn't work.
We have a lot of experience running a single instance of a .woa in
JavaMonitor, but we recently got so much traffic we need multiple
instances.
We are trying to configure a multiple instances set-up with Round-
Robin load balancing on a local network (at first, until we get the
hang of it and can actually find the courage to configure our
Xserve to do so). We are running Mac OS X Server 10.3.9 on a dual
G4 tower, connected to a router.
We configured its Host to localhost, as well as all settings
required. Our main reference tool is Apple's
"Deploying_Applications" guide, which seems really complete.
Our URL to Adaptor is http://localhost/cgi-bin/WebObjects/
This is the full config file we get when clicking on the YES link
of our Host in JavaMonitor
<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">
<cachingEnabled type="NSString">YES</cachingEnabled>
<adaptor type="NSString">WODefaultAdaptor</adaptor>
<name type="NSString">Meneda</name>
<adaptorThreadsMin
type="NSNumber">16</adaptorThreadsMin>
<notificationEmailEnabled type="NSString">NO</
notificationEmailEnabled>
<macPath
type="NSString">/Users/local/Meneda.woa/Meneda</macPath>
<lifebeatInterval type="NSNumber">30</lifebeatInterval>
<statisticsPassword
type="NSString"></statisticsPassword>
<adaptorThreadsMax
type="NSNumber">256</adaptorThreadsMax>
<startingPort type="NSNumber">2001</startingPort>
<adaptorThreads type="NSNumber">8</adaptorThreads>
<projectSearchPath
type="NSString">()</projectSearchPath>
<autoRecover type="NSString">YES</autoRecover>
<urlVersion type="NSNumber">4</urlVersion>
<autoOpenInBrowser
type="NSString">NO</autoOpenInBrowser>
<listenQueueSize type="NSNumber">128</listenQueueSize>
<minimumActiveSessionsCount type="NSNumber">0</
minimumActiveSessionsCount>
<sessionTimeOut type="NSNumber">3600</sessionTimeOut>
<debuggingEnabled type="NSString">NO</debuggingEnabled>
<phasedStartup type="NSString">YES</phasedStartup>
<additionalArgs type="NSString">-WOStatisticsPassword xxxxxxx -
WOHost localhost</additionalArgs>
<redir
type="NSString">http://localhost/error2.html</redir>
<scheduler type="NSString">ROUNDROBIN</scheduler>
<timeForStartup type="NSNumber">30</timeForStartup>
</element>
</applicationArray>
<instanceArray type="NSArray">
<element type="NSDictionary">
<port type="NSNumber">2001</port>
<cachingEnabled type="NSString">YES</cachingEnabled>
<additionalArgs type="NSString">-WOStatisticsPassword xxxxxxx -
WOHost localhost</additionalArgs>
<path
type="NSString">/Users/local/Meneda.woa/Meneda</path>
<id type="NSNumber">1</id>
<autoOpenInBrowser
type="NSString">NO</autoOpenInBrowser>
<schedulingDailyStartTime type="NSNumber">3</
schedulingDailyStartTime>
<debuggingEnabled type="NSString">NO</debuggingEnabled>
<schedulingEnabled
type="NSString">NO</schedulingEnabled>
<schedulingStartDay
type="NSNumber">1</schedulingStartDay>
<hostName type="NSString">localhost</hostName>
<gracefulScheduling
type="NSString">YES</gracefulScheduling>
<autoRecover type="NSString">NO</autoRecover>
<lifebeatInterval type="NSNumber">30</lifebeatInterval>
<schedulingInterval
type="NSNumber">12</schedulingInterval>
<schedulingWeeklyStartTime type="NSNumber">3</
schedulingWeeklyStartTime>
<applicationName
type="NSString">Meneda</applicationName>
<schedulingType type="NSString">DAILY</schedulingType>
<minimumActiveSessionsCount type="NSNumber">0</
minimumActiveSessionsCount>
<schedulingHourlyStartTime type="NSNumber">3</
schedulingHourlyStartTime>
</element>
<element type="NSDictionary">
<port type="NSNumber">2002</port>
<cachingEnabled type="NSString">YES</cachingEnabled>
<additionalArgs type="NSString">-WOStatisticsPassword xxxxxxx -
WOHost localhost</additionalArgs>
<path
type="NSString">/Users/local/Meneda.woa/Meneda</path>
<id type="NSNumber">2</id>
<autoOpenInBrowser
type="NSString">NO</autoOpenInBrowser>
<schedulingDailyStartTime type="NSNumber">3</
schedulingDailyStartTime>
<debuggingEnabled type="NSString">NO</debuggingEnabled>
<schedulingEnabled
type="NSString">NO</schedulingEnabled>
<schedulingStartDay
type="NSNumber">1</schedulingStartDay>
<hostName type="NSString">localhost</hostName>
<gracefulScheduling
type="NSString">YES</gracefulScheduling>
<autoRecover type="NSString">NO</autoRecover>
<lifebeatInterval type="NSNumber">30</lifebeatInterval>
<schedulingInterval
type="NSNumber">12</schedulingInterval>
<schedulingWeeklyStartTime type="NSNumber">3</
schedulingWeeklyStartTime>
<applicationName
type="NSString">Meneda</applicationName>
<schedulingType type="NSString">DAILY</schedulingType>
<minimumActiveSessionsCount type="NSNumber">0</
minimumActiveSessionsCount>
<schedulingHourlyStartTime type="NSNumber">3</
schedulingHourlyStartTime>
</element>
<element type="NSDictionary">
<port type="NSNumber">2003</port>
<cachingEnabled type="NSString">YES</cachingEnabled>
<additionalArgs type="NSString">-WOStatisticsPassword xxxxxxx -
WOHost localhost</additionalArgs>
<path
type="NSString">/Users/local/Meneda.woa/Meneda</path>
<id type="NSNumber">3</id>
<autoOpenInBrowser
type="NSString">NO</autoOpenInBrowser>
<schedulingDailyStartTime type="NSNumber">3</
schedulingDailyStartTime>
<debuggingEnabled type="NSString">NO</debuggingEnabled>
<schedulingEnabled
type="NSString">NO</schedulingEnabled>
<schedulingStartDay
type="NSNumber">1</schedulingStartDay>
<hostName type="NSString">localhost</hostName>
<gracefulScheduling
type="NSString">YES</gracefulScheduling>
<autoRecover type="NSString">NO</autoRecover>
<lifebeatInterval type="NSNumber">30</lifebeatInterval>
<schedulingInterval
type="NSNumber">12</schedulingInterval>
<schedulingWeeklyStartTime type="NSNumber">3</
schedulingWeeklyStartTime>
<applicationName
type="NSString">Meneda</applicationName>
<schedulingType type="NSString">DAILY</schedulingType>
<minimumActiveSessionsCount type="NSNumber">0</
minimumActiveSessionsCount>
<schedulingHourlyStartTime type="NSNumber">3</
schedulingHourlyStartTime>
</element>
</instanceArray>
<site type="NSDictionary">
<scheduler type="NSString">ROUNDROBIN</scheduler>
<viewRefreshRate type="NSNumber">60</viewRefreshRate>
<password type="NSString">A68D480217B60B270D4F59D91E144D71AC28</
password>
<urlVersion type="NSNumber">4</urlVersion>
<viewRefreshEnabled type="NSString">YES</viewRefreshEnabled>
<woAdaptor type="NSString">http://localhost/cgi-bin/WebObjects/</
woAdaptor>
</site>
</SiteConfig>
Adaptor Config as sent to Local WOAdaptors - All Running
Applications and Instances
<?xml version="1.0" encoding="ASCII"?>
<adaptor>
<application name="Meneda" scheduler="ROUNDROBIN" redir="http://
localhost/error2.html" urlVersion="4">
<instance id="1" port="2001" host="localhost"/>
<instance id="2" port="2002" host="localhost"/>
<instance id="3" port="2003" host="localhost"/>
</application>
<application name="JavaMonitor">
<instance id="-56789" port="56789" host="meneda.local"/>
</application>
</adaptor>
Adaptor Config as sent to remote WOAdaptors - All Registered and
Running Applications and Instances
<?xml version="1.0" encoding="ASCII"?>
<adaptor>
<application name="Meneda" scheduler="ROUNDROBIN" redir="http://
localhost/error2.html" urlVersion="4">
<instance id="1" port="2001" host="localhost"/>
<instance id="2" port="2002" host="localhost"/>
<instance id="3" port="2003" host="localhost"/>
</application>
</adaptor>
Adaptor Config as written to disk - All Registered Applications and
Instances
<?xml version="1.0" encoding="ASCII"?>
<adaptor>
<application name="Meneda" scheduler="ROUNDROBIN" redir="http://
localhost/error2.html" urlVersion="4">
<instance id="1" port="2001" host="localhost"/>
<instance id="2" port="2002" host="localhost"/>
<instance id="3" port="2003" 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
The System Properties are: {java.vendor=Apple Computer, Inc.,
WOWorkerThreadCountMax=256, WOSocketMonitorSleepTime=50,
WOFrameworksBaseURL=/WebObjects/Frameworks, os.name=Mac OS X,
sun.boot.class.path=/System/Library/Frameworks/JavaVM.framework/
Versions/1.4.2/Classes/classes.jar:/System/Library/Frameworks/
JavaVM.framework/Versions/1.4.2/Classes/ui.jar:/System/Library/
Frameworks/JavaVM.framework/Versions/1.4.2/Classes/laf.jar:/System/
Library/Frameworks/JavaVM.framework/Versions/1.4.2/Classes/
sunrsasign.jar:/System/Library/Frameworks/JavaVM.framework/Versions/
1.4.2/Classes/jsse.jar:/System/Library/Frameworks/JavaVM.framework/
Versions/1.4.2/Classes/jce.jar:/System/Library/Frameworks/
JavaVM.framework/Versions/1.4.2/Classes/charsets.jar,
WODefaultUndoStackLimit=10,
WOSessionStoreClassName=WOServerSessionStore,
WOLifebeatInterval=30, WOEnvClassPath=, sun.java2d.fontpath=,
java.vm.specification.vendor=Sun Microsystems Inc.,
java.runtime.version=1.4.2_09-233, WOListenQueueSize=128,
user.name=root, WOSessionTimeOut=3600, WORootDirectory=/System,
awt.nativeDoubleBuffering=true, WOMaxHeaders=200,
_StreamActionRequestHandlerKey=wis,
_WOHTMLParserClassName=WOHTMLTemplateParser, user.language=en,
WOIncludeCommentsInResponse=false, WOSMTPHost=smtp,
sun.boot.library.path=/System/Library/Frameworks/JavaVM.framework/
Versions/1.4.2/Libraries, java.version=1.4.2_09,
WOAllowsCacheControlHeader=true, user.timezone=America/Montreal,
WOUserDirectory=/, sun.arch.data.model=32, WOAdaptorURL=http://
127.0.0.1/cgi-bin/WebObjects, java.endorsed.dirs=/System/Library/
Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/endorsed,
_DirectActionRequestHandlerKey=wa, sun.cpu.isalist=,
file.encoding.pkg=sun.io, file.separator=/,
java.specification.name=Java Platform API Specification,
WOApplicationClass=Application, java.class.version=48.0,
user.country=US, WOMaxSocketIdleTime=180000, java.home=/System/
Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home,
java.vm.info=mixed mode, os.version=10.3.9,
_WOSessionReclaimingInterval=60, WOContextClassName=WOContext,
path.separator=:, java.vm.version=1.4.2-56,
WOAllowRapidTurnaround=false,
java.util.prefs.PreferencesFactory=java.util.prefs.MacOSXPreferencesFa
ctory, WOPlatform=MacOS, _ResourceRequestHandlerKey=wr,
java.awt.printerjob=apple.awt.CPrinterJob, WOSocketCacheSize=100,
sun.io.unicode.encoding=UnicodeBig, awt.toolkit=apple.awt.CToolkit,
WOAcceptMalformedCookies=false, user.home=/private/var/root,
java.specification.vendor=Sun Microsystems Inc.,
java.library.path=.:/Library/Java/Extensions:/System/Library/Java/
Extensions:/usr/lib/java, java.vendor.url=http://apple.com/,
java.vm.vendor="Apple Computer, Inc.", gopherProxySet=false,
java.runtime.name=Java(TM) 2 Runtime Environment, Standard Edition,
java.class.path=WOBootstrap.jar, com.webobjects.pid=318,
WOLocalRootDirectory=, com.webobjects.classpath=/System/Library/
WebObjects/JavaApplications/wotaskd.woa/Contents/Resources/Java/
wotaskd.jar:/System/Library/PrivateFrameworks/JavaMonitor.framework/
Resources/Java/javamonitor.jar:/System/Library/Frameworks/
JavaFoundation.framework/Resources/Java/javafoundation.jar:/System/
Library/Frameworks/JavaWOExtensions.framework/Resources/Java/
JavaWOExtensions.jar:/System/Library/Frameworks/
JavaEOControl.framework/Resources/Java/javaeocontrol.jar:/System/
Library/Frameworks/JavaWebObjects.framework/Resources/Java/
javawebobjects.jar:/System/Library/Frameworks/JavaXML.framework/
Resources/Java/javaxml.jar:/private/var/root/Library/Java:/Library/
Java/:/System/Library/Java/:/Network/Library/Java:/System/Library/
Frameworks/JavaVM.framework/Classes/classes.jar:/System/Library/
Frameworks/JavaVM.framework/Classes/ui.jar:/Library/WebObjects/
Extensions/avalon-framework-4.1.2.jar:/Library/WebObjects/
Extensions/axis-ant.jar:/Library/WebObjects/Extensions/axis.jar:/
Library/WebObjects/Extensions/commons-discovery.jar:/Library/
WebObjects/Extensions/commons-logging.jar:/Library/WebObjects/
Extensions/jaxrpc.jar:/Library/WebObjects/Extensions/
log4j-1.2.4.jar:/Library/WebObjects/Extensions/logkit-1.0.1.jar:/
Library/WebObjects/Extensions/saaj.jar:/Library/WebObjects/
Extensions/wsdl4j.jar:/Library/WebObjects/Extensions/,
java.vm.specification.name=Java Virtual Machine Specification,
WOMaxIOBufferSize=8196, java.vm.specification.version=1.0,
sun.cpu.endian=big, sun.os.patch.level=unknown, java.io.tmpdir=/
tmp, java.vendor.url.bug=http://developer.apple.com/java/,
_ComponentRequestHandlerKey=wo, WOWorkerThreadCountMin=16,
os.arch=ppc, java.awt.graphicsenv=apple.awt.CGraphicsEnvironment,
_WebServiceRequestHandlerKey=ws, java.ext.dirs=/Library/Java/
Extensions:/System/Library/Java/Extensions:/System/Library/
Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ext,
WOAllowsConcurrentRequestHandling=false, mrj.version=233, user.dir=/
System/Library/WebObjects/JavaApplications/wotaskd.woa,
WOGenerateWSDL=true, WOAdditionalAdaptors=(), line.separator=
, java.vm.name=Java HotSpot(TM) Client VM, WOApplicationBaseURL=/
WebObjects, file.encoding=MacRoman, java.specification.version=1.4,
WOWorkerThreadCount=8, WOAdaptor=WODefaultAdaptor}
We are REALLY desperate and need this thing up and running ASAP. If
anyone knows what we are doing wrong, any suggestion would be
greatly appreciated! I followed the "What's My URL" thread from
Jeffrey Schmitz. Chuck Hill got him up and running; we seem to have
a very similar problem, except setting -WOHost localhost in the
Additional Arguments section of New Instances Default settings
didn't do the trick for us.
Thank you for any help/suggestions.
King Regards,
Pascal
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-deploy mailing list (Webobjects-
[EMAIL PROTECTED])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-deploy/chill%
40global-village.net
This email sent to [EMAIL PROTECTED]