• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
  • Mikalai Zaikin

unable locate NamespaceHandler namespace http://www.springframework.org/schema/integration/twitter

Ranch Hand
Posts: 391
MySQL Database PHP Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
My pom.xml

My xml file for twitter integration

I am getting this error , tried many different ways but not working .

When I try to execute I get below error

Oct 30, 2014 4:33:39 PM org.springframework.context.support.ClassPathXmlApplicationContext prepareRefresh
INFO: Refreshing org.springframework.context.support.ClassPathXmlApplicationContext@2e5d6d97: startup date [Thu Oct 30 16:33:39 IST 2014]; root of context hierarchy
Oct 30, 2014 4:33:39 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
INFO: Loading XML bean definitions from class path resource [twitter-outbound.xml]
Oct 30, 2014 4:33:41 PM org.springframework.beans.factory.config.PropertiesFactoryBean loadProperties
INFO: Loading properties file from URL [jar:file:/C:/Users/Administrator/.m2/repository/org/springframework/integration/spring-integration-core/3.0.0.RELEASE/spring-integration-core-3.0.0.RELEASE.jar!/META-INF/spring.integration.default.properties]
Oct 30, 2014 4:33:41 PM org.springframework.integration.config.xml.IntegrationNamespaceHandler registerHeaderChannelRegistry
INFO: No bean named 'integrationHeaderChannelRegistry' has been explicitly defined. Therefore, a default DefaultHeaderChannelRegistry will be created.
Exception in thread "main" org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Unable to locate Spring NamespaceHandler for XML schema namespace [http://www.springframework.org/schema/integration/twitter]
Offending resource: class path resource [twitter-outbound.xml]

Ranch Hand
Posts: 378
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I checked the spring integration dependency..

and for example in contrast to this in schemaLocation...


the following doesn't exist in the integration jar..

what does exist is...

this is in package org.springframework.integration.config.xml

so what you might use for schemaLocation could be the following..


    Bookmark Topic Watch Topic
  • New Topic