嵌入式Tomcat:无法找到XML架构命名空间的Spring NamespaceHandler

时间:2013-07-22 22:44:34

标签: tomcat embedded-tomcat-7

我正在尝试运行我的嵌入式Tomcat应用程序,我收到以下错误:

BeanDefinitionParsingException: 
Configuration problem: 
Unable to locate Spring NamespaceHandler for XML schema namespace
[http://www.springframework.org/schema/tx]
Offending resource: ServletContext resource [/WEB-INF/applicationContext.xml]

我非常有信心,我的课程路径上的所有内容都正确 - 您可以将tx视为/transaction/

$ jar tf webapp.jar | grep 'springframework/[a-z]*/$'
org/springframework/cache/
org/springframework/context/
org/springframework/ejb/
org/springframework/format/
org/springframework/instrument/
org/springframework/jmx/
org/springframework/jndi/
org/springframework/remoting/
org/springframework/scheduling/
org/springframework/scripting/
org/springframework/stereotype/
org/springframework/ui/
org/springframework/validation/
org/springframework/aop/
org/springframework/asm/
org/springframework/beans/
org/springframework/core/
org/springframework/util/
org/springframework/expression/
org/springframework/orm/
org/springframework/jdbc/
org/springframework/dao/
org/springframework/jca/
org/springframework/transaction/
org/springframework/web/
org/springframework/mail/
org/springframework/http/
org/springframework/mock/

我不明白的是,在Intellij IDEA中运行应用程序按预期工作并部署到Tomcat服务器。

可能是什么问题?我应该在哪里看?感谢。