`

Parsing error processing resource path

    博客分类:
  • SSH
阅读更多

ERROR - Parsing error processing resource path /WEB-INF/struts-config.xml解决办法:

ERROR - Parsing error processing resource path /WEB-INF/struts-config.xml java.net.UnknownHostException: struts.apache.org 

at java.net.PlainSocketImpl.connect(Unknown Source) ………….

 解决办法一:

struts-config.xml如下配置: 

<!DOCTYPE struts-config PUBLIC " //Apache Software Foundation//DTD Struts Configuration 1.2//EN" "http://struts.apache.org/dtds/struts-config_1_2.dtd"> 

好象不能上网就会报

ERROR [ActionServlet] Parsing error processing resource path java.net.UnknownHostException: struts.apache.org

后来换了个头 

<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.1//EN" "http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd">

 就可以了.

解决办法二:

这 是由于struts-config.xml中的dtd校验中的地址为 http://struts.apache.org/dtds/struts-config_1_2.dtd,按照这个地址将struts- config_1_2.dtd下载后放到和struts-config.xml同一文件夹下,然后将struts-config.xml中替换为 struts-config_1_2.dtd就可以了

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics