[Web-SIG] Modjy and external packages.
py-web-sig at xhaus.com
Wed Oct 6 16:22:59 CEST 2004
I've just had an email from a modjy user who was delighted to get lucene
(the excellent java text indexing engine) up and running under
WSGI/modjy. Cool B-)
But there is one little trick that one needs to know to make such things
work. This is a trick that most jythonistas know, but if one doesn't
know it, finding why the relevant imports don't work can be infuriating.
When referencing external jars in modjy applications, it is not
sufficient to place the jar on the classpath, or to place it in the
You *also* have to inform jython about the existence of the package.
This is very simple to do, by adding a simple declaration to your
modules, like so
And that's it.
I will be releasing a micro revision to modjy at the weekend which
supports doing this through a configuration parameter, rather than the
mildly ugly approach outlined above.
 " Jakarta Lucene is a high-performance, full-featured text search
engine library written entirely in Java."
More information about the Web-SIG