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

Re: Capturing Monitor, WOTaskd and launch logs on Leopard


  • Subject: Re: Capturing Monitor, WOTaskd and launch logs on Leopard
  • From: Chuck Hill <email@hidden>
  • Date: Tue, 3 Jun 2008 10:33:23 -0700

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


--

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@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to 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>)
 >Capturing Monitor, WOTaskd and launch logs on Leopard (From: Mark Ritchie <email@hidden>)

  • Prev by Date: Re: WebObjects Community Gathering
  • Next by Date: Re: WebObjects Community Gathering
  • Previous by thread: Capturing Monitor, WOTaskd and launch logs on Leopard
  • Next by thread: [OT] Developing iPhone applications using Ruby on Rails and Eclipse, Part 1: Serving content for iPhones
  • Index(es):
    • Date
    • Thread