简体   繁体   English

Spring 3 XML解析器问题-XSDException

[英]Spring 3 xml parser issue -XSDException

I have a web application where i am using spring 3.0 rest mvc .The application runs perfectly fine on my local machine. 我有一个使用Spring 3.0 rest mvc的Web应用程序。该应用程序在本地计算机上运行得很好。 But when in deploy the war in server(tomcat 6 & java 5) the below error occurs 但是当在服务器(tomcat 6和java 5)中部署战争时,发生以下错误

Caused by: oracle.xml.parser.schema.XSDException: Duplicated definition for: 'identifiedType' 引起原因:oracle.xml.parser.schema.XSDException:重复的定义:“ identifiedType”

I Googled and found that this issue is related to xmlparserv2.jar and this issue can be fixed by forcing the app to use apache xerces jars. 我在Google上搜索了一下,发现此问题与xmlparserv2.jar有关,可以通过强制应用程序使用apache xerces jars来解决此问题。

But i have not found any link explaining how to solve this issue.I do not want to changes at server level. 但是我没有找到任何链接解释如何解决此问题。我不想在服务器级别进行更改。

Can we fix these issues at application level? 我们可以在应用程序级别解决这些问题吗?

Thanks in advance 提前致谢

通过在POm文件中包含xerces jar,我的问题得以解决

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM