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. :-)


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

and try to access the app a couple of times. Then take a look at the contents of
/tmp/WebObjects.log

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?

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-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to