Skip to content

[LOG4J2-2351] Fix servlet context resolution in composite configurati…#4070

Open
ramanathan1504 wants to merge 1 commit intoapache:2.xfrom
ramanathan1504:issue-2351
Open

[LOG4J2-2351] Fix servlet context resolution in composite configurati…#4070
ramanathan1504 wants to merge 1 commit intoapache:2.xfrom
ramanathan1504:issue-2351

Conversation

@ramanathan1504
Copy link
Contributor

#2351
Fixed composite web initialization so ${web:servletContextName} resolves correctly when log4jConfiguration contains multiple files.
Before fix, composite mode (log4j2-foo.xml,log4j2-bar.xml) left the lookup unresolved, while single-file mode worked.
After local patch (2.26.0-SNAPSHOT), composite output now matches the expected servlet context name.
Single-file control behavior remains correct and unchanged.
Validated in log4j2-web-test on Tomcat 11 with log4j-jakarta-web using composite.jsp and single.jsp.
Result: composite and single configuration paths now resolve servlet context consistently.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

1 participant