Skip to content

PyServlet Will Need To Use The jakarta.servlet Namespace #84

@tbpassin

Description

@tbpassin

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions