Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-14714

Solr.cmd in windows loads the incorrect jetty module when using java>=9

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 8.6
    • 8.6
    • scripts and tools
    • Windows environment running in Solr Cloud mode with SSL.

    Description

      In Solr.cmd, when using SSL, there is a check to verify what version of java solr is running with. If this version of Java is greater or equal java 9 it will load the jetty https module while for java 8 it will use https8.

      However, this java version check is done before the java major version variable has been assigned. As a result, Solr in windows doesn't work when SSL is enabled.

       

      To fix this issue, it is enough if java checks are done before SSL checks.

       

      I have attached a patch with the modifications.

      Attachments

        1. load_java_info_first.patch
          5 kB
          Endika Posadas
        2. SOLR-14714.patch
          5 kB
          Erick Erickson

        Activity

          People

            erickerickson Erick Erickson
            enpos Endika Posadas
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: