Mike Kienenberger wrote:
On 4/5/06, Adam <[EMAIL PROTECTED]> wrote:
For Tomcat, the solution appears to be:

go to tomcat-install-dir/conf/catalina.properties and add this to
lines:
http.proxyHost=<proxy address>
http.proxyPort=<proxy port>

The H and the P of host and port must be in capital letters.

While this will work for you, you're still fetching the dtds from the internet.
This means that if the internet route to that host is ever down, or
that host is unable to serve the dtd to you, your app will fail.

I would try copying your dtd files into WEB-INF for each app and see
if that solves the problem.   There's bound to be a way to provide
local copies of these files, even though it can sometimes vary. You'll not only get better performance, but you'll have better
reliability as well.


If I simply set the doc type like:

<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "web-app_2_3.dtd">

Doing this, myfaces bugs out with:

ERROR org.apache.myfaces.webapp.StartupServletContextListener : Error initializing ServletContext javax.faces.FacesException: java.io.FileNotFoundException: \WEB-INF\web-app_2_3.dtd (The system cannot find the path specified)

The dtd is there in the WEB_INF folder but....it would appear that the java.io.File is being directed to a place w/o any webapp context file path.




Adam

Reply via email to