Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,6 @@ public class Interpolator extends AbstractConfigurationAwareLookup implements Lo

private static final String LOOKUP_KEY_JNDI = "jndi";

private static final String LOOKUP_KEY_JVMRUNARGS = "jvmrunargs";

private static final Logger LOGGER = StatusLogger.getLogger();

private final Map<String, Supplier<? extends StrLookup>> strLookups = new ConcurrentHashMap<>();
Expand Down Expand Up @@ -79,11 +77,6 @@ private void handleError(final String lookupKey, final Throwable t) {
+ " JNDI string lookups will not be available, continuing configuration. Ignoring "
+ t);
break;
case LOOKUP_KEY_JVMRUNARGS:
// java.lang.VerifyError: org/apache/logging/log4j/core/lookup/JmxRuntimeInputArgumentsLookup
LOGGER.warn("JMX runtime input lookup class is not available because this JRE does not support JMX. "
+ "JMX lookups will not be available, continuing configuration. Ignoring " + t);
break;
case LOOKUP_KEY_WEB:
LOGGER.info(
"Log4j appears to be running in a Servlet environment, but there's no `log4j-jakarta-web` module "
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,14 @@
/**
* Log4j 2 Lookups. These are used in variable interpolation in various configuration attributes.
* {@link org.apache.logging.log4j.core.lookup.StrLookup} plugins should use the
* {@link org.apache.logging.log4j.core.lookup.Lookup} plugin namespace annotation.
* {@linkplain org.apache.logging.log4j.core.config.plugins.Plugin#category() plugin category}
* {@link org.apache.logging.log4j.core.lookup.StrLookup#CATEGORY Lookup}.
*/
@BaselineIgnore("2.26.0")
@Export
@Version("3.0.0")
@Version("2.26.0")
package org.apache.logging.log4j.core.lookup;

import aQute.bnd.annotation.baseline.BaselineIgnore;
import org.osgi.annotation.bundle.Export;
import org.osgi.annotation.versioning.Version;
2 changes: 1 addition & 1 deletion mvnw
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ if [ -n "${distributionSha256Sum-}" ]; then
echo "Please disable validation by removing 'distributionSha256Sum' from your maven-wrapper.properties." >&2
exit 1
elif command -v sha256sum >/dev/null; then
if echo "$distributionSha256Sum $TMP_DOWNLOAD_DIR/$distributionUrlName" | sha256sum -c >/dev/null 2>&1; then
if echo "$distributionSha256Sum $TMP_DOWNLOAD_DIR/$distributionUrlName" | sha256sum -c - >/dev/null 2>&1; then
distributionSha256Result=true
fi
elif command -v shasum >/dev/null; then
Expand Down
13 changes: 13 additions & 0 deletions src/changelog/.3.x.x/3874_remove_jvmrunargs_lookup.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<entry xmlns="https://logging.apache.org/xml/ns"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="
https://logging.apache.org/xml/ns
https://logging.apache.org/xml/ns/log4j-changelog-0.xsd"
type="removed">
<issue id="3874" link="https://github.com/apache/logging-log4j2/pull/3874"/>

<description format="asciidoc">
Remove the `jvmrunargs` lookup.
</description>
</entry>
Loading