2 Replies Latest reply on Sep 13, 2011 9:21 AM by kanmisc

    Issue faced in fuse upgradation(apache-servicemix-4.4.0-fuse-00-43)

    kanmisc

      Hi All

       

      I have upgraded our fuse to apache-servicemix-4.4.0-fuse-00-43 and all the bundles started properly except one bundle which failed with the below exception -

       

      2011-09-12 10:09:32,800 SpringOsgiExtenderThread-27 | ERROR | xtenderThread-27 | ContextLoaderListener | BundleApplicationContextListener 50 | 156 - org.springframework.osgi.extender - 1.2.1 | Application context refresh failed (OsgiBundleXmlApplicationContext(bundle=Feedback, config=osgibundle:/META-INF/spring/*.xml))

      org.springframework.beans.factory.BeanDefinitionStoreException: Parser configuration exception parsing XML from URL bundle://300.0:0/META-INF/spring/bundle-context-osgi.xml; nested exception is javax.xml.parsers.ParserConfigurationException: Unable to validate using XSD: Your JAXP provider org.apache.xerces.jaxp.DocumentBuilderFactoryImpl@2dd063b3 does not support XML Schema. Are you running on Java 1.4 with Apache Crimson? Upgrade to Apache Xerces (or Java 1.5) for full XSD support.

      at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:404)148:org.springframework.beans:3.0.5.RELEASE

      at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:334)148:org.springframework.beans:3.0.5.RELEASE

      at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:302)148:org.springframework.beans:3.0.5.RELEASE

      at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:143)148:org.springframework.beans:3.0.5.RELEASE

      at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:178)148:org.springframework.beans:3.0.5.RELEASE

      at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:149)148:org.springframework.beans:3.0.5.RELEASE

      at org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext.loadBeanDefinitions(OsgiBundleXmlApplicationContext.java:164)155:org.springframework.osgi.core:1.2.1

      at org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext.loadBeanDefinitions(OsgiBundleXmlApplicationContext.java:136)155:org.springframework.osgi.core:1.2.1

      at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:130)150:org.springframework.context:3.0.5.RELEASE

      at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:467)150:org.springframework.context:3.0.5.RELEASE

      at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$800(AbstractDelegatedExecutionApplicationContext.java:69)155:org.springframework.osgi.core:1.2.1

      at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$3.run(AbstractDelegatedExecutionApplicationContext.java:269)155:org.springframework.osgi.core:1.2.1

      at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)155:org.springframework.osgi.core:1.2.1

      at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.startRefresh(AbstractDelegatedExecutionApplicationContext.java:247)155:org.springframework.osgi.core:1.2.1

      at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.stageOne(DependencyWaiterApplicationContextExecutor.java:214)156:org.springframework.osgi.extender:1.2.1

      at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.refresh(DependencyWaiterApplicationContextExecutor.java:169)156:org.springframework.osgi.extender:1.2.1

      at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.refresh(AbstractDelegatedExecutionApplicationContext.java:175)155:org.springframework.osgi.core:1.2.1

      at org.springframework.osgi.extender.internal.activator.ContextLoaderListener$2.run(ContextLoaderListener.java:716)156:org.springframework.osgi.extender:1.2.1

      at java.lang.Thread.run(Thread.java:619):1.6.0_21

      Caused by: javax.xml.parsers.ParserConfigurationException: Unable to validate using XSD: Your JAXP provider org.apache.xerces.jaxp.DocumentBuilderFactoryImpl@2dd063b3 does not support XML Schema. Are you running on Java 1.4 with Apache Crimson? Upgrade to Apache Xerces (or Java 1.5) for full XSD support.

      at org.springframework.beans.factory.xml.DefaultDocumentLoader.createDocumentBuilderFactory(DefaultDocumentLoader.java:102)148:org.springframework.beans:3.0.5.RELEASE

      at org.springframework.beans.factory.xml.DefaultDocumentLoader.loadDocument(DefaultDocumentLoader.java:70)148:org.springframework.beans:3.0.5.RELEASE

      at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:388)148:org.springframework.beans:3.0.5.RELEASE

      ... 18 more

      Caused by: java.lang.IllegalArgumentException: org.apache.xerces.parsers.XIncludeAwareParserConfiguration cannot be cast to org.apache.xerces.xni.parser.XMLParserConfiguration

      at org.apache.xerces.jaxp.DocumentBuilderFactoryImpl.setAttribute(Unknown Source)[:]

       

       

      This was working fine in earlier updates from apache-servicemix-4.3.0-fuse-00-00 to apache-servicemix-4.3.1-fuse-00-00, but now failed in this upgrade.

      I could not find any issue in bundle-context-osgi.xml.

       

      Any suggestions please.

       

      Thanks in advance.

        • 1. Re: Issue faced in fuse upgradation(apache-servicemix-4.4.0-fuse-00-43)
          ffang

          Hi,

           

          Could you ediit

          $FUSE_ESB/etc/custom.properties

          change

          org.osgi.framework.bootdelegation=org.apache.karaf.jaas.boot,!com.sun.xml.messaging.saaj.,!com.sun.xml.internal.bind.,sun.,com.sun.,javax.transaction,javax.transaction.*

          to

          org.osgi.framework.bootdelegation=org.apache.karaf.jaas.boot,!com.sun.xml.messaging.saaj.,!com.sun.xml.internal.bind.,sun.,com.sun.,javax.transaction,javax.transaction.*,org.apache.xalan.processor,org.apache.xpath.jaxp,org.apache.xml.dtm.ref,org.apache.xerces.jaxp.datatype,org.apache.xerces.stax,org.apache.xerces.parsers,org.apache.xerces.jaxp,org.apache.xerces.jaxp.validation,org.apache.xerces.dom

           

          to see if it helps?

           

          If it doesn't help, a testcase which we can build and deploy to reproduce this issue would be great.

           

          Freeman

          • 2. Re: Issue faced in fuse upgradation(apache-servicemix-4.4.0-fuse-00-43)
            kanmisc

            Thanks Freeman. It solved the issue.

             

            One thing to highlight here is when i created the child instance,  org.osgi.framework.bootdelegation  entry was not created in custom.properties.