在网上找了一些方法解决了,

第一种:把那个被锁定的某文件(不重要的文件,不如log文件)删掉,再把项目从tomcat服务器中remove掉,接着clean  tomcat服务器,

JSP保存报错 Publishing failed with multiple errors:Could not delete ,May be locked by another processed

 

最后重新部署项目重启就可以解决。然而这个方法不能解决我的问题

 

第二种:有人说是系统原因,系统有进程javaw.exe没有关。我试了关了该进程,部署的项目也关了,重启后发现该问题还没解决。关闭指定进程可以在资源监视器的关联的句柄中搜索,然后选中进程关闭,如下图:

JSP保存报错 Publishing failed with multiple errors:Could not delete ,May be locked by another processed

 

第三种:打开tomcat服务器的配置页面,勾选Server Options 的server modules without publishing选项,然后重启服务问题解决

JSP保存报错 Publishing failed with multiple errors:Could not delete ,May be locked by another processed

 

为什么勾选server modules without publishing选项,保存不报错,还需继续研究。

相关文章: