关键词不能为空

当前您在: 主页 > 英语 >

unabletolocatespringnamespacehandlerforxmlschemanamespace问题的

作者:高考题库网
来源:https://www.bjmy2z.cn/gaokao
2021-02-13 11:09
tags:

-

2021年2月13日发(作者:recommended)


Unable to locate Spring NamespaceHandler for XML


schema namespace


问题的解决








被这个问题折磨着很久:参考:



/blog/1340777



cfx




spring



合的时候出现的问< /p>



:finiti


onParsingE xception: Configuration problem: Unable to


locate Spring NamespaceHandler for XML schema


namespace [/jaxws]Offending


resource: ServletContext resource [/WEB-INF/]



Key WordsSpring 3.0Apache CXF 2.X.X


昨日,


在原本应用


中添加了关于


webService


的 调用,使用了


Apache CXF



架,并将其集成到了


Spring


中。



当时集成时,使用了如下



jar


包(


)




这就是导致出现


Unable to


locate Spring NamespaceHandler for XML schema


namespace


的问题。




接下来,你可以参考


/questi ons/3650252/problem-starti


ng-spring- application-from-java


你可以选择手工合并所有



rs



s,


或者和我一样换回到


Spring 2.5,


并将< /p>



中的这两个文件重新命名,


然后


不使用


Spring


集成,先让程序跑起来不影 响业务。



参考


/browse/SP R-8368


这里面说的


更加详细一些



With the splitting of Spring Framework into


multiple jar files in v3.0, there are now several files named




normal servlet container, but poses problems when e.g.


creating an executable JAR file from a webapp using an


embedded web server such as Jetty, or running GWT in




The


workaround is to construct your own


these three files, merging all the copies into one like


so://IOUtils and FileUtils come from Apache Commons


IOfor(String s : new String[] {



e =


ssLoader().g etResources(


s);StringBuilder out = new


StringBuilder();while(eElements()) { URL u =


(URL) ement();


(ng(ream())).append(


; }File outf = new File(s);tringToFile(outf,


ng(),


to use a different file-name for each instance of the


schemas/handlers/tooling files. For example, inside



you would find



I'm not sufficiently up-to-speed with the Spring code-base


to give you a patch to do this, however a brief investigation


shows that


specified in


bleSchema


Resolver and DefaultNamespaceHandlerResolver, and


that constructors exist for specifying different locations for


these files. I hope you find this information useful.


或许这


个已经在新版本里面已经


fixed

了,


我已经下了最新的版本,


还没有来得及测试。



如果你也遇到这个问题,


首先恭喜你。



其次,你可以按照以上的方式做一个



“your own


version of these three files”,使用



//IOUtils and FileUtils


come from Apache Commons IOfor(String s : new String[]


{


{



Enumeration<?> e =


ssLoader().getResources(


s);



StringBuilder out = new

-


-


-


-


-


-


-


-



本文更新与2021-02-13 11:09,由作者提供,不代表本网站立场,转载请注明出处:https://www.bjmy2z.cn/gaokao/649654.html

unabletolocatespringnamespacehandlerforxmlschemanamespace问题的的相关文章

  • 爱心与尊严的高中作文题库

    1.关于爱心和尊严的作文八百字 我们不必怀疑富翁的捐助,毕竟普施爱心,善莫大焉,它是一 种美;我们也不必指责苛求受捐者的冷漠的拒绝,因为人总是有尊 严的,这也是一种美。

    小学作文
  • 爱心与尊严高中作文题库

    1.关于爱心和尊严的作文八百字 我们不必怀疑富翁的捐助,毕竟普施爱心,善莫大焉,它是一 种美;我们也不必指责苛求受捐者的冷漠的拒绝,因为人总是有尊 严的,这也是一种美。

    小学作文
  • 爱心与尊重的作文题库

    1.作文关爱与尊重议论文 如果说没有爱就没有教育的话,那么离开了尊重同样也谈不上教育。 因为每一位孩子都渴望得到他人的尊重,尤其是教师的尊重。可是在现实生活中,不时会有

    小学作文
  • 爱心责任100字作文题库

    1.有关爱心,坚持,责任的作文题库各三个 一则150字左右 (要事例) “胜不骄,败不馁”这句话我常听外婆说起。 这句名言的意思是说胜利了抄不骄傲,失败了不气馁。我真正体会到它

    小学作文
  • 爱心责任心的作文题库

    1.有关爱心,坚持,责任的作文题库各三个 一则150字左右 (要事例) “胜不骄,败不馁”这句话我常听外婆说起。 这句名言的意思是说胜利了抄不骄傲,失败了不气馁。我真正体会到它

    小学作文
  • 爱心责任作文题库

    1.有关爱心,坚持,责任的作文题库各三个 一则150字左右 (要事例) “胜不骄,败不馁”这句话我常听外婆说起。 这句名言的意思是说胜利了抄不骄傲,失败了不气馁。我真正体会到它

    小学作文
unabletolocatespringnamespacehandlerforxmlschemanamespace问题的随机文章