My Boy Scout Good Deed For the Day:

http://wiki.objectstyle.org/confluence/display/WO/Debugging+wotaskd+and+JavaMonitor

I think you can just sign up for an ID at 
http://issues.objectstyle.org/jira/secure/Dashboard.jspa
and use that to edit the Wiki.

Chuck


On Jun 3, 2008, at 9:22 AM, Mark Ritchie wrote:

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/chill%40global-village.net

This email sent to [EMAIL PROTECTED]


--

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/products/practical_webobjects





_______________________________________________
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