Error-parsing Error processing resource Path/web-inf/struts-config.xml java.net.UnknownHostException: struts.apache.org
At Java.net.PlainSocketImpl.connect (Unknown Source) .......
Solution One:
Struts-config.xml is configured as follows:
<! DOCTYPE struts-config Public "//apache software foundation//dtd struts Configuration 1.2//en" "http://struts.apache.org /dtds/struts-config_1_2.dtd ">
It's like you can't surf the internet.
Error [Actionservlet] Parsing Error processing resource path java.net.UnknownHostException:struts.apache.org
And then I changed my head.
<! DOCTYPE struts-config Public "-//apache software foundation//dtd struts Configuration 1.1//en" "/http Jakarta.apache.org/struts/dtds/struts-config_1_1.dtd ">
You can do it.
Solution Two:
This is because the address in the DTD checksum in Struts-config.xml is HTTP://STRUTS.APACHE.ORG/DTDS/STRUTS-CONFIG_1_2.DTD, which will struts-config_1_2 according to this address. After the DTD is downloaded, put it in the same folder as Struts-config.xml, and then replace the struts-config.xml with STRUTS-CONFIG_1_2.DTD.