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, [EMAIL PROTECTED] <[EMAIL PROTECTED]>:

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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Reply via email to