Sounds like a permissions problem. Apps run from JavaMonitor now run
under appserveruser not root. See if this helps:
http://www.gvcsitemaker.com/gvc.webobjects/
faq&mode=single&recordID=19193&nextMode=list
On Jun 27, 2007, at 2:26 AM, Ken Tabb wrote:
Hi folks,
If you don't want to see a grown man cry, look away now!
It's been a while since I had to deploy a WOApp, so I'm a wee bit
rusty. I'm having a bit of jip deploying an app that works fine in
Development mode on my powerbook, but not fine (instances die) in
Deployment on the Mac OS X Server (10.4.10, although 10.4.9
exhibited the same symptoms). I'm using Xcode 2.4.1 (on 10.4.10,
ditto 10.4.9 did the same) to develop.
So I decided to simplify by deploying a HelloWorldWOApp, which just
says "HelloWorld" along with an NSTimestamp.
So I build the project as Deployment (sudo xcodebuild install -
configuration Deployment DSTROOT=/) on my powerbook, then copy
the .woa and .jar over into the web server's /Library/WebObjects/
Applications. This is all as user 'sadmin' (server admin).
If I add the app via Monitor (/Library/WebObjects/Applications/
HelloWorldWOApp.woa/HelloWorldWOApp), that's fine. If I add
instances via Monitor, they die instantly (as in, within the "Time
allowed for startup" variable for that app in Monitor).
If instead I ssh into the server and type the following (as user
sadmin), the app works fine via direct connection
sudo /Library/WebObjects/Applications/HelloWorldWOApp.woa/
HelloWorldWOApp -WOPort 27961 -WOCachingEnabled YES -
WODebuggingEnabled NO -WOOutputPath /var/log/kenWOLog -
WOAutoOpenInBrowser NO -WOAutoOpenClientApplication NO -
WOLifebeatInterval 30 -WOLifebeatEnabled YES -
WOLifebeatDestinationPort 1085 -WOAdaptor WODefaultAdaptor -
WOWorkerThreadCount 8 -WOListenQueueSize 128 -
WOWorkerThreadCountMin 16 -WOWorkerThreadCountMax 256 -
NSProjectSearchPath \(\) -WOSessionTimeOut 3600 -WOApplicationName
HelloWorldWOApp -WOMonitorEnabled YES -WONoPause YES
... I can go to http://www.myserver.com:27961/ and see the app
fine. This also works without the 'sudo' (i.e. as sadmin).
If I copy the above blurb into Monitor's "Additional Arguments"
section for new instances of my app (starting at the -WOPort bit,
and giving a different port number so that I can tell which is
which), they still die.
I've tried sudo chmod-ing -R go+rx /Library/WebObjects/
Applications, but it makes no difference.
I haven't built a 'WebServer' version (as there are no
WebServerResources either in the HelloWorldWOApp or my real app) -
should I have done this?! When I tried building with -configuration
WebServer on my powerbook, it didn't put anything extra in
HelloWorldWOApp.woa/Contents/, so I'm guessing that's not the problem.
Other info that may be clues: Apache server (v1.3.x as per MOSXS),
Apache module running, non-standard apache document root (i.e. it
isn't /Library/WebServer/Documents, but apache has always been fine
with this, and I made sure to put the right one into WebObjects'
apache.conf). As I say, if there are no WebServerResources being
served, I'm guessing that's not why the instances are dying anyhow).
Any help would be greatly appreciated. Feel free to ridicule me as
much as you like...
Thanks in advance,
Ken
- - - - - - - - - -
Dr. Ken Tabb
Mac & UNIX Developer - Health & Human Sciences
Machine Vision & Neural Network researcher - School of Computer
Science
University of Hertfordshire, UK
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-deploy mailing list (Webobjects-
[EMAIL PROTECTED])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-deploy/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-deploy mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-deploy/archive%40mail-archive.com
This email sent to [EMAIL PROTECTED]