Skip to content

Commit

Permalink
[ACS-9045] Bump jetty
Browse files Browse the repository at this point in the history
  • Loading branch information
kmagdziarz committed Dec 17, 2024
1 parent 554232d commit 1b60ba9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ protected WebApplicationContext createWebApplicationContext(ServletContext sc, A

public ConfigurableApplicationContext getApplicationContext()
{
return (ConfigurableApplicationContext)webAppContext.getServletContext().getAttribute(WebApplicationContext.ROOT_WEB_APPLICATION_CONTEXT_ATTRIBUTE);
return (ConfigurableApplicationContext)webAppContext.getContext().getAttribute(WebApplicationContext.ROOT_WEB_APPLICATION_CONTEXT_ATTRIBUTE);
}

protected abstract void configureWebAppContext(WebAppContext webAppContext);
Expand Down Expand Up @@ -210,7 +210,7 @@ public void contextDestroyed(ServletContextEvent sce)

// arbitrary temporary file location
File tmp = new File(TempFileProvider.getSystemTempDir(), String.valueOf(System.currentTimeMillis()));
webAppContext.setResourceBase(tmp.getAbsolutePath());
webAppContext.setContextPath(tmp.getAbsolutePath());
}

/**
Expand Down

0 comments on commit 1b60ba9

Please sign in to comment.