[aida] URL resolver and registering root objects

Janko Mivšek janko.mivsek at eranova.si
Thu Jan 15 14:28:09 CET 2009

Dear all,

Because of many problems with this registration let me write down few 
steps how to diagnose and solve the problem

1. site named 'aidademo' exist?

   - inspect (AIDSite named: 'aidademo'), it should return anAIDASite,
   - if not, inspect SwazooServer singleton sites and instvar #name for
     each site

2.on current Scribo one-click demo the site is named 'scribo' and when 
you do SwazooAida demoStart, another site 'aidademo' is created, with a 
host:ip:port combination, which clashes with 'scribo' one. To solve the 

   - inspect (AIDASite named: 'scribo') uriPattern first
   - change port to 8889
   - doit SwazooServer stop; start

Now you are running two sites at once, http://localhost:8888 for 
aidademo and http://localhost:8889 for scribo

3. if above is correct, you should register root object without a problem:

   (AIDASite named: 'aidademo') urlResolver
	registerURL: '/url.html' forObject: myObject

Be sure of course that myObject is not nil!

Best regards

Janko Mivšek
Smalltalk Web Application Server

More information about the Aida mailing list