Skip to content

Commit

Permalink
add javax jars for tomcat 10+
Browse files Browse the repository at this point in the history
  • Loading branch information
zspitzer committed Dec 6, 2024
1 parent 8600591 commit 8794822
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions download-latest-java-tomcat.cfm
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
https://jakarta.ee/xml/ns/jakartaee/web-app_6_0.xsd"
version="6.0">';
FileCopy("lucee/tomcat10/conf/catalina.properties", "lucee/tomcat9/tomcat-lucee-conf/conf/catalina.properties");
addJavaxJars(getDirectoryFromPath( getCurrentTemplatePath() ) & "lucee/lucee/lib/");
break;
default:
throw "Unsupported Tomcat version [#tomcat_version#]";
Expand Down Expand Up @@ -132,6 +133,21 @@
return true;
};
function addJavaxJars(jarPath){
// tomcat 10+ uses jarkarta but needs the javax servlet jars too
logger( "Adding javax jars to [#jarPath#]" );
var jars = [
"https://repo1.maven.org/maven2/javax/servlet/javax.servlet-api/4.0.1/javax.servlet-api-4.0.1.jar",
"https://repo1.maven.org/maven2/javax/servlet/jsp/javax.servlet.jsp-api/2.3.3/javax.servlet.jsp-api-2.3.3.jar",
"https://repo1.maven.org/maven2/javax/el/javax.el-api/3.0.0/javax.el-api-3.0.0.jar"
];
for (var jar in jars){
logger(chr(9) & jar);
http method="get" url=jar path=arguments.jarPath file=listlast(jar,"/") throwOnError=true;
}
}
/*
// lucee ignores permissions when extracting files
function applyPermissions( src, dest ){
Expand Down

0 comments on commit 8794822

Please sign in to comment.