<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Hi Rubens,<div><br><div><div>On 31 Oct 2014, at 02:36, Rubens Gomes &lt;<a href="mailto:rubens.s.gomes@gmail.com">rubens.s.gomes@gmail.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr"><div>I am learning Smalltalk, and I am developing a REST service on top of Pharo 3 with Latest update #30859.&nbsp; I have installed the latest SeaSide &nbsp; I have done a Manual Installation of the most recent Configuration of SeaSide.&nbsp; And I have installed the latest SeaSide30Addons.&nbsp; I would like to ask a few questions:</div></div></blockquote><div><br></div><div>When you say “latest”, which is that? Just to be sure that you did not load incompatible things:</div><div>Note that the Seaside-REST package is included in Seaside 3.1 and should not be loaded from the separate ConfigurationOfSeasideRest (which is for Seaside 3.0 only).</div><div><br></div><div>You should load the ‘REST’ group from the ConfigurationOfSeaside3, and probably also the ‘JSON’ group:</div><div><br></div><div>(ConfigurationOfSeaside3 project version: #’release3.1’) load: #(‘Core’ ‘REST’ ‘JSON’)</div><br><blockquote type="cite"><div dir="ltr"><div>1) Why do I see this error in SeaSide, and how do I fix it?&nbsp; I have the latest SeaSide running on latest Pharo 3 with Seaside-REST</div><div><br></div><div><a href="http://localhost:8080/">http://localhost:8080/</a></div><div><br></div><div>Error: you are forbidden to access “/"</div></div></blockquote><div><br></div>Which adaptor are you using? Does the Seaside tool show that it has started? Did you ever see the ‘Welcome to Seaside’ webpage?</div><div>I have the impression that Seaside was not started yet or that something else has been wrongly configured.</div><div><br><blockquote type="cite"><div dir="ltr"><div>2) I have a Seaside REST object &nbsp;that is not responding to the URL request below.</div><div><br></div><div><a href="http://localhost:8080/weight/kg?lb=10">http://localhost:8080/weight/kg?lb=10</a></div><div><br></div><div>I have the following class/instance configuration.&nbsp; Am I missing something else?</div><div><br></div><div>WARestfulHandler subclass: #WeightRestHandler</div><div>its class initialize method contains:</div><div>WAAdmin register: self at: self 'weight’.</div></div></blockquote><div><br></div><div>That does not seem to be correct. There is a ’self’ too much, it should be:<span class="Apple-tab-span" style="white-space:pre">        </span>WAAdmin register: self at: ‘weight’</div><div><div dir="ltr">Did you execute this? Mind that a class initialize method is only executed when the class is loaded.</div></div><div><br></div><blockquote type="cite"><div dir="ltr"><div>And it has an instance method "weight" with following annotation:</div><div><br></div><div>&lt;get&gt;</div><div>&lt;produces: 'text/json'&gt;</div><div>&lt;path: '/{toUnit}?{fromUnit}={aNumber}’&gt;</div></div></blockquote><br></div><div>Looks reasonable, but probably you did not add the arguments to the method itself.&nbsp;</div></div><div>But before we focus on this, let’s get the other issues out of the way and make sure Seaside works.</div><div><br></div><div>Johan</div></body></html>