• 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
Capturing Monitor, WOTaskd and launch logs on Leopard
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Capturing Monitor, WOTaskd and launch logs on Leopard


  • Subject: Capturing Monitor, WOTaskd and launch logs on Leopard
  • From: Mark Ritchie <email@hidden>
  • Date: Tue, 3 Jun 2008 12:22:52 -0400

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@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Capturing Monitor, WOTaskd and launch logs on Leopard
      • From: Chuck Hill <email@hidden>
References: 
 >wotaskd on Leopard (From: Florijan Stamenkovic <email@hidden>)
 >Re: wotaskd on Leopard (From: Pascal Robert <email@hidden>)
 >[SOLVED] Re: wotaskd on Leopard (From: Florijan Stamenkovic <email@hidden>)

  • Prev by Date: Re: Wonder/D2W NEUListpage running out of memory. Huh?
  • Next by Date: WebObjects Community Gathering
  • Previous by thread: [SOLVED] Re: wotaskd on Leopard
  • Next by thread: Re: Capturing Monitor, WOTaskd and launch logs on Leopard
  • Index(es):
    • Date
    • Thread