Skip to content

Remove jvmrunargs lookup #3874

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

Open
wants to merge 3 commits into
base: 2.x
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
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
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,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, StrLookup> strLookupMap = new HashMap<>();
Expand Down Expand Up @@ -126,11 +124,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-web module "
+ "available. If you want better web container support, please add the log4j-web JAR to your "
Expand Down

This file was deleted.

13 changes: 13 additions & 0 deletions src/changelog/.2.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