Announcement: The next Jython release changes javax.servlet to jakarta.servlet.

Stefan Richthofer <[email protected]> Thu, 5 Mar 2026 17:05:17 +0100
Newsgroups gmane.comp.lang.jython.user,gmane.comp.lang.jython.devel
Message-ID <CACQYzF++reQRGyj2Kec0X4HRBaZ-bAUO10vzx3nXZbrNTFYGbg@mail.gmail.com>
Dear Jython users and developers,

with this email I announce that the next Jython release 2.7.5 will
change javax.servlet namespace to jakarta.servlet. If you rely on this
for a legacy setup, the new release won't work for you as a drop-in
replacement out of the box. Please be sure to check your setup
carefully before upgrading. (As of this writing, no release date is
settled. This is just an early warning to minimize surprises.)

For this change, we are relocating the classes

 - org.python.util.PyServlet
 - org.python.util.PyFilter
 - org.python.util.PyServletInitializer

to a new package org.python.servlet.
AFAIK, frameworks usually locate servlet classes automatically, so
this should not cause much trouble. Still, please check that your
setup accommodates this change if necessary. The relocation allows you
to add the old classes (with javax-based imports) on top of jython.jar
to the classpath without name conflict. In some cases, this may be
sufficient to retain workability of a legacy setup. For details, see
issue #382 and pull-request #414.

That said, please check the list of open issues to see if there is
something you consider a release blocker or something you might want
to provide a pull-request for. E.g. if someone knows how to fix #349,
please join that discussion.


Best

Stefan