<html><head><base href="x-msg://136/"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div>On Jun 16, 2010, at 1:59 PM, a wrote:</div><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div bgcolor="#ffffff"><div><font face="Arial" size="2">Hi.</font></div><div><font face="Arial" size="2"></font> </div><div><font face="Arial" size="2">I have this piece of code:</font></div><div><font face="Arial" size="2"></font> </div><div><font face="Arial" size="2">-----------------------------------------------------------------------------</font></div><div><font face="Arial" size="2">(defpackage :web<br> (:use<br> :common-lisp<br> :hunchentoot<br> :cl-who<br> :parenscript))</font></div><div> </div><div><font face="Arial" size="2">(in-package :web)</font></div><div> </div><div><font face="Arial" size="2">(start (make-instance 'acceptor :port 8000))</font></div><div> </div><div><font face="Arial" size="2">(push (create-prefix-dispatcher "/index.html" 'index) *dispatch-table*)</font></div><div> </div><div><font face="Arial" size="2">(defun index ()<br> (with-html-output-to-string (str)<br> (:html<br> (:head<br> (:title "Test page"))<br> (:body<br> (dotimes (x 10)<br> (htm<br> (:p "Text")))))))</font></div><div><font face="Arial" size="2"></font> </div><div><font face="Arial" size="2">------------------------------------------------------------------------</font></div><div><font face="Arial" size="2"></font> </div><div><font face="Arial" size="2">and when I go to<span class="Apple-converted-space"> </span><a href="http://localhost:8000/index.html">http://localhost:8000/index.html</a> I get an error:</font></div><div><font face="Arial" size="2"></font> </div><div><font face="Arial" size="2">---------------------------------------------------------</font></div><div>Internal Server Error</div><div>An error has occured.</div><div>------------------------------------------------------------</div><div> </div><div><font face="Arial"><font size="2">Where is the error in my code ?</font></font></div></div></span></blockquote><div><br></div><div><span class="Apple-tab-span" style="white-space:pre"> </span>This works for me using Clozure 64-bit on OSX, evaluating each form in Slime. What Lisp and OS are you using?</div><br><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div bgcolor="#ffffff"><div><font face="Arial"><font size="2">And where is the hunchentoot error log ?</font></font></div></div></span></blockquote><br></div><div><span class="Apple-tab-span" style="white-space:pre"> </span>You'll need to set hunchentoot:*message-log-pathname*.</div><div><br></div><div>Regards,</div><div><br></div><div>Patrick</div><div><br></div></body></html>