Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-15417

embed-server throws error on JDK 11 when jboss.se not included in java -jar jboss-cli-client.jar command

    XMLWordPrintable

Details

    Description

      When starting CLI using command wrapper on JDK 11 and starting embedded server like:

      java -jar jboss-cli-client.jar
      embed-host-controller --jboss-home=/home/mnovak/tmp/wildfly
      

      then following error will be logged:

      [disconnected /] embed-host-controller --jboss-home=/home/mnovak/tmp/wildfly
      Cannot start embedded Host Controller: WFLYEMB0014: Cannot load module org.jboss.vfs from: local module loader @7fedefdd (finder: local module finder @74da1aaf (roots: /home/mnovak/tmp/wildfly/modules
      ,/home/mnovak/tmp/wildfly/modules/system/layers/base)): java.se
      

      Problem is that --add-modules java.se must be added to

       java --add-modules java.se -jar jboss-cli-client.jar
      

      Based on informatin in:
      https://github.com/wildfly/wildfly-core/pull/3461#pullrequestreview-146710860
      https://github.com/wildfly/wildfly-core/pull/3461#issuecomment-413664623
      https://github.com/wildfly/wildfly-core/pull/3461#issuecomment-413964525

      this won't be fixed in must be documented in known issues.

      Attachments

        Issue Links

          Activity

            People

              rhn-support-ahoffer Andrea Hoffer
              mnovak1@redhat.com Miroslav Novak
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: