Spring - Apache和XML错误 [英] Spring - Apache and XML error

查看:169
本文介绍了Spring - Apache和XML错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在关注Spring登录示例的



希望这有帮助。


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

解决方案

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.

这篇关于Spring - Apache和XML错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆