Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ apacheDirectoryVersion=2.1.7
apacheMinaVersion=2.2.4

# Usually matches the version specified as a Spring Boot dependency (see springBootVersion below)
apacheTomcatVersion=10.1.50
apacheTomcatVersion=11.0.15

# (mothership) -> json-path -> json-smart -> accessor-smart
# (core) -> graalvm
Expand Down Expand Up @@ -274,7 +274,7 @@ rforgeVersion=0.6-8.1
romeVersion=2.1.0

# Tomcat 10 implements 6.x
servletApiVersion=6.0.0
servletApiVersion=6.1.0

# this version is forced for compatibility with pipeline and tika
slf4jLog4j12Version=2.0.17
Expand All @@ -285,9 +285,9 @@ slf4jLog4jApiVersion=2.0.17
snappyJavaVersion=1.1.10.8

# Also, update apacheTomcatVersion above to match Spring Boot's Tomcat dependency version
springBootVersion=3.5.8
springBootVersion=4.0.1
# This usually matches the Spring Framework version dictated by springBootVersion
springVersion=6.2.15
springVersion=7.0.2

sqliteJdbcVersion=3.51.1.0

Expand Down
5 changes: 0 additions & 5 deletions server/embedded/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,6 @@ dependencies {
strictly "${springVersion}"
}
}
implementation('org.springframework:spring-jcl') {
version {
strictly "${springVersion}"
}
}
implementation('org.springframework:spring-web') {
version {
strictly "${springVersion}"
Expand Down
4 changes: 2 additions & 2 deletions server/embedded/src/org/labkey/embedded/LabKeyServer.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.ApplicationPidFileWriter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory;
import org.springframework.boot.tomcat.servlet.TomcatServletWebServerFactory;
import org.springframework.boot.web.server.WebServerFactoryCustomizer;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
Expand Down Expand Up @@ -193,7 +193,7 @@ public TomcatServletWebServerFactory servletContainerFactory()
Connector httpConnector = new Connector();
httpConnector.setScheme("http");
httpConnector.setPort(contextProperties.getHttpPort());
result.addAdditionalTomcatConnectors(httpConnector);
result.addAdditionalConnectors(httpConnector);
}

return result;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
import org.apache.logging.log4j.Logger;
import org.apache.tomcat.util.descriptor.web.ContextResource;
import org.labkey.bootstrap.ConfigException;
import org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory;
import org.springframework.boot.web.embedded.tomcat.TomcatWebServer;
import org.springframework.boot.tomcat.TomcatWebServer;
import org.springframework.boot.tomcat.servlet.TomcatServletWebServerFactory;
import org.springframework.boot.web.servlet.ServletContextInitializer;

import javax.sql.DataSource;
Expand Down Expand Up @@ -72,7 +72,7 @@ public LabKeyTomcatServletWebServerFactory(LabKeyServer server)
protected void prepareContext(Host host, ServletContextInitializer[] initializers)
{
// Prevent the Spring Boot webapp from trying to deserialize the LabKey sessions
getSession().setPersistent(false);
getSettings().getSession().setPersistent(false);

// Don't use Spring Boot's error pages, as we want to render our own
setErrorPages(Collections.emptySet());
Expand Down Expand Up @@ -121,7 +121,7 @@ protected TomcatWebServer getTomcatWebServer(Tomcat tomcat)
setRegisterDefaultServlet(false);

// We want the LK webapp to serialize/deserialize sessions during restarts
getSession().setPersistent(true);
getSettings().getSession().setPersistent(true);

// Spring Boot's webapp is being deployed to the root. We have to deploy elsewhere in this initial
// call, but can immediately swap it with the desired place
Expand All @@ -130,7 +130,7 @@ protected TomcatWebServer getTomcatWebServer(Tomcat tomcat)
context.setPath(contextProperties.getContextPath());

// Propagate standard Spring Boot properties such as the session timeout
configureContext(context, new ServletContextInitializer[0]);
configureContext(context, Collections.emptyList());

LabKeyServer.CSPFilterProperties cspFilterProperties = _server.cspSource();

Expand Down