-
Enhancement
-
Resolution: Done
-
Critical
-
None
The JBoss Log Manager allows for a module to be defined and it uses JBoss Modules to load said module. However if the log manager is on the boot class path, the log manager cannot see JBoss Modules and therefore cannot load the module.
Example exception:
Failed to read or configure the org.jboss.logmanager.LogManager java.lang.IllegalArgumentException: Failed to load module "org.jboss.logmanager" for formatter "JSON" at org.jboss.logmanager.config.AbstractPropertyConfiguration.<init>(AbstractPropertyConfiguration.java:65) at org.jboss.logmanager.config.FormatterConfigurationImpl.<init>(FormatterConfigurationImpl.java:30) at org.jboss.logmanager.config.LogContextConfigurationImpl.addFormatterConfiguration(LogContextConfigurationImpl.java:172) at org.jboss.logmanager.PropertyConfigurator.configureFormatter(PropertyConfigurator.java:631) at org.jboss.logmanager.PropertyConfigurator.configureHandler(PropertyConfigurator.java:701) at org.jboss.logmanager.PropertyConfigurator.configureLogger(PropertyConfigurator.java:583) at org.jboss.logmanager.PropertyConfigurator.configure(PropertyConfigurator.java:521) at org.jboss.logmanager.PropertyConfigurator.configure(PropertyConfigurator.java:97) at org.jboss.logmanager.LogManager.readConfiguration(LogManager.java:170) at org.jboss.logmanager.LogManager.readConfiguration(LogManager.java:132) at java.util.logging.LogManager$3.run(LogManager.java:399) at java.util.logging.LogManager$3.run(LogManager.java:396) at java.security.AccessController.doPrivileged(Native Method) at java.util.logging.LogManager.readPrimordialConfiguration(LogManager.java:396) at java.util.logging.LogManager.access$800(LogManager.java:145) at java.util.logging.LogManager$2.run(LogManager.java:345) at java.security.AccessController.doPrivileged(Native Method) at java.util.logging.LogManager.ensureLogManagerInitialized(LogManager.java:338) at java.util.logging.LogManager.getLogManager(LogManager.java:378) at org.jboss.modules.Main.main(Main.java:523) Caused by: java.lang.NoClassDefFoundError: org/jboss/modules/ModuleLoader at org.jboss.logmanager.config.AbstractPropertyConfiguration$ModuleFinder.getClassLoader(AbstractPropertyConfiguration.java:556) at org.jboss.logmanager.config.AbstractPropertyConfiguration.<init>(AbstractPropertyConfiguration.java:63) ... 19 more
Making JBoss Modules an agent and allowing other agents to be passed via module arguments avoids the need for the jboss-logmangaer to be on the boot class path. This also will fix issues with the JBoss Logger Finder issue LOGMGR-254.
- blocks
-
WFCORE-4674 Custom handlers, formatters and filters cause the server to crash if the log manager is on the boot class path
- Closed
-
WFCORE-4676 Upgrade jboss-modules from 1.9.1.Final to 1.10.0.Final
- Resolved
- is incorporated by
-
WFCORE-4824 Upgrade JBoss Modules from 1.9.2 to 1.10.0.Final
- Closed
- is related to
-
LOGMGR-261 If a module is defined and the log manager is on boot class path the log manager will fail to configure
- Closed
- relates to
-
WFCORE-4748 Expose the ability to add jboss-modules specific arguments
- Closed
-
JBEAP-21375 [GSS](7.3.z) Custom handlers cause JBoss EAP 7 to crash if the log manager is on the boot class path
- Closed
-
WFCORE-4805 WildFly Security Manager does not act for javaagents
- Closed
-
LOGMGR-254 JDK11, Warning when starting WildFly with logmanager in bootclasspath
- Open
-
BYTEMAN-398 Check the entry points class loader before using the system class loader
- Closed