Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-17346

Cannot install Confluence 2.9.3 without Internet connection

    XMLWordPrintable

Details

    Description

      Steps to reproduce
      1. Download Confluence 2.9.3
      2. Disconnect Internet
      3. Install Confluence 2.9.3
      Problem
      1. Problem occurs when Spring attempts to resolve http://atlassian.com/schema/spring/plugin.xsd and it is unavailable.
      2. The following is logged in atlassian-confluece.log:
        2009-10-27 21:46:10,747 WARN [main] [beans.factory.xml.XmlBeanDefinitionReader] warning Ignored XML validation warning
        org.xml.sax.SAXParseException: schema_reference.4: Failed to read schema document 'http://atlassian.com/schema/spring/plugin.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>.
                at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
                at org.apache.xerces.util.ErrorHandlerWrapper.warning(Unknown Source)
                at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
                at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
                at org.apache.xerces.impl.xs.traversers.XSDHandler.reportSchemaWarning(Unknown Source)
                at org.apache.xerces.impl.xs.traversers.XSDHandler.getSchemaDocument(Unknown Source)
                at org.apache.xerces.impl.xs.traversers.XSDHandler.parseSchema(Unknown Source)
                at org.apache.xerces.impl.xs.XMLSchemaLoader.loadSchema(Unknown Source)
                at org.apache.xerces.impl.xs.XMLSchemaValidator.findSchemaGrammar(Unknown Source)
                at org.apache.xerces.impl.xs.XMLSchemaValidator.processAttributes(Unknown Source)
                at org.apache.xerces.impl.xs.XMLSchemaValidator.handleStartElement(Unknown Source)
                at org.apache.xerces.impl.xs.XMLSchemaValidator.startElement(Unknown Source)
                at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
                at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
                at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
                at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
                at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
                at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
                at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
                at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
                at org.springframework.beans.factory.xml.DefaultDocumentLoader.loadDocument(DefaultDocumentLoader.java:73)
                at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:361)
                at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:313)
                at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:290)
                at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:131)
                at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:147)
                at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:124)
                at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:92)
                at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:101)
                at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:394)
                at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:324)
                at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:246)
                at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:189)
                at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49)
                at com.atlassian.spring.container.ContainerContextLoaderListener.contextInitialized(ContainerContextLoaderListener.java:32)
                at com.atlassian.confluence.setup.ConfluenceBootstrappedContextLoaderListener.contextInitialized(ConfluenceBootstrappedContextLoaderListener.java:111)
         at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3764)
                at org.apache.catalina.core.StandardContext.start(StandardContext.java:4216)
                at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
                at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
                at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
                at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
                at org.apache.catalina.core.StandardService.start(StandardService.java:448)
                at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
                at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                at java.lang.reflect.Method.invoke(Method.java:597)
                at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
                at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
        
      Findings
      1. In Confluence 2.9.2 and below, Confluence does not refer to http://atlassian.com/schema/spring/plugin.xsd in its bootstrapContext.xml
      2. In Confluence 2.9.3, Confluence refers to http://atlassian.com/schema/spring/plugin.xsd in its bootstrapContext.xml and without Internet connection, it is unable to retrieve the required schema.
      3. In Confluence 2.10 and above, although Confluence refers to http://atlassian.com/schema/spring/plugin.xsd in its bootstrapContext.xml, the problem was solved due to the use of spring.schemas which is located in atlassian-plugins-spring-X.X.X.jar/com/atlassian/plugin/spring/pluginns/:
        http\://atlassian.com/schema/spring/plugin.xsd=com/atlassian/plugin/spring/pluginns/plugin.xsd
        
      Workaround
      1. So far the workaround is to just connect to the Internet.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              sjayaraman Sashidaran Jayaraman [Atlassian]
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: