Re: "No Instance available" message
Re: "No Instance available" message
- Subject: Re: "No Instance available" message
- From: Chuck Hill <email@hidden>
- Date: Fri, 30 Jun 2006 16:33:35 -0700
Jerry! You're alive! I haven't see you drop by in so long I was
beginning to wonder. :-)
On Jun 30, 2006, at 4:06 PM, Jerry W. Walker wrote:
I've been running in development mode for weeks with no problems.
I've been running "-WODirectConnectEnabled NO" for several months.
Today, when trying to test my app, I got a "No instance available"
message.
I get that a LOT on one of my partitions with an older Xcode and WO
on it. sudo apachectl restart is the only thing that fixes it for
me. I don't really understand why restarting Apache affects this,
but it works.
It seems that none of my apps with "-WODirectConnectEnabled NO"
set were being found, though I had no problem starting up a
WODirectConnectEnabled app as a test.
After some investigation, I think that my hostname was reset, so
setting my apps to "-DWOHost=jwpismo" has solved the immediate
problem and I am back in working mode. However, the whole episode
leads to some questions to solicit from the community's collected
wisdom.
Yes, the host name or network config does seem to be involved.
Last night I did a manual iTunes update on my machine, but that's
the only software update I've done in over 3 weeks. I've made no
other system configuration changes, nor changed any of the app's
(or Xcode's) parameters for several days (perhaps weeks). I even
avoided the recent Mac OS X v10.4.7 update because it caused some
problems for someone I know and I want more info before I apply it
to my development machine.
I'm running Mac OS X 10.4.6 on a G4 laptop (upgraded Pismo,
actually) with WebObjects 5.3.1 and Xcode 2.3.
Since I often connect this machine to 2 - 3 different networks a
day (including running on the commuter train in standalone mode
twice a day) I would like a configuration that saves me from having
to restart apache or wotaskd.
Sigh. Yes. That would be ever so nice.
It seems to me that I had resolved this issue by hardcoding
"localhost" in /etc/hostconfig and setting "-DWOHost=localhost",
but now I find that the hostname line is:
HOSTNAME=-AUTOMATIC-
So, my questions are:
* Does anyone know if the latest iTunes update resets the
hostconfig file or otherwise mucks with the hostname?
* What's the latest black magic incantation for setting all the
appropriate hostname parameters so I can just run my apps with
WODirectConnectEnabled off?
I launch the app with -DWOHost=localhost _and_ I launch wotaskd with
this also. Other than the Apache restarts on that one partition,
this works just fine for me. IIRC, my Apache virtual host is also
set to localhost and not the Bonjour name.
* Would the following work without causing other issues?
- set /etc/hostconfig's HOSTNAME line to localhost (What's
the syntax for that, by the way? double quotes? single quotes? no
quotes?)
I don't have a HOSTNAME entry in my hostconfig files
- leave the System Preferences Sharing panel set to "jwpismo"
so my computer can be seen with Bonjour
- set the runtime parameter "-DWOHost=localhost" in all my WO
apps
- other settings?
wotaskd is the only other thing that I have changed.
Many thanks to anyone who takes the time out of their holiday
weekend to respond to this.
Have a good long weekend Jerry!
Chuck
--
Coming sometime... - an introduction to web applications using
WebObjects and Xcode http://www.global-village.net/wointro
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@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden