diff options
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | module-start-up-parameters.conf | 8 | ||||
| -rw-r--r-- | rhbz-1857043.patch | 215 | ||||
| -rw-r--r-- | sources | 1 | ||||
| -rw-r--r-- | tomcat-10.1-JDTCompiler.patch | 70 | ||||
| -rw-r--r-- | tomcat-10.1-bnd-annotation.patch | 57 | ||||
| -rw-r--r-- | tomcat-10.1-bootstrap-MANIFEST.MF.patch | 9 | ||||
| -rw-r--r-- | tomcat-10.1-catalina-policy.patch | 16 | ||||
| -rw-r--r-- | tomcat-10.1-digest.script | 45 | ||||
| -rw-r--r-- | tomcat-10.1-jakartaee-migration.patch | 90 | ||||
| -rw-r--r-- | tomcat-10.1-tomcat-users-webapp.patch | 17 | ||||
| -rw-r--r-- | tomcat-10.1-tool-wrapper.script | 45 | ||||
| -rw-r--r-- | tomcat-10.1.conf | 42 | ||||
| -rw-r--r-- | tomcat-10.1.logrotate | 11 | ||||
| -rw-r--r-- | tomcat-10.1.service | 20 | ||||
| -rw-r--r-- | tomcat-10.1.sysconfig | 11 | ||||
| -rw-r--r-- | tomcat-10.1.wrapper | 24 | ||||
| -rw-r--r-- | tomcat-build.patch | 19 | ||||
| -rw-r--r-- | tomcat-functions | 21 | ||||
| -rw-r--r-- | tomcat-named.service | 24 | ||||
| -rw-r--r-- | tomcat-preamble | 52 | ||||
| -rw-r--r-- | tomcat-server | 25 | ||||
| -rw-r--r-- | tomcat.sysusers.conf | 1 | ||||
| -rw-r--r-- | tomcat10.1.54.spec | 712 |
24 files changed, 1536 insertions, 0 deletions
@@ -0,0 +1 @@ +/apache-tomcat-10.1.54-src.tar.gz diff --git a/module-start-up-parameters.conf b/module-start-up-parameters.conf new file mode 100644 index 0000000..7f8652a --- /dev/null +++ b/module-start-up-parameters.conf @@ -0,0 +1,8 @@ +# Add the module start-up parameters required by Tomcat +JAVA_OPTS="$JAVA_OPTS --add-opens=java.base/java.lang=ALL-UNNAMED" +JAVA_OPTS="$JAVA_OPTS --add-opens=java.base/java.io=ALL-UNNAMED" +JAVA_OPTS="$JAVA_OPTS --add-opens=java.base/java.util=ALL-UNNAMED" +JAVA_OPTS="$JAVA_OPTS --add-opens=java.base/java.util.concurrent=ALL-UNNAMED" +JAVA_OPTS="$JAVA_OPTS --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED" +export JAVA_OPTS + diff --git a/rhbz-1857043.patch b/rhbz-1857043.patch new file mode 100644 index 0000000..311c5af --- /dev/null +++ b/rhbz-1857043.patch @@ -0,0 +1,215 @@ +--- a/build.xml.orig 2024-08-02 18:14:43.000000000 +0300 ++++ b/build.xml 2024-08-19 13:56:38.991730088 +0300 +@@ -1121,7 +1121,7 @@ + filesDir="${tomcat.classes}" + filesId="files.annotations-api" + manifest="${tomcat.manifests}/annotations-api.jar.manifest" +- addOSGi="true" /> ++ addOSGi="false" /> + + <!-- Servlet Implementation JAR File --> + <jarIt jarfile="${servlet-api.jar}" +@@ -1130,48 +1130,48 @@ + manifest="${tomcat.manifests}/servlet-api.jar.manifest" + notice="${tomcat.manifests}/servlet-api.jar.notice" + license="${tomcat.manifests}/servlet-api.jar.license" +- addOSGi="true" /> ++ addOSGi="false" /> + + <!-- EL Implementation JAR File --> + <jarIt jarfile="${el-api.jar}" + filesDir="${tomcat.classes}" + filesId="files.el-api" + manifest="${tomcat.manifests}/el-api.jar.manifest" +- addOSGi="true" /> ++ addOSGi="false" /> + + <!-- JSP Implementation JAR File --> + <jarIt jarfile="${jsp-api.jar}" + filesDir="${tomcat.classes}" + filesId="files.jsp-api" + manifest="${tomcat.manifests}/jsp-api.jar.manifest" +- addOSGi="true" /> ++ addOSGi="false" /> + + <!-- WebSocket API JAR File --> + <jarIt jarfile="${websocket-api.jar}" + filesDir="${tomcat.classes}" + filesId="files.websocket-api" + manifest="${tomcat.manifests}/websocket-api.jar.manifest" +- addOSGi="true" /> ++ addOSGi="false" /> + + <!-- WebSocket Client API JAR File --> + <jarIt jarfile="${websocket-client-api.jar}" + filesDir="${tomcat.classes}" + filesId="files.websocket-client-api" + manifest="${tomcat.manifests}/websocket-client-api.jar.manifest" +- addOSGi="true" /> ++ addOSGi="false" /> + + <!-- JASPIC API JAR File --> + <jarIt jarfile="${jaspic-api.jar}" + filesDir="${tomcat.classes}" + filesId="files.jaspic-api" + manifest="${tomcat.manifests}/jaspic-api.jar.manifest" +- addOSGi="true" /> ++ addOSGi="false" /> + + <!-- Tomcat-juli JAR File --> + <jarIt jarfile="${tomcat-juli.jar}" + filesDir="${tomcat.classes}" + filesId="files.tomcat-juli" +- addOSGi="true" /> ++ addOSGi="false" /> + + <!-- Bootstrap JAR File --> + <jarIt jarfile="${bootstrap.jar}" +@@ -1183,68 +1183,68 @@ + <jarIt jarfile="${tomcat-util.jar}" + filesDir="${tomcat.classes}" + filesId="files.tomcat-util" +- addOSGi="true" /> ++ addOSGi="false" /> + + <!-- Tomcat API JAR File --> + <jarIt jarfile="${tomcat-api.jar}" + filesDir="${tomcat.classes}" + filesId="files.tomcat-api" +- addOSGi="true" /> ++ addOSGi="false" /> + + <!-- Tomcat Util Scan JAR File --> + <jarIt jarfile="${tomcat-util-scan.jar}" + filesDir="${tomcat.classes}" + filesId="files.tomcat-util-scan" +- addOSGi="true" /> ++ addOSGi="false" /> + + <jarIt jarfile="${tomcat-jni.jar}" + filesDir="${tomcat.classes}" + filesId="files.tomcat-jni" +- addOSGi="true" /> ++ addOSGi="false" /> + + <!-- Protocol handlers - Coyote --> + <jarIt jarfile="${tomcat-coyote.jar}" + filesDir="${tomcat.classes}" + filesId="files.tomcat-coyote" +- addOSGi="true" /> ++ addOSGi="false" /> + + <!-- OpenSSL FFM - Coyote --> + <jarIt jarfile="${tomcat-coyote-ffm.jar}" + filesDir="${tomcat.classes}" + filesId="files.tomcat-coyote-ffm" + manifest="${tomcat.manifests}/tomcat-coyote-ffm.jar.manifest" +- addOSGi="true" /> ++ addOSGi="false" /> + + <!-- WebSocket implementation JAR File --> + <jarIt jarfile="${tomcat-websocket.jar}" + filesDir="${tomcat.classes}" + filesId="files.tomcat-websocket" + meta-inf="${tomcat.manifests}/tomcat-websocket.jar" +- addOSGi="true" /> ++ addOSGi="false" /> + + <!-- Catalina GroupCom/Tribes JAR File --> + <jarIt jarfile="${catalina-tribes.jar}" + filesDir="${tomcat.classes}" + filesId="files.catalina-tribes" +- addOSGi="true" /> ++ addOSGi="false" /> + + <!-- Catalina Main JAR File --> + <jarIt jarfile="${catalina.jar}" + filesDir="${tomcat.classes}" + filesId="files.catalina" +- addOSGi="true" /> ++ addOSGi="false" /> + + <!-- Catalina Cluster/HA JAR File --> + <jarIt jarfile="${catalina-ha.jar}" + filesDir="${tomcat.classes}" + filesId="files.catalina-ha" +- addOSGi="true" /> ++ addOSGi="false" /> + + <!-- Server-Side Includes (SSI) --> + <jarIt jarfile="${catalina-ssi.jar}" + filesDir="${tomcat.classes}" + filesId="files.catalina-ssi" +- addOSGi="true" /> ++ addOSGi="false" /> + + <!-- Catalina Ant Tasks JAR File --> + <jarIt jarfile="${catalina-ant.jar}" +@@ -1255,27 +1255,27 @@ + <jarIt jarfile="${catalina-storeconfig.jar}" + filesDir="${tomcat.classes}" + filesId="files.catalina-storeconfig" +- addOSGi="true" /> ++ addOSGi="false" /> + + <!-- Jasper EL Implementation JAR File --> + <jarIt jarfile="${jasper-el.jar}" + filesDir="${tomcat.classes}" + filesId="files.jasper-el" + meta-inf="${tomcat.manifests}/jasper-el.jar" +- addOSGi="true" /> ++ addOSGi="false" /> + + <!-- Jasper Implementation JAR File --> + <jarIt jarfile="${jasper.jar}" + filesDir="${tomcat.classes}" + filesId="files.jasper" + meta-inf="${tomcat.manifests}/jasper.jar" +- addOSGi="true" /> ++ addOSGi="false" /> + + <!-- Re-packaged Apache Commons DBCP 2--> + <jarIt jarfile="${tomcat-dbcp.jar}" + filesDir="${tomcat.classes}" + filesId="files.tomcat-dbcp" +- addOSGi="true" /> ++ addOSGi="false" /> + + <!-- i18n JARs --> + <jar jarfile="${tomcat.build}/lib/tomcat-i18n-cs.jar" +@@ -1748,7 +1748,7 @@ + filesId="files.tomcat-embed-core" + notice="${tomcat.manifests}/servlet-api.jar.notice" + license="${tomcat.manifests}/servlet-api.jar.license" +- addOSGi="true" ++ addOSGi="false" + addGraal="true" + graalPrefix="org.apache.tomcat.embed/tomcat-embed-core" + graalFiles="res/graal/tomcat-embed-core/native-image" +@@ -1756,7 +1756,7 @@ + <jarIt jarfile="${tomcat-embed-el.jar}" + filesDir="${tomcat.classes}" + filesId="files.tomcat-embed-el" +- addOSGi="true" ++ addOSGi="false" + addGraal="true" + graalPrefix="org.apache.tomcat.embed/tomcat-embed-el" + graalFiles="res/graal/tomcat-embed-el/native-image" +@@ -1765,7 +1765,7 @@ + filesDir="${tomcat.classes}" + filesId="files.tomcat-embed-jasper" + meta-inf="${tomcat.manifests}/jasper.jar" +- addOSGi="true" ++ addOSGi="false" + addGraal="true" + graalPrefix="org.apache.tomcat.embed/tomcat-embed-jasper" + graalFiles="res/graal/tomcat-embed-jasper/native-image" +@@ -1774,7 +1774,7 @@ + filesDir="${tomcat.classes}" + filesId="files.tomcat-embed-websocket" + meta-inf="${tomcat.manifests}/tomcat-websocket.jar" +- addOSGi="true" ++ addOSGi="false" + addGraal="true" + graalPrefix="org.apache.tomcat.embed/tomcat-embed-websocket" + graalFiles="res/graal/tomcat-embed-websocket/native-image" @@ -0,0 +1 @@ +c827670977f60ee39805f2729022050e apache-tomcat-10.1.54-src.tar.gz diff --git a/tomcat-10.1-JDTCompiler.patch b/tomcat-10.1-JDTCompiler.patch new file mode 100644 index 0000000..a48fb09 --- /dev/null +++ b/tomcat-10.1-JDTCompiler.patch @@ -0,0 +1,70 @@ +--- a/java/org/apache/jasper/compiler/JDTCompiler.java ++++ b/java/org/apache/jasper/compiler/JDTCompiler.java +@@ -310,19 +310,19 @@ + } else if (opt.equals("12")) { + settings.put(CompilerOptions.OPTION_Source, CompilerOptions.VERSION_12); + } else if (opt.equals("13")) { +- settings.put(CompilerOptions.OPTION_Source, CompilerOptions.VERSION_13); ++ settings.put(CompilerOptions.OPTION_Source, "13"); + } else if (opt.equals("14")) { +- settings.put(CompilerOptions.OPTION_Source, CompilerOptions.VERSION_14); ++ settings.put(CompilerOptions.OPTION_Source, "14"); + } else if (opt.equals("15")) { +- settings.put(CompilerOptions.OPTION_Source, CompilerOptions.VERSION_15); ++ settings.put(CompilerOptions.OPTION_Source, "15"); + } else if (opt.equals("16")) { +- settings.put(CompilerOptions.OPTION_Source, CompilerOptions.VERSION_16); ++ settings.put(CompilerOptions.OPTION_Source, "16"); + } else if (opt.equals("17")) { +- settings.put(CompilerOptions.OPTION_Source, CompilerOptions.VERSION_17); ++ settings.put(CompilerOptions.OPTION_Source, "17"); + } else if (opt.equals("18")) { +- settings.put(CompilerOptions.OPTION_Source, CompilerOptions.VERSION_18); ++ settings.put(CompilerOptions.OPTION_Source, "18"); + } else if (opt.equals("19")) { +- settings.put(CompilerOptions.OPTION_Source, CompilerOptions.VERSION_19); ++ settings.put(CompilerOptions.OPTION_Source, "19"); + } else if (opt.equals("20")) { + // Constant not available in latest ECJ version that runs on + // Java 11. +@@ -410,26 +410,26 @@ + settings.put(CompilerOptions.OPTION_TargetPlatform, CompilerOptions.VERSION_12); + settings.put(CompilerOptions.OPTION_Compliance, CompilerOptions.VERSION_12); + } else if (opt.equals("13")) { +- settings.put(CompilerOptions.OPTION_TargetPlatform, CompilerOptions.VERSION_13); +- settings.put(CompilerOptions.OPTION_Compliance, CompilerOptions.VERSION_13); ++ settings.put(CompilerOptions.OPTION_TargetPlatform, "13"); ++ settings.put(CompilerOptions.OPTION_Compliance, "13"); + } else if (opt.equals("14")) { +- settings.put(CompilerOptions.OPTION_TargetPlatform, CompilerOptions.VERSION_14); +- settings.put(CompilerOptions.OPTION_Compliance, CompilerOptions.VERSION_14); ++ settings.put(CompilerOptions.OPTION_TargetPlatform, "14"); ++ settings.put(CompilerOptions.OPTION_Compliance, "14"); + } else if (opt.equals("15")) { +- settings.put(CompilerOptions.OPTION_TargetPlatform, CompilerOptions.VERSION_15); +- settings.put(CompilerOptions.OPTION_Compliance, CompilerOptions.VERSION_15); ++ settings.put(CompilerOptions.OPTION_TargetPlatform, "15"); ++ settings.put(CompilerOptions.OPTION_Compliance, "15"); + } else if (opt.equals("16")) { +- settings.put(CompilerOptions.OPTION_TargetPlatform, CompilerOptions.VERSION_16); +- settings.put(CompilerOptions.OPTION_Compliance, CompilerOptions.VERSION_16); ++ settings.put(CompilerOptions.OPTION_TargetPlatform, "16"); ++ settings.put(CompilerOptions.OPTION_Compliance, "16"); + } else if (opt.equals("17")) { +- settings.put(CompilerOptions.OPTION_TargetPlatform, CompilerOptions.VERSION_17); +- settings.put(CompilerOptions.OPTION_Compliance, CompilerOptions.VERSION_17); ++ settings.put(CompilerOptions.OPTION_TargetPlatform, "17"); ++ settings.put(CompilerOptions.OPTION_Compliance, "17"); + } else if (opt.equals("18")) { +- settings.put(CompilerOptions.OPTION_TargetPlatform, CompilerOptions.VERSION_18); +- settings.put(CompilerOptions.OPTION_Compliance, CompilerOptions.VERSION_18); ++ settings.put(CompilerOptions.OPTION_TargetPlatform, "18"); ++ settings.put(CompilerOptions.OPTION_Compliance, "18"); + } else if (opt.equals("19")) { +- settings.put(CompilerOptions.OPTION_TargetPlatform, CompilerOptions.VERSION_19); +- settings.put(CompilerOptions.OPTION_Compliance, CompilerOptions.VERSION_19); ++ settings.put(CompilerOptions.OPTION_TargetPlatform, "19"); ++ settings.put(CompilerOptions.OPTION_Compliance, "19"); + } else if (opt.equals("20")) { + // Constant not available in latest ECJ version that runs on + // Java 11. diff --git a/tomcat-10.1-bnd-annotation.patch b/tomcat-10.1-bnd-annotation.patch new file mode 100644 index 0000000..320692f --- /dev/null +++ b/tomcat-10.1-bnd-annotation.patch @@ -0,0 +1,57 @@ +--- a/java/org/apache/el/ExpressionFactoryImpl.java ++++ b/java/org/apache/el/ExpressionFactoryImpl.java +@@ -31,7 +31,8 @@ + /** + * @see jakarta.el.ExpressionFactory + */ +-@aQute.bnd.annotation.spi.ServiceProvider(value = ExpressionFactory.class) ++// aQute.bnd.annotation.spi is not available in the distribution bnd version ++// @aQute.bnd.annotation.spi.ServiceProvider(value = ExpressionFactory.class) + public class ExpressionFactoryImpl extends ExpressionFactory { + + static { +--- a/java/org/apache/juli/logging/LogFactory.java ++++ b/java/org/apache/juli/logging/LogFactory.java +@@ -21,7 +21,8 @@ + import java.util.ServiceLoader; + import java.util.logging.LogManager; + +-import aQute.bnd.annotation.spi.ServiceConsumer; ++// aQute.bnd.annotation.spi is not available in the distribution bnd version ++// import aQute.bnd.annotation.spi.ServiceConsumer; + + /** + * This is a modified LogFactory that uses a simple {@link ServiceLoader} based discovery mechanism with a default of +@@ -50,7 +51,7 @@ + * <strong>IMPLEMENTATION NOTE</strong> - This implementation is heavily based on the SAXParserFactory and + * DocumentBuilderFactory implementations (corresponding to the JAXP pluggability APIs) found in Apache Xerces. + */ +-@ServiceConsumer(value = Log.class) ++// @ServiceConsumer(value = Log.class) + public class LogFactory { + + private static final LogFactory singleton = new LogFactory(); +--- a/java/org/apache/tomcat/websocket/WsContainerProvider.java ++++ b/java/org/apache/tomcat/websocket/WsContainerProvider.java +@@ -19,7 +19,8 @@ + import jakarta.websocket.ContainerProvider; + import jakarta.websocket.WebSocketContainer; + +-@aQute.bnd.annotation.spi.ServiceProvider(value = ContainerProvider.class) ++// aQute.bnd.annotation.spi is not available in the distribution bnd version ++// @aQute.bnd.annotation.spi.ServiceProvider(value = ContainerProvider.class) + public class WsContainerProvider extends ContainerProvider { + + @Override +--- a/java/org/apache/tomcat/websocket/server/DefaultServerEndpointConfigurator.java ++++ b/java/org/apache/tomcat/websocket/server/DefaultServerEndpointConfigurator.java +@@ -26,7 +26,8 @@ + import jakarta.websocket.server.HandshakeRequest; + import jakarta.websocket.server.ServerEndpointConfig; + +-@aQute.bnd.annotation.spi.ServiceProvider(value = ServerEndpointConfig.Configurator.class) ++// aQute.bnd.annotation.spi is not available in the distribution bnd version ++// @aQute.bnd.annotation.spi.ServiceProvider(value = ServerEndpointConfig.Configurator.class) + public class DefaultServerEndpointConfigurator extends ServerEndpointConfig.Configurator { + + @Override diff --git a/tomcat-10.1-bootstrap-MANIFEST.MF.patch b/tomcat-10.1-bootstrap-MANIFEST.MF.patch new file mode 100644 index 0000000..297718a --- /dev/null +++ b/tomcat-10.1-bootstrap-MANIFEST.MF.patch @@ -0,0 +1,9 @@ +--- a/res/META-INF/bootstrap.jar.manifest.orig 2010-04-06 10:11:09.000000000 -0600 ++++ b/res/META-INF/bootstrap.jar.manifest 2010-04-06 10:45:56.000000000 -0600 +@@ -1,6 +1,5 @@ + Manifest-Version: 1.0 + Main-Class: org.apache.catalina.startup.Bootstrap +-Class-Path: commons-daemon.jar + Specification-Title: Apache Tomcat Bootstrap + Specification-Version: @VERSION_MAJOR_MINOR@ + Specification-Vendor: Apache Software Foundation diff --git a/tomcat-10.1-catalina-policy.patch b/tomcat-10.1-catalina-policy.patch new file mode 100644 index 0000000..1f78530 --- /dev/null +++ b/tomcat-10.1-catalina-policy.patch @@ -0,0 +1,16 @@ +--- a/conf/catalina.policy.orig 2024-05-22 16:12:23.809886452 +0300 ++++ b/conf/catalina.policy 2024-05-22 16:14:38.913939654 +0300 +@@ -55,6 +55,14 @@ + permission java.security.AllPermission; + }; + ++// ========== RHEL SPECIFIC CODE PERMISSIONS ======================================= ++ ++// Allowing everything in /usr/share/java allows too many unknowns to be permitted ++// Specifying the individual jars that tomcat needs to function with the security manager ++// is the safest way forward. ++grant codeBase "file:/usr/share/java/ecj/ecj.jar" { ++ permission java.security.AllPermission; ++}; + + // ========== CATALINA CODE PERMISSIONS ======================================= diff --git a/tomcat-10.1-digest.script b/tomcat-10.1-digest.script new file mode 100644 index 0000000..0e96562 --- /dev/null +++ b/tomcat-10.1-digest.script @@ -0,0 +1,45 @@ +#!/bin/sh +# +# tomcat-digest script +# JPackage Project <http://www.jpackage.org/> + +# Source functions library +if [ -f /usr/share/java-utils/java-functions ] ; then + . /usr/share/java-utils/java-functions +else + echo "Can't find functions library, aborting" + exit 1 +fi + +# Get the tomcat config (use this for environment specific settings) +if [ -z "${TOMCAT_CFG}" ]; then + TOMCAT_CFG="/etc/tomcat10.1.54/tomcat10.1.54.conf" +fi + +if [ -r "$TOMCAT_CFG" ]; then + . $TOMCAT_CFG +fi + +set_javacmd + +# CLASSPATH munging +if [ -n "$JSSE_HOME" ]; then + CLASSPATH="${CLASSPATH}:$(build-classpath jcert jnet jsse 2>/dev/null)" +fi +CLASSPATH="${CLASSPATH}:${CATALINA_HOME}/bin/bootstrap.jar" +CLASSPATH="${CLASSPATH}:${CATALINA_HOME}/bin/tomcat-juli.jar" +export CLASSPATH + +# Configuration +MAIN_CLASS="org.apache.catalina.startup.Tool" +BASE_FLAGS="-Dcatalina.home=\"$CATALINA_HOME\"" +BASE_OPTIONS="" +BASE_JARS="tomcat/catalina tomcat/tomcat-servlet-api tomcat/tomcat-util tomcat/tomcat-coyote tomcat/tomcat-api tomcat/tomcat-util-scan" + +# Set parameters +set_classpath $BASE_JARS +set_flags $BASE_FLAGS +set_options $BASE_OPTIONS + +# Let's start +run -server org.apache.catalina.realm.RealmBase "$@" diff --git a/tomcat-10.1-jakartaee-migration.patch b/tomcat-10.1-jakartaee-migration.patch new file mode 100644 index 0000000..80fcbb4 --- /dev/null +++ b/tomcat-10.1-jakartaee-migration.patch @@ -0,0 +1,90 @@ +--- a/java/org/apache/catalina/loader/WebappLoader.java ++++ b/java/org/apache/catalina/loader/WebappLoader.java +@@ -39,9 +39,11 @@ + import org.apache.catalina.util.ToStringUtil; + import org.apache.juli.logging.Log; + import org.apache.juli.logging.LogFactory; +-import org.apache.tomcat.jakartaee.ClassConverter; +-import org.apache.tomcat.jakartaee.EESpecProfile; +-import org.apache.tomcat.jakartaee.EESpecProfiles; ++// Jakarta EE migration support (tomcat-jakartaee-migration) is not available ++// in this distribution, see tomcat-10.1-jakartaee-migration.patch ++// import org.apache.tomcat.jakartaee.ClassConverter; ++// import org.apache.tomcat.jakartaee.EESpecProfile; ++// import org.apache.tomcat.jakartaee.EESpecProfiles; + import org.apache.tomcat.util.ExceptionUtils; + import org.apache.tomcat.util.compat.JreCompat; + import org.apache.tomcat.util.modeler.Registry; +@@ -314,8 +316,11 @@ + classLoader.setDelegate(this.delegate); + + // Set Jakarta class converter ++ // Jakarta EE migration support is not included in this build, so no ++ // converter is installed even when jakartaConverter has been configured. + if (getJakartaConverter() != null) { +- MigrationUtil.addJakartaEETransformer(classLoader, getJakartaConverter()); ++ log.warn("Jakarta EE class conversion is not supported in this build, ignoring jakartaConverter=" + ++ getJakartaConverter()); + } + + setPermissions(); +@@ -568,22 +573,4 @@ + return name.toString(); + } + +- +- /** +- * Implemented in a subclass so EESpecProfile and EESpecProfiles are not loaded unless a profile is configured. +- * Otherwise, tomcat-embed-core.jar has a runtime dependency on the migration tool whether it is used or not. +- */ +- private static class MigrationUtil { +- +- public static void addJakartaEETransformer(WebappClassLoaderBase webappClassLoader, String profileName) { +- EESpecProfile profile = null; +- try { +- profile = EESpecProfiles.valueOf(profileName); +- } catch (IllegalArgumentException ignored) { +- // Use default value +- log.warn(sm.getString("webappLoader.unknownProfile", profileName)); +- } +- webappClassLoader.addTransformer(profile != null ? new ClassConverter(profile) : new ClassConverter()); +- } +- } + } +--- a/java/org/apache/catalina/startup/HostConfig.java ++++ b/java/org/apache/catalina/startup/HostConfig.java +@@ -67,7 +67,9 @@ + import org.apache.catalina.util.IOTools; + import org.apache.juli.logging.Log; + import org.apache.juli.logging.LogFactory; +-import org.apache.tomcat.jakartaee.Migration; ++// Jakarta EE migration support (tomcat-jakartaee-migration) is not available ++// in this distribution, see tomcat-10.1-jakartaee-migration.patch ++// import org.apache.tomcat.jakartaee.Migration; + import org.apache.tomcat.util.ExceptionUtils; + import org.apache.tomcat.util.buf.UriUtil; + import org.apache.tomcat.util.digester.Digester; +@@ -1230,17 +1232,12 @@ + // the defaults if necessary than to start adding configuration + // options. Users that need non-default options can convert manually + // via migration.[sh|bat] +- Migration migration = new Migration(); +- migration.setSource(source); +- migration.setDestination(tempNew); +- migration.execute(); +- +- // Use rename +- if (destination.exists()) { +- Files.move(destination.toPath(), tempOld.toPath()); +- } +- Files.move(tempNew.toPath(), destination.toPath()); +- ExpandWar.delete(tempOld); ++ // ++ // Jakarta EE migration support (tomcat-jakartaee-migration) is not ++ // available in this build, so the legacy application is left ++ // untouched instead of being converted. ++ log.warn("Jakarta EE web application migration is not supported in this build, skipping migration of " + ++ source.getAbsolutePath()); + + } catch (Throwable t) { + ExceptionUtils.handleThrowable(t); diff --git a/tomcat-10.1-tomcat-users-webapp.patch b/tomcat-10.1-tomcat-users-webapp.patch new file mode 100644 index 0000000..bd20c75 --- /dev/null +++ b/tomcat-10.1-tomcat-users-webapp.patch @@ -0,0 +1,17 @@ +--- a/conf/tomcat-users.xml~ 2008-01-28 17:41:06.000000000 -0500 ++++ b/conf/tomcat-users.xml 2008-03-07 19:40:07.000000000 -0500 +@@ -53,4 +53,14 @@ + <user username="both" password="<must-be-changed>" roles="tomcat,role1"/> + <user username="role1" password="<must-be-changed>" roles="role1"/> + --> ++ ++<!-- <role rolename="admin"/> --> ++<!-- <role rolename="admin-gui"/> --> ++<!-- <role rolename="admin-script"/> --> ++<!-- <role rolename="manager"/> --> ++<!-- <role rolename="manager-gui"/> --> ++<!-- <role rolename="manager-script"/> --> ++<!-- <role rolename="manager-jmx"/> --> ++<!-- <role rolename="manager-status"/> --> ++<!-- <user name="admin" password="<must-be-changed>" roles="admin,manager,admin-gui,admin-script,manager-gui,manager-script,manager-jmx,manager-status" /> --> + </tomcat-users> diff --git a/tomcat-10.1-tool-wrapper.script b/tomcat-10.1-tool-wrapper.script new file mode 100644 index 0000000..cee0786 --- /dev/null +++ b/tomcat-10.1-tool-wrapper.script @@ -0,0 +1,45 @@ +#!/bin/sh +# +# tomcat-digest script +# JPackage Project <http://www.jpackage.org/> + +# Source functions library +if [ -f /usr/share/java-utils/java-functions ] ; then + . /usr/share/java-utils/java-functions +else + echo "Can't find functions library, aborting" + exit 1 +fi + +# Get the tomcat config (use this for environment specific settings) +if [ -z "${TOMCAT_CFG}" ]; then + TOMCAT_CFG="/etc/tomcat10.1.54/tomcat10.1.54.conf" +fi + +if [ -r "$TOMCAT_CFG" ]; then + . $TOMCAT_CFG +fi + +set_javacmd + +# CLASSPATH munging +if [ -n "$JSSE_HOME" ]; then + CLASSPATH="${CLASSPATH}:$(build-classpath jcert jnet jsse 2>/dev/null)" +fi +CLASSPATH="${CLASSPATH}:${CATALINA_HOME}/bin/bootstrap.jar" +CLASSPATH="${CLASSPATH}:${CATALINA_HOME}/bin/tomcat-juli.jar" +export CLASSPATH + +# Configuration +MAIN_CLASS="org.apache.catalina.startup.Tool" +BASE_OPTIONS="" +BASE_FLAGS="-Dcatalina.home=\"$CATALINA_HOME\"" +BASE_JARS="commons-daemon tomcat/catalina servlet tomcat/tomcat-util tomcat/tomcat-coyote tomcat/tomcat-api tomcat/tomcat-util-scan" + +# Set parameters +set_classpath $BASE_JARS +set_flags $BASE_FLAGS +set_options $BASE_OPTIONS + +# Let's start +run "$@" diff --git a/tomcat-10.1.conf b/tomcat-10.1.conf new file mode 100644 index 0000000..18397ca --- /dev/null +++ b/tomcat-10.1.conf @@ -0,0 +1,42 @@ +# System-wide configuration file for tomcat services +# This will be loaded by systemd as an environment file, +# so please keep the syntax. For shell expansion support +# place your custom files as /etc/tomcat10.1.54/conf.d/*.conf +# +# There are 2 "classes" of startup behavior in this package. +# The old one, the default service named tomcat10.1.54.service. +# The new named instances are called tomcat10.1.54@instance.service. +# +# Use this file to change default values for all services. +# Change the service specific ones to affect only one service. +# For tomcat10.1.54.service it's /etc/sysconfig/tomcat10.1.54, for +# tomcat10.1.54@instance it's /etc/sysconfig/tomcat10.1.54@instance. + +# This variable is used to figure out if config is loaded or not. +TOMCAT_CFG_LOADED="1" + +# In new-style instances, if CATALINA_BASE isn't specified, it will +# be constructed by joining TOMCATS_BASE and NAME. +TOMCATS_BASE="/var/lib/tomcats/" + +# Where your java installation lives +JAVA_HOME="/usr/lib/jvm/jre" + +# Where your tomcat installation lives +CATALINA_HOME="@@@TCHOME@@@" + +# System-wide tmp +CATALINA_TMPDIR="/var/cache/tomcat10.1.54/temp" + +# You can change your tomcat locale here +#LANG="en_US" + +# Run tomcat under the Java Security Manager +SECURITY_MANAGER="false" + +# If you wish to further customize your tomcat environment, +# put your own definitions here +# (i.e. LD_LIBRARY_PATH for some jdbc drivers) + +# You can also pass parameters to Java here by defining JAVA_OPTS variable +# (e.g. JAVA_OPTS="-Xminf0.1 -Xmaxf0.3") diff --git a/tomcat-10.1.logrotate b/tomcat-10.1.logrotate new file mode 100644 index 0000000..082092a --- /dev/null +++ b/tomcat-10.1.logrotate @@ -0,0 +1,11 @@ +# This is an example config only and is disabled by default +# If you wish to use it, you'll need to update /etc/tomcat/logging.properties +# to prevent catalina*.log from being rotated by Tomcat +@@@TCLOG@@@/catalina*.log { + copytruncate + weekly + rotate 52 + compress + missingok + create 0644 tomcat tomcat +} diff --git a/tomcat-10.1.service b/tomcat-10.1.service new file mode 100644 index 0000000..af224f2 --- /dev/null +++ b/tomcat-10.1.service @@ -0,0 +1,20 @@ +# Systemd unit file for default tomcat +# +# To create clones of this service: +# DO NOTHING, use tomcat10.1.54@.service instead. + +[Unit] +Description=Apache Tomcat Web Application Container +After=syslog.target network.target + +[Service] +Type=simple +EnvironmentFile=/etc/tomcat10.1.54/tomcat10.1.54.conf +Environment="NAME=" +EnvironmentFile=-/etc/sysconfig/tomcat10.1.54 +ExecStart=/usr/libexec/tomcat10.1.54/server start +SuccessExitStatus=143 +User=tomcat + +[Install] +WantedBy=multi-user.target diff --git a/tomcat-10.1.sysconfig b/tomcat-10.1.sysconfig new file mode 100644 index 0000000..84b4da4 --- /dev/null +++ b/tomcat-10.1.sysconfig @@ -0,0 +1,11 @@ +# Service-specific configuration file for tomcat. This will be sourced by +# systemd for the default service (tomcat10.1.54.service) +# If you want to customize named instance, make a similar file +# and name it tomcat10.1.54@instancename. + +# You will not need to set this, usually. For default service it equals +# CATALINA_HOME. For named service, it equals ${TOMCATS_BASE}${NAME} +#CATALINA_BASE="@@@TCHOME@@@" + +# Please take a look at /etc/tomcat10.1.54/tomcat10.1.54.conf to have an idea what +# you can override. diff --git a/tomcat-10.1.wrapper b/tomcat-10.1.wrapper new file mode 100644 index 0000000..48e0d6d --- /dev/null +++ b/tomcat-10.1.wrapper @@ -0,0 +1,24 @@ +#!/bin/bash + +if [ "$1" = "version" ]; then + . /usr/libexec/tomcat10.1.54/preamble + exec ${JAVACMD} -classpath ${CATALINA_HOME}/lib/catalina.jar \ + org.apache.catalina.util.ServerInfo +fi + +SRV="tomcat10.1.54" +if [ -n "$2" ]; then + SRV="tomcat10.1.54@$2" +fi + +if [ "$1" = "start" ]; then + systemctl start ${SRV}.service +elif [ "$1" = "stop" ]; then + systemctl stop ${SRV}.service +elif [ "$1" = "version" ]; then + ${JAVACMD} -classpath ${CATALINA_HOME}/lib/catalina.jar \ + org.apache.catalina.util.ServerInfo +else + echo "Usage: $0 {start|stop|version} [server-id]" + exit 1 +fi diff --git a/tomcat-build.patch b/tomcat-build.patch new file mode 100644 index 0000000..630a2d3 --- /dev/null +++ b/tomcat-build.patch @@ -0,0 +1,19 @@ +diff -up ./res/bnd/build-defaults.bnd.orig ./res/bnd/build-defaults.bnd +--- a/res/bnd/build-defaults.bnd.orig 2023-10-16 11:23:04.752754202 +0800 ++++ b/res/bnd/build-defaults.bnd 2023-10-16 11:23:29.931876910 +0800 +@@ -13,7 +13,7 @@ + # See the License for the specific language governing permissions and + # limitations under the License. + +-Bundle-Version: ${version_cleanup;${version}} ++Bundle-Version: ${version} + Bundle-License: https://www.apache.org/licenses/LICENSE-2.0.txt + + Specification-Title: Apache Tomcat +@@ -36,4 +36,4 @@ X-Compile-Target-JDK: ${compile.release} + + -removeheaders: DSTAMP,TODAY,TSTAMP + +-module.name: org.apache.${replace;${Bundle-Name};-;.} +\ No newline at end of file ++module.name: org.apache.${replace;${Bundle-Name};-;.} diff --git a/tomcat-functions b/tomcat-functions new file mode 100644 index 0000000..1187653 --- /dev/null +++ b/tomcat-functions @@ -0,0 +1,21 @@ +#!/bin/bash + +if [ -r /usr/share/java-utils/java-functions ]; then + . /usr/share/java-utils/java-functions +else + echo "Can't read Java functions library, aborting" + exit 1 +fi + +_save_function() { + local ORIG_FUNC=$(declare -f $1) + local NEWNAME_FUNC="$2${ORIG_FUNC#$1}" + eval "$NEWNAME_FUNC" +} + +_save_function run run_java + +run() { + run_java $@ +} + diff --git a/tomcat-named.service b/tomcat-named.service new file mode 100644 index 0000000..16d337a --- /dev/null +++ b/tomcat-named.service @@ -0,0 +1,24 @@ +# Systemd unit file for tomcat instances. +# +# To create clones of this service: +# 0. systemctl enable tomcat10.1.54@name.service +# 1. create catalina.base directory structure in +# /var/lib/tomcats/name +# 2. profit. + +[Unit] +Description=Apache Tomcat Web Application Container +After=syslog.target network.target + +[Service] +Type=simple +EnvironmentFile=/etc/tomcat10.1.54/tomcat10.1.54.conf +Environment="NAME=%i" +EnvironmentFile=-/etc/sysconfig/tomcat10.1.54@%i +ExecStart=/usr/libexec/tomcat10.1.54/server start +ExecStop=/usr/libexec/tomcat10.1.54/server stop +SuccessExitStatus=143 +User=tomcat + +[Install] +WantedBy=multi-user.target diff --git a/tomcat-preamble b/tomcat-preamble new file mode 100644 index 0000000..5ff1584 --- /dev/null +++ b/tomcat-preamble @@ -0,0 +1,52 @@ +#!/bin/bash + +. /usr/libexec/tomcat10.1.54/functions + +# Get the tomcat config (use this for environment specific settings) + +if [ -z "${TOMCAT_CFG_LOADED}" ]; then + if [ -z "${TOMCAT_CFG}" ]; then + TOMCAT_CFG="/etc/tomcat10.1.54/tomcat10.1.54.conf" + fi + . $TOMCAT_CFG +fi + +if [ -d "${TOMCAT_CONFD=/etc/tomcat10.1.54/conf.d}" ]; then + for file in ${TOMCAT_CONFD}/*.conf ; do + if [ -f "$file" ] ; then + . "$file" + fi + done +fi + +if [ -z "$CATALINA_BASE" ]; then + if [ -n "$NAME" ]; then + if [ -z "$TOMCATS_BASE" ]; then + TOMCATS_BASE="/var/lib/tomcats/" + fi + CATALINA_BASE="${TOMCATS_BASE}${NAME}" + else + CATALINA_BASE="${CATALINA_HOME}" + fi +fi +VERBOSE=1 +set_javacmd +cd ${CATALINA_HOME} +# CLASSPATH munging +if [ ! -z "$CLASSPATH" ] ; then + CLASSPATH="$CLASSPATH": +fi + +if [ -n "$JSSE_HOME" ]; then + CLASSPATH="${CLASSPATH}$(build-classpath jcert jnet jsse 2>/dev/null):" +fi +CLASSPATH="${CLASSPATH}${CATALINA_HOME}/bin/bootstrap.jar" +CLASSPATH="${CLASSPATH}:${CATALINA_HOME}/bin/tomcat-juli.jar" +CLASSPATH="${CLASSPATH}:$(build-classpath commons-daemon 2>/dev/null)" + +if [ -z "$LOGGING_PROPERTIES" ] ; then + LOGGING_PROPERTIES="${CATALINA_BASE}/conf/logging.properties" + if [ ! -f "${LOGGING_PROPERTIES}" ] ; then + LOGGING_PROPERTIES="${CATALINA_HOME}/conf/logging.properties" + fi +fi diff --git a/tomcat-server b/tomcat-server new file mode 100644 index 0000000..619071e --- /dev/null +++ b/tomcat-server @@ -0,0 +1,25 @@ +#!/bin/bash + +. /usr/libexec/tomcat10.1.54/preamble + +MAIN_CLASS=org.apache.catalina.startup.Bootstrap + +FLAGS="$JAVA_OPTS" +OPTIONS="-Dcatalina.base=$CATALINA_BASE \ +-Dcatalina.home=$CATALINA_HOME \ +-Djava.endorsed.dirs=$JAVA_ENDORSED_DIRS \ +-Djava.io.tmpdir=$CATALINA_TMPDIR \ +-Djava.util.logging.config.file=${LOGGING_PROPERTIES} \ +-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager" + +if [ "$1" = "start" ] ; then + FLAGS="${FLAGS} $CATALINA_OPTS" + if [ "${SECURITY_MANAGER}" = "true" ] ; then + OPTIONS="${OPTIONS} \ + -Djava.security.manager \ + -Djava.security.policy==${CATALINA_BASE}/conf/catalina.policy" + fi + run start +elif [ "$1" = "stop" ] ; then + run stop +fi diff --git a/tomcat.sysusers.conf b/tomcat.sysusers.conf new file mode 100644 index 0000000..9bd6ca4 --- /dev/null +++ b/tomcat.sysusers.conf @@ -0,0 +1 @@ +u tomcat 53 'Apache Tomcat' /usr/share/tomcat10.1.54 - diff --git a/tomcat10.1.54.spec b/tomcat10.1.54.spec new file mode 100644 index 0000000..3dd490d --- /dev/null +++ b/tomcat10.1.54.spec @@ -0,0 +1,712 @@ +# Copyright (c) 2000-2008, JPackage Project +# All rights reserved. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions +# are met: +# +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the +# distribution. +# 3. Neither the name of the JPackage Project nor the names of its +# contributors may be used to endorse or promote products derived +# from this software without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# + +%global jspspec 3.1 +%global major_version 10 +%global minor_version 1 +%global micro_version 54 +%global packdname apache-tomcat-%{version}-src +%global servletspec 6.0 +%global elspec 5.0 +%global tcuid 53 +# Recommended version is specified in java/org/apache/catalina/core/AprLifecycleListener.java +%global native_version 2.0.14 +# The package is imported under the name below (tomcat10.1.54) while the +# auxiliary upstream assets keep their original "tomcat-10.1*" file names. +%global upstream tomcat + + +# FHS 3.0 compliant tree structure - http://refspecs.linuxfoundation.org/FHS_3.0/fhs/index.html +%global basedir %{_var}/lib/%{name} +%global appdir %{basedir}/webapps +%global homedir %{_datadir}/%{name} +%global bindir %{homedir}/bin +%global confdir %{_sysconfdir}/%{name} +%global libdir %{_javadir}/%{name} +%global logdir %{_var}/log/%{name} +%global cachedir %{_var}/cache/%{name} +%global tempdir %{cachedir}/temp +%global workdir %{cachedir}/work + +Name: tomcat10.1.54 +Epoch: 1 +Version: %{major_version}.%{minor_version}.%{micro_version} +Release: 1%{?dist} +Summary: Apache Servlet/JSP Engine, RI for Servlet %{servletspec}/JSP %{jspspec} API + +# Automatically converted from old format: ASL 2.0 - review is highly recommended. +License: Apache-2.0 +URL: http://tomcat.apache.org/ +Source0: https://archive.apache.org/dist/tomcat/tomcat-%{major_version}/v%{version}/src/%{packdname}.tar.gz +Source1: %{upstream}-%{major_version}.%{minor_version}.conf +Source2: %{upstream}-%{major_version}.%{minor_version}.sysconfig +Source3: %{upstream}-%{major_version}.%{minor_version}.wrapper +Source4: %{upstream}-%{major_version}.%{minor_version}.logrotate +Source5: %{upstream}-%{major_version}.%{minor_version}-digest.script +Source6: %{upstream}-%{major_version}.%{minor_version}-tool-wrapper.script +Source7: %{upstream}-%{major_version}.%{minor_version}.service +Source8: %{upstream}-functions +Source9: %{upstream}-preamble +Source10: %{upstream}-server +Source11: %{upstream}-named.service +Source12: module-start-up-parameters.conf +Source13: %{upstream}.sysusers.conf + +Patch0: %{upstream}-%{major_version}.%{minor_version}-bootstrap-MANIFEST.MF.patch +Patch1: %{upstream}-%{major_version}.%{minor_version}-tomcat-users-webapp.patch +Patch2: %{upstream}-build.patch +Patch3: %{upstream}-%{major_version}.%{minor_version}-catalina-policy.patch +Patch4: %{upstream}-%{major_version}.%{minor_version}-bnd-annotation.patch +Patch5: %{upstream}-%{major_version}.%{minor_version}-JDTCompiler.patch +Patch6: rhbz-1857043.patch +Patch7: %{upstream}-%{major_version}.%{minor_version}-jakartaee-migration.patch + +BuildArch: noarch + +BuildRequires: ant >= 1.10.2 +BuildRequires: ecj +BuildRequires: findutils +BuildRequires: java-17-openjdk-devel +BuildRequires: javapackages-local +BuildRequires: aqute-bnd +BuildRequires: systemd + +Requires: (java-17-openjdk-headless or java-17-openjdk) +Requires: javapackages-tools +Requires: %{name}-lib = %{epoch}:%{version}-%{release} +Recommends: libtcnative-1-0 +Requires(post): systemd +Requires(preun): systemd +Requires(postun): systemd +Obsoletes: tomcat-jsvc < %{epoch}:%{version}-%{release} + +# added after log4j sub-package was removed +Provides: %{name}-log4j = %{epoch}:%{version}-%{release} + +%description +Tomcat is the servlet container that is used in the official Reference +Implementation for the Java Servlet and JavaServer Pages technologies. +The Java Servlet and JavaServer Pages specifications are developed by +Sun under the Java Community Process. + +Tomcat is developed in an open and participatory environment and +released under the Apache Software License version 2.0. Tomcat is intended +to be a collaboration of the best-of-breed developers from around the world. + +%package admin-webapps +Summary: The host-manager and manager web applications for Apache Tomcat +Requires: %{name} = %{epoch}:%{version}-%{release} + +%description admin-webapps +The host-manager and manager web applications for Apache Tomcat. + +%package docs-webapp +Summary: The docs web application for Apache Tomcat +Requires: %{name} = %{epoch}:%{version}-%{release} +Obsoletes: tomcat-help < %{epoch}:%{version}-%{release} + +%description docs-webapp +The docs web application for Apache Tomcat. + +%package jsp-%{jspspec}-api +Summary: Apache Tomcat JavaServer Pages v%{jspspec} API Implementation Classes +Provides: jsp = %{jspspec} +Requires: %{name}-servlet-%{servletspec}-api = %{epoch}:%{version}-%{release} +Requires: %{name}-el-%{elspec}-api = %{epoch}:%{version}-%{release} +Obsoletes: %{name}-jsp-2.3-api < 1:9.1 +Provides: %{name}-jsp-2.3-api = %{?epoch:%{epoch}:}%{version}-%{release} + + +%description jsp-%{jspspec}-api +Apache Tomcat JSP API Implementation Classes. + +%package lib +Summary: Libraries needed to run the Tomcat Web container +Requires: %{name}-jsp-%{jspspec}-api = %{epoch}:%{version}-%{release} +Requires: %{name}-servlet-%{servletspec}-api = %{epoch}:%{version}-%{release} +Requires: %{name}-el-%{elspec}-api = %{epoch}:%{version}-%{release} +Requires: ecj +Requires(preun): coreutils + +%description lib +Libraries needed to run the Tomcat Web container. + +%package servlet-%{servletspec}-api +Summary: Apache Tomcat Java Servlet v%{servletspec} API Implementation Classes +Provides: servlet = %{servletspec} +Obsoletes: %{name}-servlet-4.0-api < 1:9.1 +Provides: %{name}-servlet-4.0-api = %{?epoch:%{epoch}:}%{version}-%{release} + +%description servlet-%{servletspec}-api +Apache Tomcat Servlet API Implementation Classes. + +%package el-%{elspec}-api +Summary: Apache Tomcat Expression Language v%{elspec} API Implementation Classes +Provides: el_api = %{elspec} +Obsoletes: %{name}-el-3.0-api < 1:9.1 +Provides: %{name}-el-3.0-api = %{?epoch:%{epoch}:}%{version}-%{release} + +%description el-%{elspec}-api +Apache Tomcat EL API Implementation Classes. + +%package webapps +Summary: The ROOT web application for Apache Tomcat +Requires: %{name} = %{epoch}:%{version}-%{release} + +%description webapps +The ROOT web application for Apache Tomcat. + +%prep +%autosetup -p1 -n %{packdname} +# remove pre-built binaries and windows files +find . -type f \( -name "*.bat" -o -name "*.class" -o -name Thumbs.db -o -name "*.gz" -o \ + -name "*.jar" -o -name "*.war" -o -name "*.zip" \) -delete + +# Remove webservices naming resources as it's generally unused +%{__rm} -rf java/org/apache/naming/factory/webservices + +# Configure maven files +%mvn_package ":tomcat-el-api" tomcat-el-api +%mvn_alias "org.apache.tomcat:tomcat-el-api" "jakarta.servlet:jakarta.servlet-api" +%mvn_package ":tomcat-jsp-api" tomcat-jsp-api +%mvn_alias "org.apache.tomcat:tomcat-jsp-api" "jakarta.servlet:jakarta.servlet.jsp" +%mvn_package ":tomcat-servlet-api" tomcat-servlet-api + +%build +# we don't care about the tarballs and we're going to replace jars +# so just create a dummy file for later removal +touch HACK + +# Build with the Java 17 JDK shipped in this distribution +export JAVA_HOME=%{_jvmdir}/java-17-openjdk +export PATH=$JAVA_HOME/bin:$PATH + +# Do not use the javapackages %%ant macro here: it expands to +# "JAVA_HOME=%%{java_home} ant" and %%{java_home} resolves to +# java-1.8.0-openjdk (the java-utils default), which overrides the Java 17 +# JAVA_HOME exported above and makes build.xml fail with +# "Java version 17 or newer is required (1.8.0_xxx is installed)". +# Calling /usr/bin/ant directly keeps JAVA_HOME (Java 17) in effect. +# -Dskip.build.java.version=true mirrors the distro packaging and disables +# the bnd based OSGi metadata step, which needs a newer aqute-bnd than the +# distro ships. +# -Dmigration-lib.jar="HACK" is intentional: the Jakarta EE migration tool is +# not packaged for this distribution, the sources that referenced it are +# adjusted by Patch7 (compile time + graceful runtime degradation). +# The distro ecj (4.12 / ECJ 3.18) has no CompilerOptions.VERSION_13..17 +# constants, Patch5 switches those lookups to string literals. +# who needs a build.properties file anyway +%{_bindir}/ant -Dbase.path="." \ + -Dbuild.compiler="modern" \ + -Dskip.build.java.version="true" \ + -Dcommons-daemon.jar="HACK" \ + -Dcommons-daemon.native.src.tgz="HACK" \ + -Djdt.jar="$(build-classpath ecj/ecj)" \ + -Dtomcat-native.tar.gz="HACK" \ + -Dtomcat-native.home="." \ + -Dcommons-daemon.native.win.mgr.exe="HACK" \ + -Dnsis.exe="HACK" \ + -Djaxrpc-lib.jar="HACK" \ + -Dwsdl4j-lib.jar="HACK" \ + -Dbnd.jar="$(build-classpath aqute-bnd/biz.aQute.bnd)" \ + -Dversion="%{version}" \ + -Dversion.build="%{micro_version}" \ + -Dmigration-lib.jar="HACK" \ + deploy + +# remove some jars that we'll replace with symlinks later +%{__rm} output/build/bin/commons-daemon.jar output/build/lib/ecj.jar output/build/lib/HACK +# Remove the example webapps per Apache Tomcat Security Considerations +# see https://tomcat.apache.org/tomcat-10.1-doc/security-howto.html +%{__rm} -rf output/build/webapps/examples + + +%install +# build initial path structure +%{__install} -d -m 0755 ${RPM_BUILD_ROOT}%{_bindir} +%{__install} -d -m 0755 ${RPM_BUILD_ROOT}%{_sbindir} +%{__install} -d -m 0755 ${RPM_BUILD_ROOT}%{_sysconfdir}/logrotate.d +%{__install} -d -m 0755 ${RPM_BUILD_ROOT}%{_sysconfdir}/sysconfig +%{__install} -d -m 0755 ${RPM_BUILD_ROOT}%{appdir} +%{__install} -d -m 0755 ${RPM_BUILD_ROOT}%{bindir} +%{__install} -d -m 0775 ${RPM_BUILD_ROOT}%{confdir} +%{__install} -d -m 0775 ${RPM_BUILD_ROOT}%{confdir}/Catalina/localhost +%{__install} -d -m 0775 ${RPM_BUILD_ROOT}%{confdir}/conf.d +/bin/echo "Place your custom *.conf files here. Shell expansion is supported." > ${RPM_BUILD_ROOT}%{confdir}/conf.d/README +%{__install} -d -m 0755 ${RPM_BUILD_ROOT}%{libdir} +%{__install} -d -m 0775 ${RPM_BUILD_ROOT}%{logdir} +%{__install} -d -m 0775 ${RPM_BUILD_ROOT}%{_localstatedir}/lib/tomcats +%{__install} -d -m 0775 ${RPM_BUILD_ROOT}%{homedir} +%{__install} -d -m 0775 ${RPM_BUILD_ROOT}%{tempdir} +%{__install} -d -m 0775 ${RPM_BUILD_ROOT}%{workdir} +%{__install} -d -m 0755 ${RPM_BUILD_ROOT}%{_unitdir} +%{__install} -d -m 0755 ${RPM_BUILD_ROOT}%{_libexecdir}/%{name} + +# move things into place +# First copy supporting libs to tomcat lib +pushd output/build + %{__cp} -a bin/*.{jar,xml} ${RPM_BUILD_ROOT}%{bindir} + %{__cp} -a conf/*.{policy,properties,xml,xsd} ${RPM_BUILD_ROOT}%{confdir} + %{__cp} -a lib/*.jar ${RPM_BUILD_ROOT}%{libdir} + %{__cp} -a webapps/* ${RPM_BUILD_ROOT}%{appdir} +popd + +%{__sed} -e "s|\@\@\@TCHOME\@\@\@|%{homedir}|g" \ + -e "s|\@\@\@TCTEMP\@\@\@|%{tempdir}|g" \ + -e "s|\@\@\@LIBDIR\@\@\@|%{_libdir}|g" %{SOURCE1} \ + > ${RPM_BUILD_ROOT}%{confdir}/%{name}.conf +%{__sed} -e "s|\@\@\@TCHOME\@\@\@|%{homedir}|g" \ + -e "s|\@\@\@TCTEMP\@\@\@|%{tempdir}|g" \ + -e "s|\@\@\@LIBDIR\@\@\@|%{_libdir}|g" %{SOURCE2} \ + > ${RPM_BUILD_ROOT}%{_sysconfdir}/sysconfig/%{name} +%{__install} -m 0755 %{SOURCE3} \ + ${RPM_BUILD_ROOT}%{_sbindir}/%{name} +%{__install} -m 0644 %{SOURCE7} \ + ${RPM_BUILD_ROOT}%{_unitdir}/%{name}.service +%{__sed} -e "s|\@\@\@TCLOG\@\@\@|%{logdir}|g" %{SOURCE4} \ + > ${RPM_BUILD_ROOT}%{_sysconfdir}/logrotate.d/%{name}.disabled +%{__sed} -e "s|\@\@\@TCHOME\@\@\@|%{homedir}|g" \ + -e "s|\@\@\@TCTEMP\@\@\@|%{tempdir}|g" \ + -e "s|\@\@\@LIBDIR\@\@\@|%{_libdir}|g" %{SOURCE5} \ + > ${RPM_BUILD_ROOT}%{_bindir}/%{name}-digest +%{__sed} -e "s|\@\@\@TCHOME\@\@\@|%{homedir}|g" \ + -e "s|\@\@\@TCTEMP\@\@\@|%{tempdir}|g" \ + -e "s|\@\@\@LIBDIR\@\@\@|%{_libdir}|g" %{SOURCE6} \ + > ${RPM_BUILD_ROOT}%{_bindir}/%{name}-tool-wrapper + +%{__install} -m 0644 %{SOURCE8} \ + ${RPM_BUILD_ROOT}%{_libexecdir}/%{name}/functions +%{__install} -m 0755 %{SOURCE9} \ + ${RPM_BUILD_ROOT}%{_libexecdir}/%{name}/preamble +%{__install} -m 0755 %{SOURCE10} \ + ${RPM_BUILD_ROOT}%{_libexecdir}/%{name}/server +%{__install} -m 0644 %{SOURCE11} \ + ${RPM_BUILD_ROOT}%{_unitdir}/%{name}@.service + +%{__install} -m 0644 %{SOURCE12} ${RPM_BUILD_ROOT}%{confdir}/conf.d/ + +# Substitute libnames in catalina-tasks.xml +sed -i \ + "s,el-api.jar,%{name}-el-%{elspec}-api.jar,; + s,servlet-api.jar,%{name}-servlet-%{servletspec}-api.jar,; + s,jsp-api.jar,%{name}-jsp-%{jspspec}-api.jar,;" \ + ${RPM_BUILD_ROOT}%{bindir}/catalina-tasks.xml + +# create jsp and servlet API symlinks +pushd ${RPM_BUILD_ROOT}%{_javadir} + %{__mv} %{name}/jsp-api.jar %{name}-jsp-%{jspspec}-api.jar + %{__ln_s} %{name}-jsp-%{jspspec}-api.jar %{name}-jsp-api.jar + %{__mv} %{name}/servlet-api.jar %{name}-servlet-%{servletspec}-api.jar + %{__ln_s} %{name}-servlet-%{servletspec}-api.jar %{name}-servlet-api.jar + %{__mv} %{name}/el-api.jar %{name}-el-%{elspec}-api.jar + %{__ln_s} %{name}-el-%{elspec}-api.jar %{name}-el-api.jar +popd + +pushd output/build + %{_bindir}/build-jar-repository lib ecj 2>&1 +popd + +pushd ${RPM_BUILD_ROOT}%{libdir} + # symlink JSP and servlet API jars + %{__ln_s} ../../java/%{name}-jsp-%{jspspec}-api.jar . + %{__ln_s} ../../java/%{name}-servlet-%{servletspec}-api.jar . + %{__ln_s} ../../java/%{name}-el-%{elspec}-api.jar . + %{__ln_s} $(build-classpath ecj/ecj) jasper-jdt.jar + + cp ../../%{name}/bin/tomcat-juli.jar . +popd + +# symlink to the FHS locations where we've installed things +pushd ${RPM_BUILD_ROOT}%{homedir} + %{__ln_s} %{appdir} webapps + %{__ln_s} %{confdir} conf + %{__ln_s} %{libdir} lib + %{__ln_s} %{logdir} logs + %{__ln_s} %{tempdir} temp + %{__ln_s} %{workdir} work +popd + +# Install the maven metadata for the spec impl artifacts as other projects use them +#%{__install} -d -m 0755 ${RPM_BUILD_ROOT}%{_mavenpomdir} +pushd res/maven + for pom in *.pom; do + # fix-up version in all pom files + sed -i 's/@MAVEN.DEPLOY.VERSION@/%{version}/g' $pom + done +popd + +# Configure and install maven artifacts +%mvn_artifact res/maven/tomcat-el-api.pom output/build/lib/el-api.jar +%mvn_artifact res/maven/tomcat-jsp-api.pom output/build/lib/jsp-api.jar +%mvn_artifact res/maven/tomcat-servlet-api.pom output/build/lib/servlet-api.jar + +%mvn_file org.apache.tomcat:tomcat-annotations-api tomcat/annotations-api +%mvn_artifact res/maven/tomcat-annotations-api.pom ${RPM_BUILD_ROOT}%{libdir}/annotations-api.jar +%mvn_artifact res/maven/tomcat-api.pom ${RPM_BUILD_ROOT}%{libdir}/tomcat-api.jar +%mvn_file org.apache.tomcat:tomcat-catalina-ant tomcat/catalina-ant +%mvn_artifact res/maven/tomcat-catalina-ant.pom ${RPM_BUILD_ROOT}%{libdir}/catalina-ant.jar +%mvn_file org.apache.tomcat:tomcat-catalina-ha tomcat/catalina-ha +%mvn_artifact res/maven/tomcat-catalina-ha.pom ${RPM_BUILD_ROOT}%{libdir}/catalina-ha.jar +%mvn_file org.apache.tomcat:tomcat-catalina tomcat/catalina +%mvn_artifact res/maven/tomcat-catalina.pom ${RPM_BUILD_ROOT}%{libdir}/catalina.jar +%mvn_artifact res/maven/tomcat-coyote.pom ${RPM_BUILD_ROOT}%{libdir}/tomcat-coyote.jar +%mvn_artifact res/maven/tomcat-dbcp.pom ${RPM_BUILD_ROOT}%{libdir}/tomcat-dbcp.jar +%mvn_artifact res/maven/tomcat-i18n-cs.pom ${RPM_BUILD_ROOT}%{libdir}/tomcat-i18n-cs.jar +%mvn_artifact res/maven/tomcat-i18n-de.pom ${RPM_BUILD_ROOT}%{libdir}/tomcat-i18n-de.jar +%mvn_artifact res/maven/tomcat-i18n-es.pom ${RPM_BUILD_ROOT}%{libdir}/tomcat-i18n-es.jar +%mvn_artifact res/maven/tomcat-i18n-fr.pom ${RPM_BUILD_ROOT}%{libdir}/tomcat-i18n-fr.jar +%mvn_artifact res/maven/tomcat-i18n-ja.pom ${RPM_BUILD_ROOT}%{libdir}/tomcat-i18n-ja.jar +%mvn_artifact res/maven/tomcat-i18n-ko.pom ${RPM_BUILD_ROOT}%{libdir}/tomcat-i18n-ko.jar +%mvn_artifact res/maven/tomcat-i18n-pt-BR.pom ${RPM_BUILD_ROOT}%{libdir}/tomcat-i18n-pt-BR.jar +%mvn_artifact res/maven/tomcat-i18n-ru.pom ${RPM_BUILD_ROOT}%{libdir}/tomcat-i18n-ru.jar +%mvn_artifact res/maven/tomcat-i18n-zh-CN.pom ${RPM_BUILD_ROOT}%{libdir}/tomcat-i18n-zh-CN.jar +%mvn_file org.apache.tomcat:tomcat-jasper-el tomcat/jasper-el +%mvn_artifact res/maven/tomcat-jasper-el.pom ${RPM_BUILD_ROOT}%{libdir}/jasper-el.jar +%mvn_file org.apache.tomcat:tomcat-jasper tomcat/jasper +%mvn_artifact res/maven/tomcat-jasper.pom ${RPM_BUILD_ROOT}%{libdir}/jasper.jar +%mvn_file org.apache.tomcat:tomcat-jaspic-api tomcat/jaspic-api +%mvn_artifact res/maven/tomcat-jaspic-api.pom ${RPM_BUILD_ROOT}%{libdir}/jaspic-api.jar +%mvn_artifact res/maven/tomcat-jdbc.pom ${RPM_BUILD_ROOT}%{libdir}/tomcat-jdbc.jar +%mvn_artifact res/maven/tomcat-jni.pom ${RPM_BUILD_ROOT}%{libdir}/tomcat-jni.jar +%mvn_artifact res/maven/tomcat-juli.pom ${RPM_BUILD_ROOT}%{libdir}/tomcat-juli.jar +%mvn_file org.apache.tomcat:tomcat-ssi tomcat/catalina-ssi +%mvn_artifact res/maven/tomcat-ssi.pom ${RPM_BUILD_ROOT}%{libdir}/catalina-ssi.jar +%mvn_file org.apache.tomcat:tomcat-storeconfig tomcat/catalina-storeconfig +%mvn_artifact res/maven/tomcat-storeconfig.pom ${RPM_BUILD_ROOT}%{libdir}/catalina-storeconfig.jar +%mvn_file org.apache.tomcat:tomcat-tribes tomcat/catalina-tribes +%mvn_artifact res/maven/tomcat-tribes.pom ${RPM_BUILD_ROOT}%{libdir}/catalina-tribes.jar +%mvn_artifact res/maven/tomcat-util-scan.pom ${RPM_BUILD_ROOT}%{libdir}/tomcat-util-scan.jar +%mvn_artifact res/maven/tomcat-util.pom ${RPM_BUILD_ROOT}%{libdir}/tomcat-util.jar +%mvn_file org.apache.tomcat:tomcat-websocket-api tomcat/websocket-api +%mvn_artifact res/maven/tomcat-websocket-api.pom ${RPM_BUILD_ROOT}%{libdir}/websocket-api.jar +%mvn_artifact res/maven/tomcat-websocket.pom ${RPM_BUILD_ROOT}%{libdir}/tomcat-websocket.jar +%mvn_artifact res/maven/tomcat-websocket-client-api.pom ${RPM_BUILD_ROOT}%{libdir}/websocket-client-api.jar +%mvn_artifact res/maven/tomcat.pom + +%mvn_install + +install -m0644 -D %{S:13} %{buildroot}%{_sysusersdir}/%{name}.conf + +%pre +%sysusers_create_compat %{S:13} + +%post +# install but don't activate +%systemd_post %{name}.service + +%preun +# clean tempdir and workdir on removal or upgrade +%{__rm} -rf %{workdir}/* %{tempdir}/* +%systemd_preun %{name}.service + +%postun +%systemd_postun_with_restart %{name}.service + +%files +%defattr(0664,root,tomcat,0755) +%doc {LICENSE,NOTICE,RELEASE*} +%attr(0755,root,root) %{_bindir}/%{name}-digest +%attr(0755,root,root) %{_bindir}/%{name}-tool-wrapper +%attr(0755,root,root) %{_sbindir}/%{name} +%attr(0644,root,root) %{_unitdir}/%{name}.service +%attr(0644,root,root) %{_unitdir}/%{name}@.service +%attr(0755,root,root) %dir %{_libexecdir}/%{name} +%attr(0755,root,root) %dir %{_localstatedir}/lib/tomcats +%attr(0644,root,root) %{_libexecdir}/%{name}/functions +%attr(0755,root,root) %{_libexecdir}/%{name}/preamble +%attr(0755,root,root) %{_libexecdir}/%{name}/server +%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/sysconfig/%{name} +%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/logrotate.d/%{name}.disabled +%attr(0755,root,tomcat) %dir %{basedir} +%attr(0755,root,tomcat) %dir %{confdir} + +%defattr(0664,tomcat,root,0770) +%attr(0770,tomcat,root) %dir %{logdir} + +%defattr(0664,root,tomcat,0770) +%attr(0770,root,tomcat) %dir %{cachedir} +%attr(0770,root,tomcat) %dir %{tempdir} +%attr(0770,root,tomcat) %dir %{workdir} + +%defattr(0644,root,tomcat,0775) +%attr(0775,root,tomcat) %dir %{appdir} +%attr(0775,root,tomcat) %dir %{confdir}/Catalina +%attr(0775,root,tomcat) %dir %{confdir}/Catalina/localhost +%attr(0755,root,tomcat) %dir %{confdir}/conf.d +%{confdir}/conf.d/README +%{confdir}/conf.d/module-start-up-parameters.conf +%config(noreplace) %{confdir}/%{name}.conf +%config(noreplace) %{confdir}/*.policy +%config(noreplace) %{confdir}/*.properties +%config(noreplace) %{confdir}/context.xml +%config(noreplace) %{confdir}/server.xml +%attr(0640,root,tomcat) %config(noreplace) %{confdir}/tomcat-users.xml +%attr(0664,root,tomcat) %{confdir}/tomcat-users.xsd +%attr(0664,root,tomcat) %config(noreplace) %{confdir}/jaspic-providers.xml +%attr(0664,root,tomcat) %{confdir}/jaspic-providers.xsd +%config(noreplace) %{confdir}/web.xml +%dir %{homedir} +%{bindir}/bootstrap.jar +%{bindir}/catalina-tasks.xml +%{homedir}/lib +%{homedir}/temp +%{homedir}/webapps +%{homedir}/work +%{homedir}/logs +%{homedir}/conf +%{_sysusersdir}/%{name}.conf + +%files admin-webapps +%defattr(0664,root,tomcat,0755) +%{appdir}/host-manager +%{appdir}/manager + +%files docs-webapp +%{appdir}/docs + +%files lib -f .mfiles +%dir %{libdir} +%{libdir}/*.jar +%{_javadir}/*.jar +%{bindir}/tomcat-juli.jar +%exclude %{libdir}/%{name}-el-%{elspec}-api.jar +%exclude %{libdir}/%{name}-servlet-%{servletspec}*.jar +%exclude %{libdir}/%{name}-jsp-%{jspspec}*.jar +%exclude %{_javadir}/%{name}-servlet-%{servletspec}*.jar +%exclude %{_javadir}/%{name}-el-%{elspec}-api.jar +%exclude %{_javadir}/%{name}-jsp-%{jspspec}*.jar +%exclude %{_javadir}/%{name}-servlet-api.jar +%exclude %{_javadir}/%{name}-el-api.jar +%exclude %{_javadir}/%{name}-jsp-api.jar +%exclude %{_jnidir}/* + +%files jsp-%{jspspec}-api -f .mfiles-tomcat-jsp-api +%{_javadir}/%{name}-jsp-%{jspspec}*.jar +%{libdir}/%{name}-jsp-%{jspspec}*.jar +%{_javadir}/%{name}-jsp-api.jar + +%files servlet-%{servletspec}-api -f .mfiles-tomcat-servlet-api +%doc LICENSE +%{_javadir}/%{name}-servlet-%{servletspec}*.jar +%{libdir}/%{name}-servlet-%{servletspec}*.jar +%{_javadir}/%{name}-servlet-api.jar + +%files el-%{elspec}-api -f .mfiles-tomcat-el-api +%doc LICENSE +%{_javadir}/%{name}-el-%{elspec}-api.jar +%{libdir}/%{name}-el-%{elspec}-api.jar +%{_javadir}/%{name}-el-api.jar + +%files webapps +%defattr(0644,tomcat,tomcat,0755) +%{appdir}/ROOT + +%changelog +* Fri Nov 27 2026 AI Importer <ai-importer@openeuler.org> - 1:10.1.54-1 +- update to 10.1.54 + +* Mon Nov 23 2026 wangkai <13474090681@163.com> - 1:10.1.62-1 +- update to 10.1.62 +- Backport fix for CVE-2026-133325 (TLS-PSK with TLS 1.3 must reject + peers that authenticate with a certificate instead of the PSK) + +* Tue Oct 13 2026 Funda Wang <fundawang@yeah.net> - 1:10.1.61-1 +- update to 10.1.61 + +* Sat Oct 10 2026 xu_ping <707078654@qq.com> - 1:10.1.60-1 +- update to 10.1.60 + +* Sat Aug 22 2026 Funda Wang <fundawang@yeah.net> - 1:10.1.59-1 +- update to 10.1.59 + +* Mon Aug 17 2026 wangkai <13474090681@163.com> - 1:10.1.57-3 +- Fix installation warning messages + +* Wed Jul 29 2026 yaoxin <1024769339@qq.com> - 1:10.1.57-2 +- Fix CVE-2026-66299 + +* Wed Jul 15 2026 yaoxin <1024769339@qq.com> - 1:10.1.57-1 +- Update to 10.1.57 for fix CVE-2026-59083 and CVE-2026-59084 + +* Tue Jun 30 2026 yaoxin <1024769339@qq.com> - 1:10.1.56-1 +- Update to 10.1.56 for fix CVEs: CVE-2026-50229, CVE-2026-53404, + CVE-2026-53434, CVE-2026-55276, CVE-2026-55955, CVE-2026-55956, + CVE-2026-55957 + +* Wed Jun 17 2026 Ge Wang <wang__ge@126.com> - 1:10.1.55-1 +- Update to 10.1.55 + +* Wed May 13 2026 yaoxin <1024769339@qq.com> - 1:9.0.118-1 +- Update to 9.0.118 for fix CVEs: CVE-2026-41284, CVE-2026-41293, + CVE-2026-42498, CVE-2026-43512, CVE-2026-43513, CVE-2026-43514, + CVE-2026-43515 +- Fix tomcat-jsvc stop failed + +* Fri Apr 10 2026 yaoxin <1024769339@qq.com> - 1:9.0.117-1 +- Update to 9.0.117 for fix CVEs: CVE-2026-24880, CVE-2026-25854, + CVE-2026-29129, CVE-2026-29145, CVE-2026-29146, CVE-2026-32990, + CVE-2026-34483, CVE-2026-34486, CVE-2026-34487, CVE-2026-34500 + +* Wed Mar 11 2026 yaoxin <1024769339@qq.com> - 1:9.0.115-1 +- Update to 9.0.115 for fix CVE-2026-24733, CVE-2026-24734 and CVE-2025-66614 + +* Tue Mar 03 2026 wangkai <13474090681@163.com> - 1:9.0.100-10 +- Replace %%add_maven_depmap with %%mvn_artifact + +* Tue Oct 28 2025 yaoxin <1024769339@qq.com> - 1:9.0.100-9 +- Fix CVE-2025-55752, CVE-2025-55754 and CVE-2025-61795 + +* Fri Aug 15 2025 Yu Peng <yupeng@kylinos.cn> - 1:9.0.100-8 +- Fix CVE-2025-48989 + +* Thu Aug 14 2025 Yu Peng <yupeng@kylinos.cn> - 1:9.0.100-7 +- Fix CVE-2025-55668 + +* Fri Jul 11 2025 wangkai <13474090681@163.com> - 1:9.0.100-6 +- Fix CVE-2025-52434 CVE-2025-53506 CVE-2025-52520 + +* Mon Jun 30 2025 wangkai <13474090681@163.com> - 1:9.0.100-5 +- Fix CVE-2025-48976 + +* Wed Jun 18 2025 wangkai <13474090681@163.com> - 1:9.0.100-4 +- Fix CVE-2025-48988, CVE-2025-49125 + +* Wed Jun 04 2025 yaoxin <1024769339@qq.com> - 1:9.0.100-3 +- Fix CVE-2025-46701 + +* Tue Apr 29 2025 wangkai <13474090681@163.com> - 1:9.0.100-2 +- Fix CVE-2025-31650, CVE-2025-31651 + +* Fri Feb 21 2025 wangkai <13474090681@163.com> - 1:9.0.100-1 +- Update to 9.0.100 for fix CVE-2024-56337 +- Add a check to ensure that, if one or more web applications are potentially vulnerable to CVE-2024-56337, + the JVM has been configured to protect against the vulnerability and to configure the JVM correctly if not. + +* Wed Dec 18 2024 wangkai <13474090681@163.com> - 1:9.0.96-4 +- Fix CVE-2024-50379 CVE-2024-54677 + +* Tue Nov 26 2024 wangkai <13474090681@163.com> - 1:9.0.96-3 +- Add requires ecj for fix server error + +* Tue Nov 19 2024 wangkai <13474090681@163.com> - 1:9.0.96-2 +- Fix CVE-2024-52318 + +* Thu Nov 07 2024 chenyaqiang <chengyaqiang@huawei.com> - 1:9.0.96-1 +- Update to 9.0.96 +- Fix CVE-2021-43980 CVE-2022-25762 CVE-2023-44487 CVE-2023-46589 + CVE-2024-23672 CVE-2024-24549 CVE-2024-34750 + +* Tue Jan 23 2024 wangkai <13474090681@163.com> - 1:9.0.10-33 +- Fix CVE-2024-21733,CVE-2023-24998,CVE-2023-28709,CVE-2023-42795 + +* Fri Oct 20 2023 wangkai <13474090681@163.com> - 1:9.0.10-32 +- Fix CVE-2023-45648 + +* Thu Sep 07 2023 wangkai <13474090681@163.com> - 1:9.0.10-31 +- Fix CVE-2023-41080 +- Add requires apache-commons-dbcp,pool,collections for fix path error + +* Mon Apr 17 2023 wangkai <13474090681@163.com> - 1:9.0.10-30 +- Fix CVE-2023-28708 + +* Wed Dec 21 2022 xulei <xulei@xfusion.com> - 1:9.0.10-29 +- Fix CVE-2022-42252 + +* Fri Aug 12 2022 liyanan <liyanan32@h-partners.com> - 1:9.0.10-28 +- Update build-classpath calls to ECJ to specify the JAR we want to use + +* Tue May 24 2022 chenchen <chen_aka_jan@163.com> - 1:9.0.10-27 +- fix build error + +* Mon Apr 25 2022 wangkai <wangkai@h-partners.com - 1:9.0.10-26 +- Refix CVE-2021-41079 + +* Fri Feb 18 2022 wangkai <wangkai385@huawei.com> - 1:9.0.10-25 +- Fix CVE-2022-23181 + +* Wed Nov 10 2021 caodongxia <caodongxia@huawei.com> - 1:9.0.10-24 +- Replace recommends libtcnative-1-0 with requires libtcnative-1-0 + +* Wed Nov 3 2021 caodongxia <caodongxia@huawei.com> - 1:9.0.10-23 +- Replace recommends tomcat-native with libtcnative-1-0 + +* Thu Oct 28 2021 liwu <liwu13@huawei.com> - 1:9.0.10-22 +- Fix CVE-2021-42340 + +* Sat Oct 9 2021 houyingchao <houyingchao@huawei.com> - 1:9.0.10-21 +- Fix CVE-2021-41079 + +* Thu Jul 29 2021 wangyue <wangyue92@huawei.com> - 1:9.0.10-20 +- Fix CVE-2021-30640 + +* Mon Jul 19 2021 wangyue <wangyue92@huawei.com> - 1:9.0.10-19 +- Fix CVE-2021-33037 + +* Fri Mar 12 2021 wangyue <wangyue92@huawei.com> - 1:9.0.10-18 +- Type:cve +- ID: CVE-2021-25122 CVE-2021-25329 +- SUG:restart +- DESC: fix CVE-2021-25122 CVE-2021-25329 + +* Thu Feb 18 2021 wangxiao <wangxiao65@huawei.com> - 1:9.0.10-17 +- Type:cve +- ID: CVE-2021-24122 +- SUG:restart +- DESC: fix CVE-2021-24122 + +* Sat Dec 12 2020 zhanghua <zhanghua40@huawei.com> - 1:9.0.10-16 +- Type:cve +- ID: CVE-2020-17527 +- SUG:restart +- DESC: fix CVE-2020-17527 + +* Wed Dec 2 2020 jialei <jialei17@huawei.com> - 1:9.0.10-15 +- Type:cves +- ID: CVE-2020-13943 +- SUG:restart +- DESC: fix CVE-2020-13943 + +* Wed Sep 9 2020 wangxiao <wangxiao65@huawei.com> - 1:9.0.10-14 +- Type:cves +- ID: CVE-2020-9484 CVE-2020-11996 CVE-2020-13934 CVE-2020-13935 +- SUG:restart +- DESC: fix CVE-2020-9484 CVE-2020-11996 CVE-2020-13934 CVE-2020-13935 + +* Tue May 19 2020 huanghaitao <huanghaitao8@huawei.com> - 1:9.0.10-13 +- Type:cves +- ID: CVE-2019-17563 CVE-2019-12418 CVE-2020-1935 CVE-2020-1938 +- SUG:restart +- DESC: fix CVE-2019-17563 CVE-2019-12418CVE-2020-1935 CVE-2020-1938 + +* Mon May 11 2020 Guoshuai Sun<sunguoshuai@huawei.com> - 1:9.0.10-12 +- Add install require ecj package + +* Fri Feb 28 2020 Senlin Xia<xiasenlin1@huawei.com> - 1:9.0.10-11 +- Package init |
