Spring - Apache and XML error

早过忘川 提交于 2019-12-11 05:05:40

问题


I was following this tutorial for Spring Login example. I downloaded their sample code and import in my Eclipse. It throws 2 error.

Error 1
Target runtime Apache Tomcat v6.0 (2) is not defined. Unknown Faceted Project Problem

Error 2
Referenced file contains errors (http://java.sun.com/xml/ns/j2ee/web-app_2_5.xsd).

I already download the latest updates in eclipse and reinstall the tomcat. Using Tomcat6,Spring-3.2.0.RC1.

Please advice. Thanks


回答1:


We need to right click on the project, properties and Targeted Runtimes. Uncheck the old server entry and enable the new entry. This should solve this error.

http://javashine.wordpress.com/2010/09/07/target-runtime-apache-tomcat-v6-0-is-not-defined/

Hope this helps.




回答2:


Right click on the project->select properties option.

Search for targetedruntimes in the search bar

uncheck the tomcat old version

select latest version and the version you wnat to use.



来源:https://stackoverflow.com/questions/13448817/spring-apache-and-xml-error

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!