Uploaded image for project: 'Service Packs and Hot Fixes'
  1. Service Packs and Hot Fixes
  2. MNT-20365

Share clustering fails with missing file errors when configuring on an environment with no internet access (intranet).

    Details

    • Bug Priority:
      Category 2
    • ACT Numbers:

      00984810

    • Story Points:
      3
    • Prioritization Score:
      2.875

      Description

      When configuring Share Cluster with ACS 6.0 following our documentation on a system with no internet access, the cluster fails with missing file errors. The following files are listed as missing: 

      References found in custom-slingshot-application-context.xml 

      http://www.springframework.org/schema/beans/spring-beans-2.5.xsd 
      http://www.hazelcast.com/schema/spring/hazelcast-spring-2.4.xsd 

      Once you enable internet access to the environment and restart Share nodes, the files are downloaded and the Share cluster succeeds and is enabled. 

      [Steps to Reproduce]

      Configure test environment with no internet 
      Setup a Share cluster as per our documentation 

      [Expected Result]
      Share cluster works with no issue. 

      [Actual Result]
      Share cluster fails due to missing files. See errors from below: 

      share.log: 

      2019-02-19 07:49:26,209 WARN [org.springframework.beans.factory.xml.XmlBeanDefinitionReader] [localhost-startStop-1] Ignored XML validation warning 
      org.xml.sax.SAXParseException; lineNumber: 18; columnNumber: 92; schema_reference.4: Failed to read schema document 'http://www.hazelcast.com/schema/spring/hazelcast-spring-2.4.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>. 
      
      2019-02-19 07:49:26,219 ERROR [org.springframework.web.context.ContextLoader] [localhost-startStop-1] Context initialization failed 
      org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Failed to import bean definitions from relative location [surf-config.xml] 
      Offending resource: class path resource [web-application-config.xml]; nested exception is org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Failed to import bean definitions from URL location [classpath*:alfresco/web-extension/*-context.xml] 
      Offending resource: class path resource [surf-config.xml]; nested exception is org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 18 in XML document from file [/opt/alfresco-6b/tomcat/shared/classes/alfresco/web-extension/custom-slingshot-application-context.xml] is invalid; nested exception is org.xml.sax.SAXParseException; lineNumber: 18; columnNumber: 92; cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'hz:topic'

      catalina.out: 

      2019-02-19 07:49:26,209 WARN [factory.xml.XmlBeanDefinitionReader] [localhost-startStop-1] Ignored XML validation warning 
      org.xml.sax.SAXParseException; lineNumber: 18; columnNumber: 92; schema_reference.4: Failed to read schema document 'http://www.hazelcast.com/schema/spring/hazelcast-spring-2.4.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>. 
      
      2019-02-19 07:49:26,219 ERROR [web.context.ContextLoader] [localhost-startStop-1] Context initialization failed 
      org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Failed to import bean definitions from relative location [surf-config.xml] 
      Offending resource: class path resource [web-application-config.xml]; nested exception is org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Failed to import bean definitions from URL location [classpath*:alfresco/web-extension/*-context.xml] 
      Offending resource: class path resource [surf-config.xml]; nested exception is org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 18 in XML document from file [/opt/alfresco-6b/tomcat/shared/classes/alfresco/web-extension/custom-slingshot-application-context.xml] is invalid; nested exception is org.xml.sax.SAXParseException; lineNumber: 18; columnNumber: 92; cvc-complex-ty 

      Workaround
      Manually download the files from Hazelcast site, or temporarily enable internet access to allow the files to be downloaded.

        Attachments

          Issue Links

            Structure

              Activity

                People

                • Assignee:
                  shareteam Share Team
                  Reporter:
                  spatel Satyan Patel
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  5 Start watching this issue

                  Dates

                  • Created:
                    Updated:

                    Structure Helper Panel