Hello,
I'm on a 10.6 mac, running sbcl and ccl/openmcl inside slime.
I tried installing the latest svn hunchetoot from bknr-svn, replacing my old version of h'toot and the supporting libraries with the whole tree.
Then I followed the instructions for the example server:
(hunchentoot:start (make-instance 'hunchentoot:acceptor :port 4242))
(hunchentoot:define-easy-handler (say-yo :uri "/yo") (name) (setf (hunchentoot:content-type*) "text/plain") (format nil "Hey~@[ ~A~]!" name))
==> SAY-YO
Now the main page http://127.0.0.1:4242/ is OK - I see 'Welcome' and the doc tree.
But http://127.0.0.1:4242/yo gives "Resource /yo not found"
Similarly, (asdf:oos 'asdf:load-op :hunchentoot-test) loads But http://127.0.0.1:4242/hunchentoot/test give 'resource not found.'
Is there anything obvious that I'm doing wrong?
(Also, for some reason sbcl didn't like the fact that babel didn't have the positive-fixnum type defined, so I defined it. CCL was OK with babel as it was.)
Thanks, John Klein
On Mon, Feb 28, 2011 at 12:34 AM, JTK jetmonk@gmail.com wrote:
Then I followed the instructions for the example server:
(hunchentoot:start (make-instance 'hunchentoot:acceptor :port 4242))
This is the problem, you'll need to change this to:
(hunchentoot:start (make-instance 'hunchentoot:easy-acceptor :port 4242))
The easy handler framework is now optional. To use it, the easy-acceptor class must be used. I'll fix the documentation.
(Also, for some reason sbcl didn't like the fact that babel didn't have the positive-fixnum type defined, so I defined it. CCL was OK with babel as it was.)
I'm not normally using SBCL, but I quickly tried 1.0.29 on my machine and had no problem. From what you report, it seems to be a Babel problem anyway, right? Is your Babel version up to date with respect to your SBCL?
Thank you for reporting the problem! Hans
On Feb 27, 2011, at 11:17 PM, Hans Hübner wrote:
From what you report, it seems to be a Babel problem anyway, right? Is your Babel version up to date with respect to your SBCL?
I think so. I downloaded the entire bknr-svn svn archive. This is for sbcl 1.0.39 rather than 29. The absence of positive-fixnum was a minor glitch and if no one else reports it, it should be ignored, probably. Apparently the positive-fixum type is defined in alexandria, but in some complicated macro.
Thank you for fixing the docs. Hunchentoot worked before for me, so I was baffled why the new one didn't.
J.Klein
(hunchentoot:start (make-instance 'hunchentoot:easy-acceptor :port 4242))
*** - READ from #<INPUT CONCATENATED-STREAM #<INPUT STRING-INPUT-STREAM> #<IO TERMINAL-STREAM>> : #<PACKAGE HUNCHENTOOT> has no external symbol with name "EASY-ACCEPTOR"
On Mon, Feb 28, 2011 at 4:40 AM, JTK jetmonk@gmail.com wrote:
On Feb 27, 2011, at 11:17 PM, Hans Hübner wrote:
From what you report, it seems to be a Babel problem anyway, right? Is your Babel version up to date with respect to your SBCL?
I think so. I downloaded the entire bknr-svn svn archive. This is for sbcl 1.0.39 rather than 29. The absence of positive-fixnum was a minor glitch and if no one else reports it, it should be ignored, probably. Apparently the positive-fixum type is defined in alexandria, but in some complicated macro.
Thank you for fixing the docs. Hunchentoot worked before for me, so I was baffled why the new one didn't.
J.Klein
tbnl-devel site list tbnl-devel@common-lisp.net http://common-lisp.net/mailman/listinfo/tbnl-devel
On Mon, Feb 28, 2011 at 12:41 PM, Andrew Pennebaker andrew.pennebaker@gmail.com wrote:
(hunchentoot:start (make-instance 'hunchentoot:easy-acceptor :port 4242)) *** - READ from #<INPUT CONCATENATED-STREAM #<INPUT STRING-INPUT-STREAM> #<IO TERMINAL-STREAM>> : #<PACKAGE HUNCHENTOOT> has no external symbol with name "EASY-ACCEPTOR"
Are you running the Subversion trunk version of Hunchentoot?
-Hans
On Mon, Feb 28, 2011 at 4:40 AM, JTK jetmonk@gmail.com wrote:
On Feb 27, 2011, at 11:17 PM, Hans Hübner wrote:
From what you report, it seems to be a Babel problem anyway, right? Is your Babel version up to date with respect to your SBCL?
I think so. I downloaded the entire bknr-svn svn archive. This is for sbcl 1.0.39 rather than 29. The absence of positive-fixnum was a minor glitch and if no one else reports it, it should be ignored, probably. Apparently the positive-fixum type is defined in alexandria, but in some complicated macro.
Thank you for fixing the docs. Hunchentoot worked before for me, so I was baffled why the new one didn't.
J.Klein
tbnl-devel site list tbnl-devel@common-lisp.net http://common-lisp.net/mailman/listinfo/tbnl-devel
tbnl-devel site list tbnl-devel@common-lisp.net http://common-lisp.net/mailman/listinfo/tbnl-devel