Reputation: 6403
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
Upvotes: 1
Views: 2714
Reputation: 91
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.
Upvotes: 1
Reputation: 4213
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.
Upvotes: 3