错误如下:
严重: 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">
严重: 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">
解决方案 »
- 请教一个关于tomcat和jdk版本问题
- SimpleDateFormat("MM月") 显示的月份如果是5月为05月 能不显示前面的0吗
- 新手学习java
- java做服务端C++做客户端传文件问题...高手指点下
- 初学hibernate问题
- 想到一个问题:关于spring加载的bean的缓存问题。
- 怎样读取表中每一个字段???
- 本来JDK版本是1.5,但后安装Oracle 8,JBuilder8后,,,,,,,,,,,,,,,,,,,,,,,,,,,
- 问个基础问题,我装了j2sdk1.4.2和apache-ant-1.6.1,但有问题
- 请教关于JDBC中的连接(初学者的问题)
- java webservice 反序列问题
- .fdt文件找不到是怎么回事
我的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>