struts2的“The file cannot be validated as the host "struts.apache.org" is currently unreachable"问题解决
2018-04-09 10:30
891 查看
struts2的“The file cannot be validated as the host "struts.apache.org" is currently unreachable"问题解决
出现该问题的原因是缺少相应的.dtd文件的支持。解决方法:通过手工添加dtd的支持
同时在MyEclipse中 struts.xml配制文件中alt+/不支持提示,这时也可通过手工添加dtd的支持解决在Myeclipse中菜单栏window->preference->Myeclipse->file and eiditor->xml->xml catalog->add1)Location:在struts2文件夹下的lib目录,找到struts2-core文件并解压,打开解压的目录下即可找到struts2.3.dtd 。这里location就选中该文件。
2)Key Type:选中URI
3)Key : 在struts.xml中有<!DOCTYPE struts PUBLIC "-//Apache Software Foundation//DTD Struts Configuration2.3//EN" "http://struts.apache.org/dtds/struts-2.3.dtd">复制其中的:http://struts.apache.org/dtds/struts-2.3.dtd 粘贴到key。到此基本可以解决该问题。参考:网上资料整合
出现该问题的原因是缺少相应的.dtd文件的支持。解决方法:通过手工添加dtd的支持
同时在MyEclipse中 struts.xml配制文件中alt+/不支持提示,这时也可通过手工添加dtd的支持解决在Myeclipse中菜单栏window->preference->Myeclipse->file and eiditor->xml->xml catalog->add1)Location:在struts2文件夹下的lib目录,找到struts2-core文件并解压,打开解压的目录下即可找到struts2.3.dtd 。这里location就选中该文件。
2)Key Type:选中URI
3)Key : 在struts.xml中有<!DOCTYPE struts PUBLIC "-//Apache Software Foundation//DTD Struts Configuration2.3//EN" "http://struts.apache.org/dtds/struts-2.3.dtd">复制其中的:http://struts.apache.org/dtds/struts-2.3.dtd 粘贴到key。到此基本可以解决该问题。参考:网上资料整合
相关文章推荐
- The file cannot be validated as theho st "struts.apache.org" is currently unreachable.
- Eclipse Android开发遇到:"The type org.apache.http.HttpResponse cannot be resolved."问题的解决办法
- 异常-----springmvc + ajaxfileupload解决ajax不能异步上传图片的问题。java.lang.ClassCastException: org.apache.catalina.connector.RequestFacade cannot be cast to org.springframework.web.multipart.
- The type org.apache.commons.lang.exception.NestableRuntimeException cannot be resolved. 问题解决
- org.apache.jasper.JasperException: The Struts dispatcher cannot be found的解决方法
- The file cannot be validated as the XML definition 异常解决办法
- Validator问题及解决办法——java.lang.ClassCastException: org.apache.struts.validator.ValidatorForm cannot be cast to forms.RegisterForm
- 在使用struts时出现问题: The absolute uri: http://jakarta.apache.org/struts/tags-bean cannot be resol
- 异常The file cannot be validated as the XML definition "http://www.opensymphony.com/
- org.apache.jasper.JasperException: The Struts dispatcher cannot be found的解决方法
- 解决struts2中UI标签出现的问题: The Struts dispatcher cannot be found
- The file cannot be validated as there was a connection problem. struts-config.xml
- The type org.apache.commons.fileupload.FileItemFactory cannot be resolved. It is indirectly referenc
- 解决java web项目导入后出现的问题 ---cannot be read or is not a valid ZIP file
- PowerShell: 如何解决File **.ps1 cannot be loaded because the execution of scripts is disabled on this system. Please see "get- help about_sig" for more de
- cannot find message resources under key org.apache.struts.action.message 问题解决
- Application "org.eclipse.ui.ide.workbench" could not be found in the registry.问题的解决
- myeclipse导入项目错误:The import org.apache.struts.tiles.ComponentContext cannot be resolved
- 解决MySQL导入文件问题(The selected file was generated by mysqldump and cannot be restored by this applicati)
- 用sudo时提示"xxx is not in the sudoers file. This incident will be reported 的解决办法