Re: Deploying on Development System
Re: Deploying on Development System
- Subject: Re: Deploying on Development System
- From: Chuck Hill <email@hidden>
- Date: Mon, 19 Sep 2005 13:00:43 -0700
On Sep 19, 2005, at 10:51 AM, Daniel Eggert wrote:
wotaskd is not started on 10.4 client. So I started it manually.
Don't do it like that. Edit /System/Library/StartupItems/
WebObjects/WebObjects
so the relevant section looks like
####
# This set of invocations will launch wotaskd and
# (optionally) Monitor as root
"$WOSERVICE" -appPath "$WOTASKD" >/var/log/
webobjects.log 2>&1 &
You should not need to do much else. If you are running from
Xcode, there is no need to set it up in JavaMonitor. The URL will
be like
http://localhost/cgi-bin/WebObjects/Aurora/-50000
Thanks. I see. And I thought Apple was going for launchd(8).
Anyhow, things still do not work.
I'm confused about the launchd thing too. Maybe that is only for OS
X Server?
I fixed /System/Library/StartupItems/WebObjects/WebObjects
/usr/bin/su appserver -c "$WOSERVICE -appPath $WOTASKD" >/var/
log/webobjects.log 2>&1 &
/usr/bin/su appserver -c "$WOSERVICE -appPath $WOJAVAMONITOR" -
WOPort 56789 -WOAutoOpenInBrowser NO >> /var/log/webobjects.log 2>&1 &
additionally had to set the shell of the appserver user to
something valid (/bin/sh).
I've never had to do that.
I have wotaskd upand running:
javawoservice.sh: `wotaskd' is starting up ...
[2005-09-19 19:35:42 CEST] <main> Multicast Response Disabled
[2005-09-19 19:35:42 CEST] <Thread-0> Created UDP socket;
listening for requests...
[2005-09-19 19:35:42 CEST] <main> The URL for webserver connect
is:
http://Daniels-iMac.local/cgi-bin/WebObjects/wotaskd.woa/-1085
The URL for direct connect is:
http://Daniels-iMac.local:1085/cgi-bin/WebObjects/wotaskd.woa
Direct connect should not be on I'd think. I've never had to fiddle
with it.
[2005-09-19 19:35:42 CEST] <main> null
[2005-09-19 19:35:42 CEST] <main> Waiting for requests...
iting for requests...
Still, while <http://locahost:1085/cgi-bin/WebObjects/wotaskd.woa>
_does_ works, <http://localhost/cgi-bin/WebObjects/
wotaskd.woa/-1085> returns only:
The requested application was not found on this server.
My guess would be that it needs
-WODirectConnectEnabled false
Which should be the case already. Or it might be a permissions
error, on /Library/WebObjects/Configuration for appserveruser.
Sounds like something is messed up on that machine.
Chuck
Here's a telnet transscript:
% daniel% telnet localhost 80
Trying ::1...
telnet: connect to address ::1: Connection refused
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
GET /cgi-bin/WebObjects/wotaskd.woa/-1085
<html><body><strong>The requested application was not found on
this server.</strong></body></html>
Connection closed by foreign host.
Looks like the adaptor does something it should not...? Which part
did I miss?
/Daniel
--
Unnamed - an introduction to web applications using WebObjects and
Xcode http://www.global-village.net/wointro
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