Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-10826

Impossible to run 2 instances of XWiki on same Tomcat instance because of Solr

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 6.2-milestone-2
    • 6.0.1
    • Search - Solr
    • None
    • Unknown
    • N/A
    • N/A

    Description

      When I tried to run 2 instances of XWiki on the same Tomcat instance, I faced a problem with instanciation of Solr which don't want to be instantiated a second time.

      Looking at the problem, it seems that the problem comes from the method determineHomeDirectory() from EmbeddedSolrInstance.java file. When the first XWiki instance is start, this method is called a first time but System.getProperty(SOLR_HOME_SYSTEM_PROPERTY) returns nothing. The returned value is the default one returned by getDefaultHomeDirectory(). However, when the second instance of XWiki tries to start, System.getProperty(SOLR_HOME_SYSTEM_PROPERTY) returns the value of the first Solr instance already set up. This stop the second XWiki instance to run.

      This is the Tomcat log.
      https://ezcrypt.it/Wr9n#WoUVeXBm8bWO56m49qDMsZsB

      Attachments

        Activity

          People

            enygma Eduard Moraru
            jsimard Jean SIMARD
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: