Cannot find the declaration of element 'beans'

后端 未结 10 1669
忘掉有多难
忘掉有多难 2020-11-30 01:59

I have the spring jars of spring-3.2.0.RC1.jar and trying to implement Apache ActiveMQ helloWorld program from tutorial given here. Th

10条回答
  •  隐瞒了意图╮
    2020-11-30 02:18

    This error of Cannot find the declaration of element 'beans' but for a whole different reason

    It turs out my internet connection was not very reliable, so i decided to check first for this url

    http://www.springframework.org/schema/context/spring-context-4.0.xsd

    Once I saw that the xsd was open succesfully I clean the Eclipse(IDE) project and the error was gone

    If you try this steps and still get the error then check the Spring version so that it matches as mentioned by another answer

    
    

    Replace [MAYOR.MINOR] on the last line with whatever major.minor Spring version that you are using

    For Spring 4.0 http://www.springframework.org/schema/context/spring-context-4.0.xsd

    For Sprint 3.1 http://www.springframework.org/schema/beans spring-beans-3.1.xsd

    All the contexts are available here http://www.springframework.org/schema/context/

提交回复
热议问题