1 Reply Latest reply on Jun 2, 2014 9:24 PM by Freeman(Yue) Fang

    Class [org.springframework.context.config.ContextNamespaceHandler] does not implement the [org.springframework.beans.factory.xml.NamespaceHandler] interface

    rahul vashishth Novice

      While deploying my fuse project with embed-dependecy in flex plugin i am getting following exception. This seems like some classloading issue.

      My fuse project is a camel+spring+jpa+hibernate project.

       

      org.springframework.beans - 3.1.3.RELEASE | Loading XML bean definitions from OSGi resource[classpath:hibernate-session-context.xml|bnd.id=119|bnd.sym=com.jato.esb-feature-list-manager]

      2014-06-02 15:12:12,427 | ERROR | ExtenderThread-1 | ContextLoaderListener            | BundleApplicationContextListener   50 | 113 - org.springframework.osgi.extender - 1.2.1 | Application context refresh failed (OsgiBundleXmlApplicationContext(bundle=com.jato.esb-feature-list-manager, config=osgibundle:/META-INF/spring/*.xml))

      org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Failed to import bean definitions from URL location [classpath:META-INF/spring/FeatureServiceSpringContext.xml]

      Offending resource: URL [bundle://119.0:0/META-INF/spring/FeatureServiceContext.xml]; nested exception is org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Failed to import bean definitions from URL location [classpath:hibernate-session-context.xml]

      Offending resource: OSGi resource[classpath:META-INF/spring/FeatureServiceSpringContext.xml|bnd.id=119|bnd.sym=com.jato.esb-feature-list-manager]; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from OSGi resource[classpath:hibernate-session-context.xml|bnd.id=119|bnd.sym=com.jato.esb-feature-list-manager]; nested exception is org.springframework.beans.FatalBeanException: Class [org.springframework.context.config.ContextNamespaceHandler] for namespace [http://www.springframework.org/schema/context] does not implement the [org.springframework.beans.factory.xml.NamespaceHandler] interface

          at org.springframework.beans.factory.parsing.FailFastProblemReporter.error(FailFastProblemReporter.java:68)[132:org.springframework.beans:3.1.3.RELEASE]

          at org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:85)[132:org.springframework.beans:3.1.3.RELEASE]

          at org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:76)[132:org.springframework.beans:3.1.3.RELEASE]

          at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.importBeanDefinitionResource(DefaultBeanDefinitionDocumentReader.java:245)[132:org.springframework.beans:3.1.3.RELEASE]

          at