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

Repository client fails on Confluence 2.10 in WebLogic 9.2.3 due to XML parsing problem

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • High
    • None
    • 2.10
    • None
    • Weblogic 9.2.3 on Confluence 2.10

    Description

      This is raised from APR-148.

      On WebLogic 9.2.3 with child first class loading (don't know if that's relevant) the repository client fails on Confluence. During setup or when trying to manually enable you get errors like -

      2008-11-13 17:21:20,093 ERROR [SpringOsgiExtenderThread-1] [osgi.context.support.OsgiBundleXmlApplicationContext] startR
      efresh Pre refresh error
       -- referer: http://pacmoonlight:7001/confluence/setup/setupdatasourcedb-start.action?database=postgresql | url: /confluence/setup/setupdatasourcedb.action | userName: anonymous | action: setupdatasourcedb
      org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from URL [bundle://10.0:0/META-INF/spring/atlassian-plugins-spring.xml]; nested exception is javax.xml.parsers.FactoryConfigurationError: Provider weblogic.xml.jaxp.RegistryDocumentBuilderFactory not found
              at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:420)
              at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:342)
              at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:310)
              at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:143)
              at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:178)
              at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:149)
              at org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext.loadBeanDefinitions(OsgiBundleXmlApplicationContext.java:166)
              at org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext.loadBeanDefinitions(OsgiBundleXmlApplicationContex.java:132)
              at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationontext.java:123)
              at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:423)
              at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.startRefresh(AbstractDelegatedExecutingApplicationContext.java:217)
              at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.stageOne(DependecyWaiterApplicationContextExecutor.java:226)
              at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.re
      fresh(DependencyWaiterApplicationContextExecutor.java:173)
              at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.refresh(AbstractDelegat
      edExecutionApplicationContext.java:136)
              at org.springframework.osgi.extender.internal.activator.ContextLoaderListener$2.run(ContextLoaderListener.java:7
      41)
              at java.lang.Thread.run(Thread.java:595)
      Caused by: javax.xml.parsers.FactoryConfigurationError: Provider weblogic.xml.jaxp.RegistryDocumentBuilderFactory not fo
      und
              at javax.xml.parsers.DocumentBuilderFactory.newInstance(DocumentBuilderFactory.java:104)
              at org.springframework.beans.factory.xml.DefaultDocumentLoader.createDocumentBuilderFactory(DefaultDocumentLoade
      r.java:89)
              at org.springframework.beans.factory.xml.DefaultDocumentLoader.loadDocument(DefaultDocumentLoader.java:70)
              at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.j
      ava:396)
              ... 15 more
      

      AdminAcceptanceTest#testOnlyASubsetOfTheAdministrationConsoleIsShownToConfluenceAdmins will fail because of this problem.

      Don B reports -
      Yes, this is an issue with Spring DM and WebLogic, apparently. The issue looks very similar to http://www.eclipsezone.com/eclipse/forums/m92036709.html The solution in that thread is to bundle an XML parser in the plugin, but I think a better solution would be to have confluence export that package in its package scanner configuration - weblogic.*

      This fix didn't seem to work.

      Attachments

        Activity

          People

            dbrown@atlassian.com Don Brown (Inactive)
            pcurren Paul Curren
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: