• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
[SOLVED] deploying across multiple app servers
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[SOLVED] deploying across multiple app servers


  • Subject: [SOLVED] deploying across multiple app servers
  • From: Simon McLean <email@hidden>
  • Date: Thu, 2 Jul 2009 09:49:59 +0100

Hi Clark - Thanks for the hint. I've solved both issues now but in a
slightly different way:

>> problem 1:
>>
>> i'm trying to use configuration file method for state discovery, and i
>> want monitor to write out the file automatically. i need to pass
>> wotaskd the property -WOSavesAdaptorConfiguration=true, so i modified
>> the launchdaemon that starts wotaskd up. problem is that when you
>> restart webobjects services in server admin it actually blats that
>> launchdameon and writes an entirely new file out every time (hence
>> losing my changes). So where should i be passing in that property ?

I fixed this one by editing the Properties file inside the actual
WOTaskd.woa (/System/Library/WebObjects/Applications/JavaApplications/WOTaskd.woa/Contents/Resources/Properties).

>> problem 2:
>>
>> i put problem 1 aside for a second and manually created a config file
>> instead. it's at /Library/WebObjects/Configuration/WOConfig.xml and i
>> created it by cutting and pasting the contents from java monitor. i
>> then added this to my httpd.conf file:
>>
>> WebObjectsConfig file://Library/WebObjects/Configuration/WOConfig.xml 10
>>
>> restarted wotaskd, monitor and apache, but the httpd adaptor just
>> ignores me. WOAdaptorInfo tells me it is getting it's config from
>> localhost:1085/WebObjects/wotaskd.woa/wa/woconfig which is just
>> returning the "Adaptor Config as sent to Local WOAdaptors". now i
>> guess that's the default behavior because the WOAdaptor is local, but
>> i want it to use my config file instead. Any ideas what i'm doing
>> wrong ?

My mistake here was that I was defining the property in apache's
httpd.conf rather than apache.conf. There's a bit of a red herring
here though: I already define other properties like WebObjectsOptions,
WebObjectsAdminUsername, WebObjectsAdminPassword in httpd.conf and
they work fine. The adaptor just seemed to ignore my WebObjectsConfig
property.

What i figured is that all of these properties are defined in
apache.conf (/System/Library/WebObjects/Adaptors/Apache/apache.conf),
but all are commented out except WebObjectsConfig. apache.conf is
loaded after httpd.conf, so what was happening was httpd.conf loads
and sets it's properties, then apache.conf loads and overwrites my
WebObjectsConfig property with the default setting.

So i've now moved all of my settings for these properties into
apache.conf and it all works great.

Simon
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: ERXPatternLayout question
  • Next by Date: Fetching the data of a many-to many relationShip
  • Previous by thread: Re: ERXPatternLayout question
  • Next by thread: Fetching the data of a many-to many relationShip
  • Index(es):
    • Date
    • Thread