Re: Help: The requested application was not found on this server
Re: Help: The requested application was not found on this server
- Subject: Re: Help: The requested application was not found on this server
- From: Lachlan Deck <email@hidden>
- Date: Wed, 9 Nov 2005 09:33:11 +1100
Hi there,
On 09/11/2005, at 2:47 AM, email@hidden wrote:
I am a newbie and trying to play around with HTTPS with tips from
Practical WebObjects and Joshua Marker's WebObjects for Mac OS X.
After having some issues, I decided to run the application in
"deployment" mode to see if that was my problem.
I've been through this... have a look in the archives for the thread
"Deployment rather than development mode" for further info...
http://search.lists.apple.com/?cmd=Search!
&fmt=long&form=extended&m=all&ps=50&q=Deployment+rather+than
+development+mode&sp=1&ul=webobjects%&wf=0020&wm=wrd&s=DRP
I tried to switch my Xcode settings to run my WOApp (it now even a
new simple Hello World Application).
I added the following launch arguments
-DWODirectConnectEnabled=false
-DWOHost=127.0.0.1
You shouldn't need the WOHost argument and, in fact, it might be the
cause of your woes. If you're developing in deployment mode, you'll
want to utilise the same host (which happens by default without the
argument) as that used by the WebObjects daemons. e.g., http://kevs-
mac.local/
In my Properties file (under the Resources group in the project) I
have something like the following for developing in deployment mode:
WODirectConnectEnabled=false
WOAutoOpenInBrowser=false
WOPort=49303
#WOHost=commented out as not needed
Now...
1) Check to see if wotaskd is running:
$ sudo lsof -i tcp:1085
Password:
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
java 158 root 4u IPv6 0x013c0100 0t0 TCP *:webobjects
(LISTEN)
If you get no output - then it's not. Check to see whether the
WebObjects startup item is actually launching anything. When I
recently upgraded to the latest Xcode environment from 2.0 the
startup item had the important things commented out... so it wasn't
doing anything useful. I think the Xcode 2.0/WO5.2.4 startup item had
its StopService code wrong. I've attached my 5.2.4 startup item which
fixes that problem.
The bits that are uncommented below are what you want for the
StartService.
$ sudo nano /System/Library/StartupItems/WebObjects/WebObjects
<...>
####
# This set of invocations will launch wotaskd and
# (optionally) Monitor as root
"$WOSERVICE" -appPath "$WOTASKD" >/var/log/webobjects.log 2>&1 &
# Uncomment the next line to start Monitor as root at boot time
"$WOSERVICE" -appPath "$WOJAVAMONITOR" -WOPort 56789 -
WOAutoOpenInBrowser NO >>/var/log/webobjects.lo$
####
<...>
If you copy the attached startup item script to its proper location:
$ cd /System/Library/StartupItems/WebObjects
$ sudo mv WebObjects WebObjects.bak
$ sudo tar xzvf ~/Desktop/WebObjects.tar.gz
Then,
$ sudo chown -R root:wheel /System/Library/StartupItems/WebObjects
$ sudo chmod u=rwx,go=rx /System/Library/StartupItems/WebObjects/
WebObjects
$ sudo /System/Library/StartupItems/WebObjects/WebObjects restart
Now try again (without the WOHost argument)...and the resulting url
should be something like:
http://kevs-mac.local/cgi-bin/WebObjects/TestApp.woa/-49303
with regards,
--
Lachlan Deck
Attachment:
WebObjects.tar.gz
Description: GNU Zip compressed data
_______________________________________________
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