On Dec 20, 2007, at 10:27 AM, James Cicenia wrote:
Hello -
I am really very stumped.
The only thing I can think of why my app won't run from the
JavaMonitor has to do with something with my new Eclipse/WOLips
setup, compile and build.
Have you tried diffing the two trees, the old and new .woa?
And it is not JavaMonitor doing this. It is wotaskd. JavaMonitor
just edits /Library/WebObjects/Configuration/SiteConfig.xml and
delegates the real work to wotaskd. wotaskd reads /Library/
WebObjects/Configuration/SiteConfig.xml and does what it is told. It
reads the <applicationArray> and <instanceArray> and (I think) merges
them to get the values to launch the app with. It constructs a
command to launch the app and passes it off to
/System/Library/WebObjects/JavaApplications/wotaskd.woa/Contents/
Resources/SpawnOfWotaskd.sh
BUT, why would it run just great from the command line?
Because although you say you are using the same command line as when
launching from JM (and the same user), I suspect you are not.
Take a look at what is in that config file. You would need to
include in the command at least the values for:
<port type="NSNumber">
<cachingEnabled type="NSString">
<additionalArgs type="NSString">
<outputPath type="NSString">
<lifebeatInterval type="NSNumber">
<applicationName type="NSString">
<hostName type="NSString">
Does anyone have something else for me to look at?
Inside the app is the script that starts it. You could alter this to
echo the command to a file some place. When you get down to it,
launching is quite basic. You just need to get some output.
my app.woa has me as owner (admin) and appserveradm as the group.
The privileges are: drwxrwx-x and they have
Again, .woa permissions are unlikely to be the problem. If they
were, you could not be able to select the app in JavaMonitor. The
output path is more likely to be the issue, or where you have
SpawnOfWotaskd.sh writing to.
Chuck
--
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-deploy mailing list (Webobjects-deploy@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-deploy/archive%40mail-archive.com
This email sent to [EMAIL PROTECTED]