This is the mail archive of the
kawa@sources.redhat.com
mailing list for the Kawa project.
Re: Problem with 'require' in servlet
- From: Per Bothner <per at bothner dot com>
- To: Dominique Boucher <dboucher at nuecho dot com>
- Cc: Kawa List <kawa at sources dot redhat dot com>
- Date: Tue, 30 Sep 2003 19:22:15 -0700
- Subject: Re: Problem with 'require' in servlet
- References: <000001c387bd$cd9441c0$6400a8c0@Forman>
Dominique Boucher wrote:
(define ^combinatory
(lambda (something)
(lambda (stream)
...)))
If ^combinatory is a constant, Kawa generates slightly better
code for:
(define (^combinatory something)
(lambda (stream) ...))
How do I get this file loaded automatically? I tried with the 'require'
special form, but that doesn't work. Tomcat complains with a
'ClassNotFoundException', saying that it cannot find the 'parsers' class
(which is in the same directory/package as the servlet itself). I cannot
use the 'define-namespace' form, since my combinators are not methods.
It should work if it's in the same package and "classes" directory as
the servlet, though I haven't tried that myself.
Alternatively, you can create a jar file, and place it next to the
kawa .jar.
--
--Per Bothner
per@bothner.com http://per.bothner.com/