How to fix Eclipse validation error “No grammar constraints detected for the document”?

后端 未结 18 680
礼貌的吻别
礼貌的吻别 2020-12-24 05:01

Eclipse 3.5.2 is throwing an XML schema warning message:

No grammar constraints (DTD or XML schema) detected for the document.

The applica

18条回答
  •  执念已碎
    2020-12-24 05:24

    Here's what worked for me. I was using schemas without version numbers (e.g. spring-beans.xsd, and not spring-beans-4.1.xsd) and they probably got updated upstream. I assume the problem was that Eclipse kept a dirty cache of the old versions.

    Fix :
    1. Go to Window -> Preference -> Network Connection -> Cache
    2. Remove all cached schemas.
    3. Delete all the no grammar constraints problems in problem view.
    4. Re-validate the project.

提交回复
热议问题