<p>The top of my <code>web.xml</code> file looks like this:</p>

<pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;web-app xmlns="http://java.sun.com/xml/ns/j2ee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_5.xsd"
    version="2.5"&gt;
</code></pre>

<p>But I still get the warning from Eclipse (Ganymede) that no XML schema is detected, and schema violations are not being warned about.  Other XML files in my project (<a href="http://en.wikipedia.org/wiki/Spring_Framework" rel="noreferrer">Spring Framework</a> configuration files for example) don't have the warning and do give correct warnings about schema violations.</p>

<p>How do I get the schema checking working and hopefully the warning to go away?  The server does run correctly.  It just appears to be an IDE issue.</p>

Perhaps try:
```
```
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd
```
```
Instead of:
```
```
http://java.sun.com/xml/ns/j2ee/web-app_2_5.xsd
```
```
Also, the
```
<!DOCTYPE ...>
```
is missing:
```
```
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE xml>
<web-app
  xmlns="http://java.sun.com/xml/ns/j2ee" 
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
  xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
  version="2.5">
  <!-- ... -->
</web-app>
```
```