Hi

This is my environment:

  • STS 2.30
  • JSF 1.2 Mojarra
  • RichFaces 3.3.2
  • Spring 3.0


I'm trying to use facelet and XHTML pages.
When i create a new XHTML page i have this error:

Code:
ParseException: Error validating the model: Server returned HTTP response code: 503 for URL: http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd
This is my simple XHTML page called template.xhtml:
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" 
	  			xmlns:ui="http://java.sun.com/jsf/facelets"
	 		 	xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core"
	  			xmlns:rich="http://richfaces.org/rich" xmlns:a4j="http://richfaces.org/a4j"
	  			xmlns:fmt="http://java.sun.com/jsp/jstl/fmt">
    <head>
        <title>
        	<fmt:message key="applicationTitle" />        	
        </title>

    </head>
    <body>
        <div class="section">
            <h2>Section title</h2>
            <div class="section">
                <p>Paragraph 1, line 1. Paragraph 1, line 2.</p>
                <p>Paragraph 2, line 1. Paragraph 2, line 2.</p>
            </div>
        </div>
    </body>
</html>
I checked in Window-->Preferences-->XML-->XML Catalog and i saw this entry:

Code:
Location:	dtds\xhtml1-transitional.dtd in jar file C:\Programmi\SpringSource\sts-2.3.0.RELEASE\plugins\org.eclipse.wst.standard.schemas_1.0.200.v200902270215.jar
URI:   		jar:file:/C:/Programmi/SpringSource/sts-2.3.0.RELEASE/plugins/org.eclipse.wst.standard.schemas_1.0.200.v200902270215.jar!/dtds/xhtml1-transitional.dtd
Key Type:	Public ID
Key:		-//W3C//DTD XHTML 1.0 Transitional//EN
So it seems to me that the dtd file is cached in a jar of wst plugin; but, however, Eclipse-STS tries to connect to the w3c too many times and so the w3c blocks these requests.

According to you how can i solve this issue? It's really frustrating

Regards,
Angelo