Multiple annotations found at this line:
- Attribute "xsi:schemaLocation" must be declared for element type "beans".
- The content of element type "beans" must match "(description?,(import|alias|
 bean)*)".
- Attribute "xmlns:xsi" must be declared for element type "beans".
- Attribute "xmlns" must be declared for element type "beans".
- Attribute "xmlns:amq" must be declared for element type "beans".怎么回事? xml头如下<beans  
 xmlns="http://www.springframework.org/schema/beans"  
        xmlns:amq="http://activemq.apache.org/schema/core"  
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"  
        xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd   
        http://activemq.apache.org/schema/core  http://activemq.apache.org/schema/core/activemq-core-5.4.0.xsd ">  xsd 已经配置了啊...

解决方案 »

  1.   

     The content of element type "beans" must match "(description?,(import|alias|
    bean)*)".
    是 beans标签配置不匹配吧
      

  2.   

    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd"><beans  
     xmlns="http://www.springframework.org/schema/beans"  
            xmlns:amq="http://activemq.apache.org/schema/core"  
            xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"  
            xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd   
            http://activemq.apache.org/schema/core  http://activemq.apache.org/schema/core/activemq-core-5.4.0.xsd ">    <bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
    <property name="locations">
    <list>
    <value>classpathsystemConfig.properties</value>
    </list>
    </property>
    </bean>

    <amq:connectionFactory id="drugCiticConnectionFactory"
    brokerURL="${CITIC.BROKER.URL}" userName="${CITIC.BROKER.USERNAME}" password="${CITIC.BROKER.PASSWORD}"/> <amq:queue name="drugCiticDestination" physicalName="DRUG_CITIC_QUEUE" />
      
    </beans>
    全部代码...哪里不匹配了?
      

  3.   

    可问题确实存在....错误标记在 
             http://activemq.apache.org/schema/core/activemq-core-5.4.0.xsd ">  
    位置
      

  4.   

    引用{可能是你的版本问题。}
    那个版本?xsd  的版本么?Spring的jar包是否都导入了?
    已经引入了
      

  5.   

    <beans xmlns="http://www.springframework.org/schema/beans"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:context="http://www.springframework.org/schema/context"
    xmlns:tx="http://www.springframework.org/schema/tx"
    xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
    http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd
    http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.5.xsd"
    default-autowire="byName" default-lazy-init="true">
      

  6.   

    你如果用Spring ,它本身应该带demo的,你可以在哪里面找找
      

  7.   

    你看看你的springJAR包是多少的是spring-1.2.x.jar吗