Re: SISCweb questions

"Gerardo Horvilleur" <[email protected]> Tue, 11 Mar 2008 08:08:50 -0600
Newsgroups gmane.comp.java.sisc.user
Message-ID <[email protected]>
Thank you all  for the the explanations and suggestions. They all have
been very useful.

On Mon, Mar 10, 2008 at 10:39 PM, Alessandro Colomba <[email protected]> wrote:
> Gerardo,
>
>  Nikita has already given an excellent reply, but I would like to add a
>  couple of items.
>
>  The (class-path-extension-append! '("WEB-INF/scm/")) expression does
>  not do what you would expect it to because the REPL currently runs
>  with the current-url of the tomcat process.
>
>  I could have the REPL start in the  servlet context path, but it may
>  be still inappropriate when not running in an exploded war. I'll take
>  a look.
>
>  As to require-extension not reloading code, you will find that  (load
>  (find-resource "examples/test.scm")) will do what you expect.
>
>  In general, the REPL-based vanilla edit-compile-run cycle can benefit
>  from tools such as Emacs+Quack or Eclipse+Schemeway.
>
>  With both, you can simply send procedure or module definitions from
>  the current buffer to the REPL via the TCP/IP socket -- independently
>  of the file location.  Of course, because the project needs to be
>  deployable, you would still want to want to load the appropriate files
>  from the  on-init-sexp section of the web.xml file. (See the SISCweb
>  examples.)
>
>  Also, restarting the appserver is generally unnecessary. As long as
>  there are no open REPLs, you can simply force a servlet context reload
>  (usually by touching the web.xml file). SISCweb will gracefully
>  reload.
>
>  I hope these indications are useful. Please feel free to post if you
>  encounter any other obstacle.
>  ___
>  Alessandro
>
>
>
>  On Sun, Mar 9, 2008 at 12:07 PM, Gerardo Horvilleur <[email protected]> wrote:
>  > Hi,
>  >
>  >  I'm interested in using SISCweb for a project. Besides the
>  >  continuations style of web programming I'm also interested in being
>  >  able to prototype code and test it without having to restart Tomcat.
>  >  But I haven't been able to understand how I should do it.
>  >  When I use telnet to connect to the REPL I try to do something line this:
>  >
>  >  (class-path-extension-append! '("WEB-INF/scm/"))
>  >  (require-extension (lib examples/test))
>  >
>  >  And it responds:
>  >  Error: library examples/test not found
>  >
>  >  I discovered that it is appending "WEB-INF/scm/" to what my current
>  >  directory was when I started Tomcat, instead of using the webapp's
>  >  main directory. As a workaround I can do:
>  >
>  >  (class-path-extension-append!
>  >  '("file:/Users/mago/progs/apache-tomcat-6.0.14/webapps/pruebas/WEB-INF/scm/"))
>  >
>  >  And now, require-extension works.
>  >
>  >  But then I have another problem. This will work only the first time I
>  >  want to load the library and import the module. Afterwards, as SISC
>  >  knows it has already loaded that library and imported the module, I
>  >  can't load the file again to test the changes. How should I do this?
>  >
>  >  Thank you,
>  >
>  >  --
>  >  Gerardo Horvilleur
>  >  [email protected]
>  >  5813-0830
>  >
>
>
> >  -------------------------------------------------------------------------
>  >  This SF.net email is sponsored by: Microsoft
>  >  Defy all challenges. Microsoft(R) Visual Studio 2008.
>  >  http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
>  >  _______________________________________________
>  >  Sisc-users mailing list
>  >  [email protected]
>  >  https://lists.sourceforge.net/lists/listinfo/sisc-users
>  >
>



-- 
Gerardo Horvilleur
[email protected]
5813-0830

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/