Łukasz
Łukasz

Reputation: 2172

No grammar constraints (DTD or XML schema) detected for the document in a taglib file

Eclipse galileo

<?xml version="1.0" encoding="UTF-8"?>
<taglib xmlns="http://java.sun.com/xml/ns/javaee"
        xmns:xsi="http://www.w3.org/2001/XMLSchema-instance"         
        xsi:schemaLocation="http://java.sun.com/xml/ns/javaee/webjsptaglibrary_2_0.xsd" 
        version="2.0">
</taglib>

How can I get rid of the warning? Application works fine, looks like an IDE issue or something. I am aware of that I can disable warning checks but this is not exactly what I am looking for.

Upvotes: 3

Views: 4544

Answers (1)

CAMOBAP
CAMOBAP

Reputation: 5657

Change:

 xsi:schemaLocation="http://java.sun.com/xml/ns/javaee/webjsptaglibrary_2_0.xsd"

to

 xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/webjsptaglibrary_2_0.xsd"

Be sure that xsd is available by http://java.sun.com/xml/ns/javaee/webjsptaglibrary_2_0.xsd In this case it unavailable.

Upvotes: 3

Related Questions