部署web项目到tomcat报Could not publish to the server.Deployment failed某个文件(拒绝访问)
在windows操作系统上从事java的web开发这么久,从没遇到过myeclipse的tomcat部署web项目时出现某个文件拒绝访问,错误报告如下所示:
Could not publish to the server.
There were issues during deployment to server Tomcat v7.0 Server at localhost. See Error Log for details.
Deployment failed
D:\setUp\apache-tomcat-7.0.54 - 2015\webapps\DGSYS\WEB-INF\pages\statistics\company\gkfrqycwzk.jsp (拒绝访问。)
D:\setUp\apache-tomcat-7.0.54 - 2015\webapps\DGSYS\WEB-INF\pages\statistics\company\gkfrqycwzk.jsp (拒绝访问。)
D:\setUp\apache-tomcat-7.0.54 - 2015\webapps\DGSYS\WEB-INF\pages\statistics\company\gkfrqycwzk.jsp (拒绝访问。)
解决方法:
是电脑安装了某个杀毒软件,比如360杀毒,识别代码某个页面是病毒文件,自动屏蔽了gkfrqycwzk.jsp,所以部署时无法访问gkfrqycwzk.jsp,做法就是暂时就是部署到Tomcat时先把杀毒软件退出。问题即可解决,亲试可行,极力推荐。
本文地址:http://yayihouse.com/yayishuwu/chapter/1065