<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Hi<br>
<br>
I'm having a reoccurance of an error I had that was fixed in Seaside
3.1.3.<br>
Fresh Pharo4, load, load Rest, create handler, create method,
register, and its not found.<br>
Complete code to recreate below:<br>
<br>
<tt>|aClass|</tt><tt><br>
</tt><tt>Gofer new</tt><tt><br>
</tt><tt>
url:'<a class="moz-txt-link-freetext" href="http://www.smalltalkhub.com/mc/Seaside/MetacelloConfigurations/main">http://www.smalltalkhub.com/mc/Seaside/MetacelloConfigurations/main</a>';</tt><tt><br>
</tt><tt> package: 'ConfigurationOfSeaside3';</tt><tt><br>
</tt><tt> load.</tt><tt><br>
</tt><tt><br>
</tt><tt>((#ConfigurationOfSeaside3 asClass) project latestVersion)
load; load: #('REST').</tt><tt><br>
</tt><tt><br>
</tt><tt>aClass := ((#WARestfulHandler asClass) subclass:
#WATestRestAPI</tt><tt><br>
</tt><tt> instanceVariableNames: ''</tt><tt><br>
</tt><tt> classVariableNames: ''</tt><tt><br>
</tt><tt> category: 'Seaside-Test-REST').</tt><tt><br>
</tt><tt> </tt><tt><br>
</tt><tt>aClass compile: 'get </tt><tt><br>
</tt><tt><get></tt><tt><br>
</tt><tt>self requestContext</tt><tt><br>
</tt><tt> respond: [:t1 | </tt><tt><br>
</tt><tt> t1 contentType: ''text/plain''.</tt><tt><br>
</tt><tt> t1 nextPutAll: ''test'']'.</tt><tt><br>
</tt><tt>(#WAAdmin asClass) register: aClass at: 'testapi'.</tt><tt><br>
</tt><tt><br>
</tt><tt>(((#ZnZincServerAdaptor asClass) manager: (#WAServerManager
asClass) default) port: 4000) start.</tt><tt><br>
</tt><tt><br>
</tt><tt>self assert: (ZnEasy get: '<a class="moz-txt-link-freetext" href="http://localhost:4000/testapi">http://localhost:4000/testapi</a>')
isNotFound not</tt><br>
<div class="moz-signature">-- <br>
<div style="font-family: 'Century Gothic',helvitica, sans-serif;
font-style: italic; font-size: 10px;">
Gareth Cox <br>
IT Manager/Developer <br>
Inspired Org (PTY) Ltd <br>
email: <a href="mailto:gareth@inspired.org">gareth@inspired.org</a>
<br>
</div>
</div>
</body>
</html>