The instructions are here: http://web2py.com/book/default/chapter/12#Jython
Make sure you have zxJDBC. It works (some of us have tested it) but there are some know problems and I would not recommend it in production. One problem is a known problem with Java regular expression parses that Sun marked as "won't fix". It is not a web2py specific problem but can cause some web2py templates send enter into a loop. Massimo On Nov 26, 4:15 pm, pierreth <pierre.thibau...@gmail.com> wrote: > Hello, I tried to use Jython with web2py. I am telling the story in my > blog: > > http://pierrethibault.posterous.com/using-sqlite-with-java-on-linux > > So far, I have this error: > > Traceback (most recent call last): > File "/media/pierreth-backup/work/web2py/gluon/restricted.py", line > 188, in restricted > exec ccode in environment > File "/media/pierreth-backup/work/web2py/applications/welcome/models/ > db.py", line 15, in <module> > db = DAL('sqlite://storage.sqlite') # if not, use SQLite or > other DB > File "/media/pierreth-backup/work/web2py/gluon/sql.py", line 4051, > in DAL > raise RuntimeError, "%s (tried 5 times)" % exception > RuntimeError: global name 'sqlite3' is not defined (tried 5 times) > > Error snapshot help Detailed traceback description > > <type 'exceptions.RuntimeError'>(global name 'sqlite3' is not defined > (tried 5 times)) > > How far have you been with Jython and web2py? Is it possible to make > the two work together?