Re: "No Instance available" message
Re: "No Instance available" message
- Subject: Re: "No Instance available" message
- From: Chuck Hill <email@hidden>
- Date: Tue, 4 Jul 2006 15:08:59 -0700
On Jul 1, 2006, at 8:38 PM, Jerry W. Walker wrote:
Hi, Chuck,
On Jun 30, 2006, at 7:33 PM, Chuck Hill wrote:
Jerry! You're alive! I haven't see you drop by in so long I was
beginning to wonder. :-)
Yeah, actually still alive, without interruption. :-) But I've
been very busy and at a client location where I have no Internet
access for most of the day!
Huh? What? Shudder.
A bummer for a real Internet addict. Worse, it's much less
interesting replying to WO-list calls for help when they're a few
hours old and they've already had several good answers. I was able
to sass the ever helpful Art Isbell recently though, in a way he
didn't deserve (sorry, Art).
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.
Darn, I was hoping for a slightly stronger mojo. Couldn't someone
give me all the ingredients for my red flannel bag?
You have a Pismo. Count yourself lucky.
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.
By launching wotaskd with a host name, you're suggesting adding the
line:
WOHost=localhost
to the /System/Library/WebObjects/JavaApplications/wotaskd.woa/
Contents/Resources/Properties file?
Yes, that is exactly what I have done.
* 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
Then I'll presume that leaving it set to automatic will be fine.
I think so.
- 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.
I'll try that tonight.
Any luck?
Many thanks to anyone who takes the time out of their holiday
weekend to respond to this.
Have a good long weekend Jerry!
I plan to. I understand that you Canadians also observe the 4th of
July ...
... you just don't think of it as a holiday. :-)
<rim shot!/>
Ours is the 1st of July. As we laid a beating* on you on the Plains
of Abraham, we get to celebrate first. ;-)
Happy 4th of July!
Chuck
* http://en.wikipedia.org/wiki/Battle_of_the_Plains_of_Abraham
--
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