Skip to content
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

Ensure that LabKey's log4j2.xml file is used #883

Merged
merged 2 commits into from
Sep 18, 2024
Merged

Conversation

labkey-adam
Copy link
Contributor

@labkey-adam labkey-adam commented Sep 18, 2024

Rationale

BioJava's log4j2.xml file was getting used by log4j2 instead of ours. https://www.labkey.org/home/Developer/issues/issues-details.view?issueId=51286

Related Pull Requests

@labkey-tchad
Copy link
Member

Server startup failure:

FATAL ModuleLoader             2024-09-18T03:45:05,237           Module Upgrade : Startup failure, terminating
java.lang.NoSuchMethodError: 'void org.labkey.filters.ContentSecurityPolicyFilter.unregisterAllowedConnectionSource(java.lang.String)'
	at org.labkey.core.analytics.AnalyticsServiceImpl.resetCSP(AnalyticsServiceImpl.java:117) ~[core-24.10-SNAPSHOT.jar:?]
	at org.labkey.core.CoreModule.startupAfterSpringConfig(CoreModule.java:911) ~[core-24.10-SNAPSHOT.jar:?]
	at org.labkey.api.module.SpringModule.doStartup(SpringModule.java:119) ~[api-24.10-SNAPSHOT.jar:?]
	at org.labkey.api.module.DefaultModule.startup(DefaultModule.java:229) ~[api-24.10-SNAPSHOT.jar:?]
	at org.labkey.api.module.ModuleLoader.completeStartup(ModuleLoader.java:1627) ~[api-24.10-SNAPSHOT.jar:?]
	at org.labkey.api.module.ModuleLoader.initiateModuleStartup(ModuleLoader.java:1566) ~[api-24.10-SNAPSHOT.jar:?]
	at org.labkey.api.module.ModuleLoader.afterUpgrade(ModuleLoader.java:1803) ~[api-24.10-SNAPSHOT.jar:?]
	at org.labkey.api.module.ModuleLoader.lambda$startNonCoreUpgradeAndStartup$16(ModuleLoader.java:1787) ~[api-24.10-SNAPSHOT.jar:?]
	at org.labkey.api.module.ModuleUpgrader.lambda$upgrade$0(ModuleUpgrader.java:111) ~[api-24.10-SNAPSHOT.jar:?]
	at java.base/java.lang.Thread.run(Thread.java:833) [?:?]

….xml file. Avoid ContentSecurityPolicyFilter and other classes we don't want.
@labkey-adam labkey-adam merged commit 38fa85b into develop Sep 18, 2024
4 checks passed
@labkey-adam labkey-adam deleted the fb_log4j2_xml branch September 18, 2024 19:25
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