• 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 ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Rob Spoor
  • Bear Bibeault
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:
  • Frits Walraven
  • Himai Minh

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

 
Ranch Hand
Posts: 391
1
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...

http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd

the following doesn't exist in the integration jar..
http://www.springframework.org/schema/integration/spring-integration.xsd

what does exist is...
spring-integration-1.0.xsd
spring-integration-2.0.xsd
spring-integration-2.1.xsd
spring-integration-2.2.xsd
spring-integration-3.0.xsd

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


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

http://www.springframework.org/schema/integration
http://www.springframework.org/schema/integration/spring-integration-3.0.xsd




 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic