Anyone using Lucee 6.2.x on Jetty 12? I have used Jetty 8, 9 and 10 in production but Jetty 12 seems to be a new beast. Lucee never deploys. I can’t even serve static content.
OS : Linux and Windows
Java Version : JDK 21.0.8+9
Tomcat Version : n/a
Lucee Version : Lucee 6.2.1.122.jar
You’ll need the javax libraries, 6.2 supports Jakarta (i.e. jetty 12) but is still javax based
See the addJavaXjars function around line 237
directory=arguments.tmpDest;
if ( len( local.error ) ) throw local.error;
// logger( local.out );
break;
default:
throw "_extract: unsupported format (#arguments.format#)";
}
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);
You’ll need to download and add these jars to the jetty lib folder / classpath
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
Lucee 7 latest snapshots should just work as we switched to Jakarta
1 Like