-
Notifications
You must be signed in to change notification settings - Fork 228
PyServlet Will Need To Use The jakarta.servlet Namespace #84
Description
Starting with Tomcat v10, servlets will need to use the jakarta.servlet namespace instead of the old javax.servlet one. This is required because Oracle was not willing to give up control over javax.servlet.
So PyServlet, and PyFilter as well, will need to change to the jakarta.servlet namespace. Nothing else needs to change. Obviously this is a simple change/re-compile to make. But there is a practical problem: what should the servlets be named. Many people keep using Tomcat versions before v10 for a long time, and it would not be right require them to upgrade.
I suggest that two versions should be supplied: PyServlet_javax and PyServlet_jakarta. Tomcat and other servlet-runners will use the correct one with no special action needed by the user. Other users could be given guidance to rename, for example, PyServlet_javax to PyServlet is needed.
I could make this change but I have never tried to compile Jython. It would be much faster and easier tor someone to do it who is already set up for successful compiles.