Problem with PWS and Squeak2.5

Mark Guzdial guzdial at cc.gatech.edu
Fri Aug 27 11:30:54 UTC 1999


You have to recompile the UNIX VM, but the NT is already wired to be a
service via a command-line option.  Is it in the Swiki Swiki?  I'll hunt
around for this.

Mark

>Come to think of it, I think there's a command line option on the Windows VM
>to fire up Squeak automagically as a service.  I've cross-posted this to the
>squeak mailing list, so perhaps someone more knowledgeable will answer.
>
>Bob Jarvis
>The Timken Company
>
>> -----Original Message-----
>> From:	Steve Wart [SMTP:swart at home.com]
>> Sent:	Thursday, August 26, 1999 11:41 AM
>> To:	Jarvis, Robert P.
>> Subject:	RE: Problem with PWS and Squeak2.5
>>
>> Thanks, I found it minutes after I posted my question.
>>
>> But I need to run Squeak headless to do this. The FAQ implies that I need
>> to
>> recompile the VM. I thought there was a command line option to do this,
>> but
>> I can't recall what to look for.
>>
>> Do you know the parameters I need to use?
>>
>> Thanks,
>>
>> Steve
>>
>> > -----Original Message-----
>> > From: Jarvis, Robert P. [mailto:Jarvisb at timken.com]
>> > Sent: August 26, 1999 8:26 AM
>> > To: 'swart at bigserver.com'
>> > Subject: RE: Problem with PWS and Squeak2.5
>> >
>> >
>> > I think the standalone tool you're looking for is called SRVANY.EXE, or
>> > something like that, and that it comes with the NT Server Resource Kit.
>> I
>> > hope this helps.
>> >
>> > Bob Jarvis
>> > The Timken Company
>> >
>> > > -----Original Message-----
>> > > From:	Steve Wart [SMTP:swart at home.com]
>> > > Sent:	Thursday, August 26, 1999 11:23 AM
>> > > To:	squeak at cs.uiuc.edu
>> > > Subject:	RE: Problem with PWS and Squeak2.5
>> > >
>> > > Everything works fine with a 2.4 image and a 2.4 VM.
>> > >
>> > > I traced the 2.5 problem as well as I could within Squeak.
>> > > Socket class>>initializeNetwork works fine.
>> > >
>> > > The problem occurs in the changed implementation of
>> > > ConnectionQueue>>listenLoop. In 2.5, the socket is sent the message
>> > > listenOn:backlogSize: which dies when it hits the primitive.
>> > >
>> > > The 2.4 implementation is using Socket>>listenOn: which calls a
>> > different
>> > > primitive.
>> > >
>> > > Possibly Mark did not have this problem with the Mac VM because it is
>> a
>> > > little bit further along than the 2.4c VM for Windows?
>> > >
>> > > On a related note, I read the FAQ on how to set up a headless swiki at
>> > >
>> > > http://pbl.cc.gatech.edu:8080/myswiki.285
>> > >
>> > > but it seems to be a little Unix-oriented. Can anyone give me some
>> > > pointers
>> > > on setting up a headless Swiki on NT (i.e. as a service?). Do I really
>> > > have
>> > > to recompile the VM? I use NT every day, but that doesn't mean I know
>> > > anything about the OS :-). I've heard there's a tool with the
>> > NT resource
>> > > kit for making standalone apps into services, but I've never used it.
>> > >
>> > > Steve
>> > >
>> > > > -----Original Message-----
>> > > > From: Bijan Parsia [mailto:bparsia at email.unc.edu]
>> > > > Sent: August 26, 1999 7:32 AM
>> > > > To: swart at bigserver.com; squeak at cs.uiuc.edu
>> > > > Subject: RE: Problem with PWS and Squeak2.5
>> > > >
>> > > >
>> > > > --On Thursday, August 26, 1999, 6:26 AM -0700 "Steve Wart"
>> > > > <swart at home.com>
>> > > > wrote:
>> > > >
>> > > > > I am having a similar problem with the 2.4c VM and the 2.5 image
>> on
>> > > NT.
>> > > > > This could be a newbie problem (as both Kellie and I are trying
>> this
>> > > > > for the first time), because of either not understanding the
>> > > > documentation
>> > > > > or because something has changed that affects new swikis but
>> > > > not existing
>> > > > > ones.
>> > > > >
>> > > > > Or it could be a problem in using the 2.5 image with the 2.4c VM?
>> > > >
>> > > > This is my personal guess. If you could try it with a 2.4 image,
>> > > > that would
>> > > > help enormously.
>> > > >
>> > > > (I *believe* the 2.5 image & vm have some "conditional"
>> > support for new
>> > > > socket prims. I'm not sure that PWS is fully cognizant of them.)
>> > > >
>> > > > > Here are the steps I am following (from PWS howToStart)
>> > > > >
>> > > > > 1. Download the Server folder from
>> > > > > 	http://guzdial.cc.gatetech.edu/st/server.tar
>> > > > > 2. Untar into a directory called Server in Squeak's working
>> > directory
>> > > > > 3. Change ServerAction(class)>>serverDirectory as required
>> > > > > 4. [PWS initializeAll]
>> > > > > 5. Create a subdirectory in Server folder (I called it 'fortune')
>> > > > > 6. [SwikiAction setUp: 'fortune']
>> > > > > 7. [PWS serveOnPort: 8080 loggingTo: 'swiki-log.txt'] fork
>> > > >
>> > > > Quick point. "fork" is unnecessary, and, indeed, doesn't do
>> anything.
>> > > >
>> > > > But given that it *looks* like a problem with processes, you might
>> try
>> > > it
>> > > > without forking and see what happens.
>> > > >
>> > > > Also, try starting up PWS *after* initializeAll but *without*
>> > > SwikiAction
>> > > > setup. My guess is that you'll get the crash, but it'd be nice to
>> > > confirm.
>> > > >
>> > > > I strongly recommend working with an older PWS first!
>> > > >
>> > > > Cheers,
>> > > > Bijan.
>> > > >
>> > > >
>> >


--------------------------
Mark Guzdial : Georgia Tech : College of Computing : Atlanta, GA 30332-0280
(404) 894-5618 : Fax (404) 894-0673 : guzdial at cc.gatech.edu
http://www.cc.gatech.edu/gvu/people/Faculty/Mark.Guzdial.html





More information about the Squeak-dev mailing list