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: Thu, 10 Nov 2005 04:32:03 +1100
Hi Kev,
On 10/11/2005, at 2:29 AM, email@hidden wrote:
I did find your research on the list previously, but being new, I
was not sure if anything was actually solved.
It was for me ;-) but your problem may be slightly different so we'll
follow the steps Chuck outlined (2nd Oct 2005)
Thanks also for sending the WebObjects Startup Script.... indeed
mine would not restart stop properly (as was evidenced in my
previous webobjects.log.1) file. After following your instructions
I am able to start, stop and restart WebObjects without error
messages.
<...>
Good. That's Step #1.
Step #2, check the permissions of the config file. With wotaskd
running as root it needs to be owned by root with permissions as
follows...
$ ls -l /Library/WebObjects/Configuration/
total 8
-rw-r--r-- 1 root admin 351 Nov 5 10:30 SiteConfig.xml
Next I recreated a new WebObjects Application from Xcode 2.0
(called it simply TestApp, again, no eomodel). I just added text
"Hello World" to the Main.wo page. <...> The page appears in Safari
<...>
Now, I put in the following to the properities
WODirectConnectEnabled=false
WOAutoOpenInBrowser=false
WOPort=49303
I rebuilt and run (Build and Go) the application with Xcode.
Just for fun, try trashing the build directory, just in case there's
something going on with Xcode's indexing, and re-running.
The following is the tail end of the run log
[2005-11-09 10:16:41 EST] <main> Created adaptor of class
WODefaultAdaptor on port 49303 and address kevins-computer.local/
10.10.10.80 with WOWorkerThread minimum of 16 and maximum of 256
[2005-11-09 10:16:41 EST] <main> NSBundle is unable to find
"ExtensionsForResources.plist" in the main bundle. Ignoring
optional configuration file.
[2005-11-09 10:16:41 EST] <main> Cannot use rapid turnaround.
Please start Xcode and open the project for this application.
[2005-11-09 10:16:41 EST] <main> Creating LifebeatThread now with:
TestApp 49303 kevins-computer.local/10.10.10.80 1085 30000
Welcome to TestApp!
[2005-11-09 10:16:41 EST] <main> The URL for webserver connect is:
http://kevins-computer.local/cgi-bin/WebObjects/TestApp.woa/-49303
[2005-11-09 10:16:41 EST] <main> null
[2005-11-09 10:16:41 EST] <main> Waiting for requests...
I point my browser to http://kevins-computer.local/cgi-bin/
WebObjects/TestApp.woa/-49303
and still get a page with the message:
"The requested application was not found on this server."
Step #3 [Quote]: "Run your application. Get the No Instance
Available message. Then go to http://kevins-computer.local:1085/.
You _should_ get an HTML page detailing the setup and running apps on
that machine. Look near the bottom for a part that looks like this:
Adaptor Config as sent to Local WOAdaptors - All Running Applications
and Instances
<?xml version="1.0" encoding="ASCII"?>
<adaptor>
<application name="TestApp">
<instance id="-51536" port="51536" host="Paris.local"/>
</application>
</adaptor>
That is your app running in dev mode. Is it there? [/Quote]
Step #4, get some logging messages...
$ sudo cat /tmp/WebObjects.log
$ sudo cat /tmp/logWebObjects
$ sudo chmod a+w /tmp/WebObjects.log
Now rebuild the app and hit the front page a couple of times. Then
$ cat /tmp/WebObjects.log
What does it say?
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