The logging settings outlined on this page are intended to help you troubleshoot a problematic install. They are not intended to be used in a running, production environment. They will cause substantial performance degradation.
Logging for JavaMonitor and wotaskd
It is very useful to capture the JavaMonitor and wotaskd logs by adding the following to the .plist files in
/Library/LaunchDaemons. This is the preferred method of capturing log messages since it works even if JavaMonitor or wotaskd fail to launch.
Add this code to both of these files:
/Library/WebObjects/Logs should already be owned by appserver so there shouldn't be any permissions troubles with writing the logs there. If the files fail to show up, double check the permissions on the
% ls -la /Library/WebObjects will show you.
Now that log files are being written, turn on Deployment Debugging by adding these two
<string> elements to the
<ProgramArguments> element of womonitor.plist and/or wotaskd.plist:
Or, if you manually launch JavaMonitor and/or wotaskd, you can simply add
-_DeploymentDebugging true to your launch command.
-_DeploymentDebugging is the equivalent of passing all the following settings in either on the command-line or in a Properties file:
Which gives nice details like this :
Logging Application Startup
Modify SpawnOfWotaskd.sh in
/System/Library/WebObjects/JavaApplications/wotaskd.woa/Contents/Resources to make it capture logs to the same folder. This is very useful if your application won't launch when you start it with JavaMonitor.
Standard WebObjects Installs will Overwrite This Change
This script gets overwritten each time you install an updated copy of WebObjects or packages which include WebObjects so keep a backup of it handy.
Don't Use the Standard Install Location
Consider installing JavaMonitor and wotaskd in
/Library/WebObjects/JavaApplications instead of
/System/Library/WebObjects/JavaApplications. A standard install of WebObjects will not overwrite them in this new location, but it does require additional work to make sure everything knows about the new location.