Re: WO Networking Woes
Re: WO Networking Woes
- Subject: Re: WO Networking Woes
- From: Lachlan Deck <email@hidden>
- Date: Wed, 8 Nov 2006 15:20:45 +1100
Hi Chuck,
On 08/11/2006, at 2:59 PM, Chuck Hill wrote:
On Nov 7, 2006, at 7:41 PM, Lachlan Deck wrote:
Hi there,
On 31/10/2006, at 4:18 AM, Chuck Hill wrote:
Do you actually need to use the machine name? I have had good
luck running everything under localhost. If you want to take a
bash at this:
1. Add -WOHost localhost to your app launch parameters
2. Add -WOHost localhost to /System/Library/WebObjects/
JavaApplications/wotaskd.woa/Contents/Resources/Properties
Did you restart javawoservices and wotaskd after you did this? A
reboot is a foolproof way. :-)
Yes. Stopped app and then...
$ sudo /System/Library/StartupItems/WebObjects/WebObjects restart
3. Edit your apache.conf file to use WebObjectsConfig http://
localhost:1085 10
4. Configure JavaMonitor to use localhost as the host name
5. Stop and start Apache, wotaskd, your app
I've recently reloaded my machine and so have unfortunately lost
the other instructions you've previously given on this topic - and
am back with this problem again after over a year of freedom :-/.
As far as I can tell everything is set to localhost but when
running the app (this one's from Xcode) I get:
"The requested URL /cgi-bin/WebObjects/MyApp.woa/-55555 was not
found on this server."
There's got to be a hostname problem somewhere (as the app starts
fine) but it never gets hit.
Any hints? Thanks again... (wotaskd is running. see below)
If you have done everything above, I start to run out of ideas.
So, let's clutch at straws instead. Turn on the woadaptor log:
sudo touch /tmp/logWebObjects
Already tried that.
and try to access the app a couple of times. Then take a look at
the contents of
/tmp/WebObjects.log
I don't get an accompanying /tmp/WebObjects.log after trying to hit
the app a few times :-(
Look to see that it is using localhost as the name and look for any
messages that might signify something being out of whack.
$ sudo lsof -i tcp:1085
Password:
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
java 3694 root 7u IPv6 0x01ff27f8 0t0 TCP [::
127.0.0.1]:webobjects (LISTEN)
java 3694 root 10u IPv6 0x01ff1d1c 0t0 TCP [::
127.0.0.1]:webobjects->[::127.0.0.1]:55094 (ESTABLISHED)
java 3966 ldeck 9u IPv6 0x03dd27f8 0t0 TCP [::
127.0.0.1]:55094->[::127.0.0.1]:webobjects (ESTABLISHED)
My Properties file (for MyApp) has
WOAdaptorURL=http://localhost/cgi-bin/WebObjects
WOHost=localhost
WODirectConnectEnabled=NO
WOPort=5555
That all looks ok. Is java 3966 ldeck your application or
JavaMonitor?
It was my app, yes.
with regards,
--
Lachlan Deck
_______________________________________________
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