gpt4 book ai didi

java - Grails 应用程序 : Unable to locate Spring NamespaceHandler for XML schema namespace [http://cxf. apache.org/jaxrs]

转载 作者:太空宇宙 更新时间:2023-11-04 12:34:26 25 4
gpt4 key购买 nike

我正在创建一个应用程序。当我运行命令 grails run-app 时收到以下错误:

2016-05-27/12:03:46.472 [localhost-startStop-1]  ERROR context.ContextLoader - Context initialization failed
org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Unable to locate Spring NamespaceHandler for XML schema namespace [http://cxf.apache.org/jaxrs]
Offending resource: ServletContext resource [/WEB-INF/applicationContext.xml]

at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)

我在以下链接中发现了类似的问题:

Unable to locate Spring NamespaceHandler for XML schema namespace [http://cxf.apache.org/jaxrs] Unable to locate Spring NamespaceHandler for XML schema namespace Error in Terminal

但是我的类路径中已经有 cxf-rt-frontend-jaxrs 依赖项和 cxf jar。

当我运行 intellij 14 时,我没有收到任何错误,然后应用程序成功运行。

最佳答案

您是否尝试过包含 cxf-rt-frontend-jaxws?

关于java - Grails 应用程序 : Unable to locate Spring NamespaceHandler for XML schema namespace [http://cxf. apache.org/jaxrs],我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37476755/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com