Skip to content

Issue 52684: Update Log4j plugin registration #6708

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 18 commits into from
Jun 8, 2025

Conversation

labkey-jeckels
Copy link
Contributor

Rationale

Log4J deprecated the approach we were using for plugin registration and started complaining about conflicting buffering configuration. Since we need to refactor how Log4J gets onto the class path, we can use this as an opportunity to share more extraction code with our tests.

Related Pull Requests

Changes

  • Invoke EmbeddedExtractor code through reflection
  • Remove now redundant extraction code
  • Minor code cleanup

@labkey-jeckels labkey-jeckels requested a review from a team May 28, 2025 00:09
{
List<String> args = new ArrayList<>();
args.add(System.getProperty("java.home") + "/bin/java" + (SystemUtils.IS_OS_WINDOWS ? ".exe" : ""));
File labkeyBootstrap = new File(new File(new File(System.getProperty("catalina.home")), "lib"), "labkeyBootstrap.jar");
File servletApi = null;
File labkeyBootstrap = new File(new File(System.getProperty("catalina.home")), "labkeyBootstrap.jar");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm confused by this change. Seems like labkeyBootstrap.jar is still in a lib directory, or am I looking in the wrong place?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image

Here's the layout on my dev machine. The code isn't deleting any previously extracted files. Is it an older copy, maybe?

Copy link
Contributor

@labkey-susanh labkey-susanh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Have more clarity after our chat.

@labkey-jeckels labkey-jeckels merged commit 50b2617 into develop Jun 8, 2025
7 checks passed
@labkey-jeckels labkey-jeckels deleted the fb_52684_log4jPlugins branch June 8, 2025 15:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants