]
James Perkins commented on LOGMGR-254:
--------------------------------------
This will actually end up getting fixed by MODULES-393 as it will avoid the requirement
for the log manager to be on the boot class path.
JDK11, Warning when starting WildFly with logmanager in
bootclasspath
---------------------------------------------------------------------
Key: LOGMGR-254
URL:
https://issues.jboss.org/browse/LOGMGR-254
Project: JBoss Log Manager
Issue Type: Bug
Reporter: Jean Francois Denise
Assignee: James Perkins
Priority: Major
Using JDK11, add the following property when starting standalone.sh:
{code}
-Djboss.modules.system.pkgs=org.jboss.logmanager
-Xbootclasspath/a:$JBOSS_HOME/modules/system/layers/base/org/jboss/logmanager/main/jboss-logmanager-2.1.10.Final.jar:$JBOSS_HOME/modules/system/layers/base/org/wildfly/common/main/wildfly-common-1.5.1.Final.jar
-Djava.util.logging.manager=org.jboss.logmanager.LogManager
-Dsun.util.logging.disableCallerCheck=true
{code}
You will notice the following warning:
{code}
May 15, 2019 4:49:11 PM java.lang.System$LoggerFinder lambda$accessProvider$0
WARNING: Failed to instantiate LoggerFinder provider; Using default.
{code}
To display the root cause add:
{{-Djdk.logger.finder.error=ERROR}}
Changing the {{standalone.conf}} to the following should show the warning:
{code}
if [ "x$JBOSS_MODULES_SYSTEM_PKGS" = "x" ]; then
JBOSS_MODULES_SYSTEM_PKGS="org.jboss.byteman"
fi
JBOSS_MODULES_SYSTEM_PKGS="org.jboss.logmanager,jdk.nashorn.api,com.sun.crypto.provider,$JBOSS_MODULES_SYSTEM_PKGS"
if [ "x$JAVA_OPTS" = "x" ]; then
JAVA_OPTS="-Xms64m -Xmx512m -XX:MetaspaceSize=96M -XX:MaxMetaspaceSize=256m
-Djava.net.preferIPv4Stack=true"
JAVA_OPTS="$JAVA_OPTS -Djboss.modules.system.pkgs=$JBOSS_MODULES_SYSTEM_PKGS
-Djava.awt.headless=true"
else
echo "JAVA_OPTS already set in environment; overriding default settings with
values: $JAVA_OPTS"
fi
BOOT_CP=()
BOOT_CP=("$(find $JBOSS_HOME/modules -type f -name
"jboss-logmanager-*.jar")")
BOOT_CP+=("$(find $JBOSS_HOME/modules -type f -name
"wildfly-common*.jar")")
for f in $(find $JBOSS_HOME/modules -type f -name "javax.json-*.jar"); do
BOOT_CP+=("$f")
done
x="-Xbootclasspath/a"
for p in "${BOOT_CP[@]}"; do
x+=":$p"
done
JAVA_OPTS="-Djava.util.logging.manager=org.jboss.logmanager.LogManager
-Dsun.util.logging.disableCallerCheck=true $x $JAVA_OPTS"
{code}