Uploaded image for project: 'JBoss Log Manager'
  1. JBoss Log Manager
  2. LOGMGR-254

JDK11, Warning when starting WildFly with logmanager in bootclasspath

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • None
    • None
    • None

    Description

      Using JDK11, add the following property when starting standalone.sh:

      -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
      

      You will notice the following warning:

      May 15, 2019 4:49:11 PM java.lang.System$LoggerFinder lambda$accessProvider$0
      WARNING: Failed to instantiate LoggerFinder provider; Using default.
      

      To display the root cause add:
      -Djdk.logger.finder.error=ERROR

      Changing the standalone.conf to the following should show the warning:

      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"
      

      Attachments

        Issue Links

          Activity

            People

              jperkins-rhn James Perkins
              jdenise@redhat.com Jean Francois Denise
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated: