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 ">
If you can't get online, you'll report
Error [Actionservlet] Parsing Error processing resource path java.net.UnknownHostException:struts.apache.org
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 ">
It's OK.
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 and will be struts-config_1_2 by this address. After the DTD is downloaded, put it under the same folder as Struts-config.xml, and then replace Struts-config.xml with STRUTS-CONFIG_1_2.DTD.
Reference Address: http://hi.baidu.com/marsjin/blog/item/016e3d7fb257520f29388a5c.html