On 3-Jun-08, at 10:25 AM, Florijan Stamenkovic wrote:
Argh, should have thought of just going to the wiki :)

And I should learn how to make additions to the wiki however in the mean time, I'll post it here:

I find it very useful to capture the Monitor and WOTaskd logs by adding something like the following to the plist in /Library/ LaunchDaemons. (Note that the /Library/WebObjects/Logs should already be owned by appserver so there are no permissions troubles with writing the logs here.)

        <key>StandardOutPath</key>
        <string>/Library/WebObjects/Logs/womonitor.log</string>
        <key>StandardErrorPath</key>
        <string>/Library/WebObjects/Logs/womonitor.log</string>

For the record, I also modify SpawnOfWotaskd.sh and have it capture logs to the same folder. Very useful if your application won't launch when you click the 'go' button in Monitor. Something like this:

#!/bin/sh
# Modified by Mark Ritchie in Mar 2008
# - We now keep a log of any troubles while launching an application.

#$@ 1>/dev/null 2>&1 &
LOG=/Library/WebObjects/Logs/SpawnOfWotaskd.log
echo "************" >>${LOG}
echo "date: `date`" >>${LOG}
echo "args: $@" >>${LOG}
$@ 1>>${LOG} 2>&1 &

This script lives in /System/Library/WebObjects/JavaApplications/ wotaskd.woa/Contents/Resources and gets over written each time you install an updated copy of WebObjects. This has hit me in the last couple of weeks when I installed a beta for some other development. ;-) Thankfully, I had a backup.

See you at WOWODC!
M.
__
Mark Ritchie
Cocoa and WebObjects Developer
Diamond Lake Consulting Inc.
Toronto, Ontario, Canada



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

This email sent to [EMAIL PROTECTED]

Reply via email to