<div dir="ltr"><div>Oooh ok. You&#39;re right. This is seaside behaviour, nothing is related to Zinc:<br><br>WAAdmin applicationExceptionHandlingDefaults at: #exceptionHandler &quot;--&gt; WAHtmlErrorHandler&quot;. <br><br>
<br></div><div>I&#39;ve registered WAWalkbackErrorHandler as the exception handler for my app and it is now working. Here&#39;s the simplest setting to make it work:<br><br></div><div>CCRootComponent class&gt;&gt;initialize<br>
    | app |<br>    super initialize.<br>    app := WAAdmin register: self asApplicationAt: &#39;my-super-app&#39;.<br>    app exceptionHandler: WAWalkbackErrorHandler.<br></div><div><br></div><div>Is the WAHtmlErrorHandler the new exception handler in Seaside or did I configure something wrong?<br>
<br></div><div>Thanks a lot Sven :)<br></div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Apr 16, 2014 at 11:14 AM, Sven Van Caekenberghe <span dir="ltr">&lt;<a href="mailto:sven@stfx.eu" target="_blank">sven@stfx.eu</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi François,<br>
<br>
I suspect you are confusing two aspects.<br>
<br>
Zinc can catch errors in its handler and report them in a user friendly page (standard behaviour) with the proper response code, or it can let the error through so that you end up in the debugger (debugMode: true) - see ZnSingleThreadedServer&gt;&gt;#handleRequestProtected:<br>

<br>
However, when using Seaside, all this is not necessary. Zinc is bit of overkill in this case, because Seaside wants to do more itself, including the error handling.<br>
<br>
In my image, this all works fine and as expected (as per the Seaside book / the standard instructions). You should have WAWalkbackErrorHandler as #exceptionHandler.<br>
<br>
Sven<br>
<br>
BTW, at first sight, your code looks OK to me.<br>
<div class="HOEnZb"><div class="h5"><br>
On 16 Apr 2014, at 10:55, François Stephany &lt;<a href="mailto:tulipe.moutarde@gmail.com">tulipe.moutarde@gmail.com</a>&gt; wrote:<br>
<br>
&gt; Actually it works fine but I still doesn&#39;t have a debugger popping up in case of error. I still get a 500 page with the error message. This is how I start it:<br>
&gt;<br>
&gt;     CCZincStaticServerAdaptor startOn: 8080.<br>
&gt;     CCZincStaticServerAdaptor default server debugMode: true.<br>
&gt;<br>
&gt; Any thing that I&#39;m missing?<br>
&gt;<br>
&gt;<br>
&gt; On Tue, Apr 15, 2014 at 6:06 PM, François Stephany &lt;<a href="mailto:tulipe.moutarde@gmail.com">tulipe.moutarde@gmail.com</a>&gt; wrote:<br>
&gt; I quickly put this together:<br>
&gt; It will serve stuff placed in the assets directory (which must sit next to the image). Nothing really fancy but does the job:<br>
&gt;<br>
&gt; ZnSeasideStaticServerAdaptorDelegate subclass: #CCStaticServerDelegate<br>
&gt;     instanceVariableNames: &#39;&#39;<br>
&gt;     classVariableNames: &#39;&#39;<br>
&gt;     category: &#39;Cocotte-Web&#39;<br>
&gt;<br>
&gt; CCStaticServerDelegate&gt;&gt;handleRequest: znRequest<br>
&gt;     znRequest url firstPathSegment = &#39;assets&#39;<br>
&gt;         ifTrue: [<br>
&gt;             znRequest url removeFirstPathSegment. &quot;eats the /assets/&quot;<br>
&gt;             ^self staticDelegate handleRequest: znRequest ]<br>
&gt;         ifFalse: [  ^self adaptor process: znRequest ]<br>
&gt;<br>
&gt; CCStaticServerDelegate&gt;&gt;initializeStaticDelegate<br>
&gt;     | assetDirectory |<br>
&gt;     assetDirectory := (FileLocator imageDirectory / &#39;assets&#39;).<br>
&gt;     ^ ZnStaticFileServerDelegate new<br>
&gt;         directory: (ZnFileSystemUtils directory: assetDirectory)  ;<br>
&gt;         yourself<br>
&gt;<br>
&gt; And the Adaptor:<br>
&gt;<br>
&gt; ZnZincStaticServerAdaptor subclass: #CCZincStaticServerAdaptor<br>
&gt;     instanceVariableNames: &#39;&#39;<br>
&gt;     classVariableNames: &#39;&#39;<br>
&gt;     category: &#39;Cocotte-Web&#39;<br>
&gt;<br>
&gt; ZnZincStaticServerAdaptor&gt;&gt;defaultDelegate<br>
&gt;     ^ CCStaticServerDelegate with: self<br>
&gt;<br>
&gt;<br>
&gt; On Sun, Apr 13, 2014 at 3:16 PM, Johan Brichau &lt;<a href="mailto:johan@inceptive.be">johan@inceptive.be</a>&gt; wrote:<br>
&gt; To serve static files from a directory during development, there still is the Seaside-Filesystem package.<br>
&gt; -&gt; Load the &#39;Filesystem&#39; group from ConfigurationOfSeaside3<br>
&gt;<br>
&gt; But I also do intend to replace it with serving static files from Zinc directly though. But, in the meantime, it&#39;s doing the job.<br>
&gt;<br>
&gt; Johan<br>
&gt;<br>
&gt; On 10 Apr 2014, at 08:39, François Stephany &lt;<a href="mailto:tulipe.moutarde@gmail.com">tulipe.moutarde@gmail.com</a>&gt; wrote:<br>
&gt;<br>
&gt; &gt; Ok. I&#39;ve got quite a bit of external files, I&#39;ll roll my own ;)<br>
&gt; &gt;<br>
&gt; &gt; thanks !<br>
&gt; &gt; ​<br>
&gt; &gt; _______________________________________________<br>
&gt; &gt; seaside mailing list<br>
&gt; &gt; <a href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a><br>
&gt; &gt; <a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; seaside mailing list<br>
&gt; <a href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a><br>
&gt; <a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; seaside mailing list<br>
&gt; <a href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a><br>
&gt; <a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>
<br>
_______________________________________________<br>
seaside mailing list<br>
<a href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a><br>
<a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>
</div></div></blockquote></div><br></div>