Re: clsql hunchentoot problem working together




"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


.



Relevant Pages

  • clsql hunchentoot problem working together
    ... (In this post 'server' refers to hunchentoot) ... ;Following compiles loads and gets to the repl prompt ... "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 " ...
    (comp.lang.lisp)
  • Re: clsql hunchentoot problem working together
    ... (In this post 'server' refers to hunchentoot) ... Each of the following cases were put in a lisp file, ... ;Following compiles loads and gets to the repl prompt ... the clhs section on compilation is a great read. ...
    (comp.lang.lisp)
  • Re: Hunchentoot + mod_lisp2
    ... server running on my local machine, ... not my server. ... Does anyone have any experience with running Hunchentoot on Ubuntu? ... for other non-lisp stuff) apache, if you don't *need* apache, you might ...
    (comp.lang.lisp)
  • Re: CL Implementation for long running web app (Hunchentoot)
    ... | application on a VPS (virtual private server)? ... I don't know about either VPS or Hunchentoot in detail, ...
    (comp.lang.lisp)