Re: clsql hunchentoot problem working together
- From: "Andreas Thiele" <nospam@xxxxxxxxxx>
- Date: Mon, 31 Dec 2007 12:17:58 +0100
"lisp linux" <gmail.com@xxxxxxxxxx> schrieb im Newsbeitrag news:U96dnYTxKelzr-XanZ2dnUVZ_qCunZ2d@xxxxxxxxxxxxxx
Hi
I am having trouble figuring out where my problem is.
I have already spent more than a day trying to solve it myself.
(In this post 'server' refers to hunchentoot)
Each of the following cases were put in a lisp file,
loaded using C-c C-k .
Between each test run, I deleted all generated fasl and "*.so" files
and restarted emacs and slime (and hence sbcl).
This is on linux ( FC8 ) sbcl 1.0.10
Please please help either reproducing or solving
--------------------------------------------------------------
;Following works and starts the server
(eval-when (:compile-toplevel :load-toplevel :execute)
;(asdf:operate 'asdf:load-op 'clsql)
(asdf:operate 'asdf:load-op 'hunchentoot))
(defpackage :clsqlhunch)
(cl:in-package :clsqlhunch)
(cl:defvar *server* (hunchentoot:start-server :port 7777))
----------------------------------------------------
;Following compiles loads and gets to the repl prompt
;but the server does not seem to be up
(eval-when (:compile-toplevel :load-toplevel :execute)
(asdf:operate 'asdf:load-op 'clsql)
(asdf:operate 'asdf:load-op 'hunchentoot))
(defpackage :clsqlhunch)
(cl:in-package :clsqlhunch)
(cl:defvar *server* (hunchentoot:start-server :port 7777))
----------------------------------------------
;following gives the error
;-- SB-INT:SIMPLE-READER-PACKAGE-ERROR at 179 (line 8, column 45) on #<SB-SYS:FD-STREAM for "file ;/home/antony/temp/problem.lisp"
{1005CAD601}>:
; package "HUNCHENTOOT" not found
(asdf:operate 'asdf:load-op 'clsql)
(asdf:operate 'asdf:load-op 'hunchentoot)
(defpackage :clsqlhunch)
(cl:in-package :clsqlhunch)
(cl:defvar *server* (hunchentoot:start-server :port 7777))
------------------------------------------------
;following gets me to repl prompt
(asdf:operate 'asdf:load-op 'clsql)
(asdf:operate 'asdf:load-op 'hunchentoot)
(defpackage :clsqlhunch)
(cl:in-package :clsqlhunch)
;(cl:defvar *server* (hunchentoot:start-server :port 7777))
;at the repl typing
(cl:in-package :clsqlhunch)
(cl:defvar *server* (hunchentoot:start-server :port 7777))
;start server ok
---------------------------------------------------------
Basically the problem seems to be -
"I can't figure out what incantation is needed to have the start server code within a lisp file when both clsql and hunchentoot
are 'require'd "
The actual code tries to use asdf, but I'd like understand the basics behind why I *can* start the http server reliably on repl,
but not by loading a lisp file even though it does seem to do that just fine when clsql is not loaded.
FWIW I am a CL newbee.
-Antony
Hi Antony,
I am not familiar with those programs, just a hint: cl:in-package looks strange to me.
Seems you should setup proper use of standard packages, perhaps by :use common-lisp?
Just a guess.
Andreas
.
- References:
- clsql hunchentoot problem working together
- From: lisp linux
- clsql hunchentoot problem working together
- Prev by Date: Re: Curses alternative for Lisp?
- Next by Date: [ANN] ECL 0.9j-p1
- Previous by thread: Re: clsql hunchentoot problem working together
- Next by thread: Re: clsql hunchentoot problem working together
- Index(es):
Relevant Pages
|