This is the mail archive of the
kawa@sources.redhat.com
mailing list for the Kawa project.
RE: Problem with 'require' in servlet
- From: "Dominique Boucher" <dboucher at nuecho dot com>
- To: "'Chris Dean'" <Chris dot Dean at sokitomi dot com>
- Cc: "'Kawa List'" <kawa at sources dot redhat dot com>
- Date: Tue, 30 Sep 2003 21:58:24 -0400
- Subject: RE: Problem with 'require' in servlet
Chris,
I use a mix of (1) define-class -generated classes and (2) modules. Let
me be more explicit.
I have a number of Scheme classes defined using define-simple-class.
There is only one such class per Scheme file.
Also, for libraries of functions (like my parser combinators), I instead
put them in a module like that:
(module-name <parsers>)
(module-static #t)
(define ^combinatory (lambda ...))
And yes, parsers.class is in my CLASSPATH. In fact, when I try the same
think in the Kawa interpreter, everything works very nicely. But when I
run (almost) the same thing in the servlet container, I get the class
not found exception. Even if all files are in the WEB-INF/classes
directory...
Dominique
-----Original Message-----
From: kawa-owner@sources.redhat.com
[mailto:kawa-owner@sources.redhat.com] On Behalf Of Chris Dean
Sent: 30 septembre 2003 21:48
To: Dominique Boucher
Cc: Kawa List
Subject: Problem with 'require' in servlet
> It instantiates some classes defined in Scheme.
How are those classes compiled and defined? Are they (module-static #t)
files? I'm of course assuming that parsers.class is in your CLASSPATH.
Regards,
Chris Dean