Add ant and tools jars to the classpath to enable JSP compilation at runtime

This commit is contained in:
Coty Sutherland 2018-06-15 14:16:40 -04:00
parent 5782fd7152
commit 38e917d343
2 changed files with 7 additions and 0 deletions

View File

@ -101,7 +101,9 @@ BuildRequires: jpackage-utils >= 0:1.7.0
BuildRequires: javapackages-local
%endif
Requires: ant
Requires: java-headless >= 1:1.8.0
Requires: java-devel >= 1:1.8.0
Requires: jpackage-utils
Requires: procps
Requires(pre): shadow-utils

View File

@ -43,6 +43,11 @@ fi
CLASSPATH="${CLASSPATH}${CATALINA_HOME}/bin/bootstrap.jar"
CLASSPATH="${CLASSPATH}:${CATALINA_HOME}/bin/tomcat-juli.jar"
# Since ECJ is no longer available, add ant, ant-launcher, and tools jars to the
# classpath so that runtime compilation of JSPs still works.
CLASSPATH="${CLASSPATH}:/usr/share/java/ant.jar:/usr/share/java/ant-launcher.jar"
CLASSPATH="${CLASSPATH}:/usr/lib/jvm/java/lib/tools.jar"
if [ -z "$LOGGING_PROPERTIES" ] ; then
LOGGING_PROPERTIES="${CATALINA_BASE}/conf/logging.properties"
if [ ! -f "${LOGGING_PROPERTIES}" ] ; then