Skip to main content

dawdler-boot-web-tomcat-source

Module Introduction​

The embedded-tomcat sources do not follow the JPMS specification, so they need to be packaged separately.

1. Usage​

This module does not need to be used standalone; it is for internal use only.

2. embedded-tomcat version​

11.0.18

3. Change log​

  • Tomcat merges the jakarta packages into tomcat-embed-core.jar and adds XMLSchema.dtd, datatypes.dtd and xml.xsd to jakarta.servlet.resources, loading them in org.apache.tomcat.util.descriptor.DigesterFactory. Since dawdler-series follows the JPMS specification, the files in jakarta.servlet.resources must be removed from tomcat-embed-core.jar. The standard jakarta-servlet-api.jar is used instead, with these configuration files (XMLSchema.dtd, datatypes.dtd, xml.xsd) placed under the org.apache.tomcat.util.descriptor package, and the DigesterFactory code is modified accordingly to load them (locationForLocal is added to DigesterFactory).

  • To support jars inside a jar, the getJarEntryURL method in JarFactory must be changed. The JarFileUrlJar constructor is changed (the assignment jarFileURL = url).

  • org/apache/tomcat/jakartaee is added, bundling the sources of jakartaee-migration, version 1.0.10.