Re: Help on running without DirectConnect
Re: Help on running without DirectConnect
- Subject: Re: Help on running without DirectConnect
- From: William Hatch <email@hidden>
- Date: Mon, 14 Jan 2008 16:07:15 -0500
I meant to append this to the earlier post:
When the app launches, I get this line in the console: Opening
application's URL in browser:
http://localhost/cgi-bin/WebObjects/myApp.woa/-55555 which would
appear to be correct for straight apache configuration, however, the
url the browser has is:
http://127.0.0.1:55555/cgi-bin/WebObjects/myApp.woa which looks like
DirectConnect at work.
I added -WODirectConnectEnabled false to the Run Configurations' args
tab, and it's unchecked in the WOargs tab, so I'm curious as to why
it's showing up in the browser this way. Thanks.
Bill
On Jan 14, 2008, at 3:58 PM, William Hatch wrote:
Configuring a new dev machine to use apache instead of direct
connect; Tiger and 5.3.3.
I've modified the apache adaptor to use localhost, set wotaskd to
run on localhost, named the apache server localhost in httpd.conf
and created a start up plist in /Library/LaunchDeamons for wotaskd.
In Eclipse, I've disabled WODirectConnectEnabled, and modified
WOAdaptorURL to http://localhost/cgi-bin/WebObjects, set WOPort
55555, and WOHost localhost. I'm able to get the wotaskd
configuration when hitting http://localhost:1085, and the app tries
to run but Safari kicks back "... can't open the page "http://
127.0.0.1:55555/cgi-bin/WebObjects/myApp.woa" because the server
unexpectedly dropped the connection, which sometimes occurs when
the server is busy. You might be able to open the page later." The
log output from /tmp/WebObjects.log (sudo touch /tmp/logWebObjects)
is:
Info: attempting to connect to localhost on port 55555
Info: Webfones:-55555 on (55555) connected [pooled: No]
Info: Request GET /cgi-bin/WebObjects/myApp.woa/-55555 HTTP/1.1
sent, awaiting response
Info: Reading configuration from http://localhost:1085/WebObjects/
wotaskd.woa/wa/woconfig
Info: attempting to connect to localhost on port 1085
Info: Preparing to read config for host: localhost
Info: New response: HTTP/1.0 200 Apple WebObjects
Info: New response: HTTP/1.1 302 Apple WebObjects
Info: received ->302 Apple
Which would appear to be a redirect??
I've used the info here: http://wiki.objectstyle.org/confluence/
display/WO/Development+Tools-Running+Through+Apache
as well as a lot of useful information from previous threads in the
list archives (many of which I participated in as well;-) but
cannot seem to get this working.
Not sure what to try or what to look at next. Any advice on
disabling direct connect...again? Previous recent posts indicate
that this is getting more difficult in recent versions of WO and
I'm thinking I've missed something illuminating in them. Thanks.
Bill Hatch
Macaulay Library
4-2116
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40cornell.edu
This email sent to email@hidden
_______________________________________________
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