我正在尝试运行我的嵌入式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服务器。
可能是什么问题?我应该在哪里看?感谢。
答案 0 :(得分:0)
我在这里找到了问题的答案:
导致这里:
问题是程序集maven插件解压缩所有jar并覆盖相同的内容。