This is an automated email from the ASF dual-hosted git repository.
pkarwasz pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/logging-log4j-jakarta.git
The following commit(s) were added to refs/heads/main by this push:
new 3761831 Fix compilation error
3761831 is described below
commit 37618314af7c8dd6dd3b472b0609c7161ee73b9b
Author: Piotr P. Karwasz <[email protected]>
AuthorDate: Tue Jan 28 17:31:23 2025 +0100
Fix compilation error
---
.../org/apache/logging/log4j/web/Log4jWebInitializerImpl.java | 9 ---------
1 file changed, 9 deletions(-)
diff --git
a/log4j-jakarta-web/src/main/java/org/apache/logging/log4j/web/Log4jWebInitializerImpl.java
b/log4j-jakarta-web/src/main/java/org/apache/logging/log4j/web/Log4jWebInitializerImpl.java
index 92403e3..b66a8da 100644
---
a/log4j-jakarta-web/src/main/java/org/apache/logging/log4j/web/Log4jWebInitializerImpl.java
+++
b/log4j-jakarta-web/src/main/java/org/apache/logging/log4j/web/Log4jWebInitializerImpl.java
@@ -41,7 +41,6 @@ import org.apache.logging.log4j.core.lookup.PropertiesLookup;
import org.apache.logging.log4j.core.lookup.StrSubstitutor;
import org.apache.logging.log4j.core.selector.ContextSelector;
import org.apache.logging.log4j.core.selector.NamedContextSelector;
-import org.apache.logging.log4j.core.util.Loader;
import org.apache.logging.log4j.core.util.NetUtils;
import org.apache.logging.log4j.spi.LoggerContextFactory;
import org.apache.logging.log4j.util.LoaderUtil;
@@ -54,14 +53,6 @@ final class Log4jWebInitializerImpl extends
AbstractLifeCycle implements Log4jWe
private static final String WEB_INF = "/WEB-INF/";
- static {
- if
(Loader.isClassAvailable("org.apache.logging.log4j.core.web.JNDIContextFilter"))
{
- throw new IllegalStateException("You are using Log4j 2 in a web
application with the old, extinct "
- + "log4j-web artifact. This is not supported and could
cause serious runtime problems. Please"
- + "remove the log4j-web JAR file from your application.");
- }
- }
-
private final Map<String, String> map = new ConcurrentHashMap<>();
private final StrSubstitutor substitutor =
new ConfigurationStrSubstitutor(new Interpolator(new
PropertiesLookup(map), Collections.emptyMap()));