错误如下:
严重: Context initialization failed
org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Unable to locate NamespaceHandler for namespace [http://www.springframework.org/schema/aop]
Offending resource: class path resource [applicationContext.xml]我的声明applicationContext.xml的声明如下:<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:aop="http://www.springframework.org/schema/aop" 
      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.0.xsd 
          http://www.springframework.org/schema/context 
          http://www.springframework.org/schema/context/spring-context-2.0.xsd 
          http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.0.xsd 
          http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.0.xsd"> 

解决方案 »

  1.   

    配置文件有问题,把SPRING的包换成2.5的试一下看看
      

  2.   

    还是不行,是不是我的web.xml中配置错误了啊?
    我的web.xml如下配置:
     <context-param>
      <param-name>contextConfigLocation</param-name>
      <param-value>classpath:applicationContext.xml</param-value>
     </context-param>
    <!-- applicationContext.xml是放在src目录下的-->
    <listener>
      <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
     </listener>
      

  3.   

    有的时候是加载spring包的顺序问题!