Apache Tomcat copies classes of the Jakarta EE API's into the Tomcat
module. The package jakarta
https://github.com/apache/tomcat/tree/main/java/jakarta should be removed
from the Tomcat module or renamed. And the Jakarta EE API's should be
included as dependencies.

Copying the source from https://github.com/jakartaee/servlet to
https://github.com/apache/tomcat/tree/main/java/jakarta/servlet, and also
other Jakarta API's, causes Java Platform Module System (JPMS) errors. A
package can only be exported by one module on the classpath.

It will result in errors like this:

[ERROR] Error: Modules org.apache.tomcat.embed.el and jakarta.el export
package jakarta.el to module maven.artifact
[ERROR] Error: Modules org.apache.tomcat.servlet and jakarta.servlet
package jakarta.servlet to module maven.artifact

It would be nice if Apache Tomcat is compatible with JPMS.

Kind regards,
Erik Meuwese

Reply via email to