struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "A. Alonso Dominguez" <alonso.do...@gmail.com>
Subject Re: Problems fetching struts-config DTD
Date Thu, 11 May 2006 10:25:22 GMT
Take a look to the possible configurations of commons-digester, the
ActionServlet fallsback to that library when it loads all the
struts-config.xml files for your webapp.

A working solution is to remove the DOCTYPE reference in the xml files.

Alonso

2006/5/11, strutsniklas@nilin.se <strutsniklas@nilin.se>:
>
> Hi!
>
> I have a Struts webapp with a struts-config.xml that starts with the usual
>
> <?xml version="1.0" encoding="ISO-8859-1" ?>
>
> <!DOCTYPE struts-config PUBLIC
>   "-//Apache Software Foundation//DTD Struts Configuration 1.3//EN"
>   "http://struts.apache.org/dtds/struts-config_1_3.dtd">
>
> So when the web application is started Struts goes out to
> struts.apache.org to try to fetch the DTD file. This is becoming a problem
> since the Internet can't be reached from all environments that the web
> application is going to run in.
>
> What is the preferred way to handle this?
>
> Can you turn of validation so Struts never tries to fetch the DTD file? I
> have tried to add an init-param validating=false to web.xml (also tried
> validate=true) but that didn't seem to help.
>
> Can you put the DTD file locally womewhere inside the webapp and reference
> it in a way so that it works regardless of the environment?
>
> Thanks for any help!
>
> /Niklas
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message