Eclipse每次修改文件之后,tomcat要自动重新部署,就会报这个错误:May be locked by another process

版权声明:本文为博主原创文章,转载请注明出处。 https://blog.csdn.net/qq_32786873/article/details/83273896

tomcat启动后,每次修改文件后,tomcat会自动重新部署,就会报如下错误:

Publishing failed with multiple errors
Could not delete D:\Program Files\apache-tomcat-7.0.90\webapps\h3bpm-portal\logs\BizBus\BizBus-log.log. May be locked by another process.
Could not delete D:\Program Files\apache-tomcat-7.0.90\webapps\h3bpm-portal\logs\Common\common-log.log. May be locked by another process.
Could not delete D:\Program Files\apache-tomcat-7.0.90\webapps\h3bpm-portal\logs\Controller\Controller-log.log. May be locked by another process.
Could not delete D:\Program Files\apache-tomcat-7.0.90\webapps\h3bpm-portal\logs\Engine\Engine-log.log. May be locked by another process.
Could not delete D:\Program Files\apache-tomcat-7.0.90\webapps\h3bpm-portal\logs\Entity\Entity-log.log. May be locked by another process.
Could not delete D:\Program Files\apache-tomcat-7.0.90\webapps\h3bpm-portal\logs\Portal\webservices-log.log. May be locked by another process.
Could not delete D:\Program Files\apache-tomcat-7.0.90\webapps\h3bpm-portal\logs\SmartFlow\SmartFlow-log.log. May be locked by another process.

解决方法:

在tomcat server配置页面勾上:Serve modules without publishing

猜你喜欢

转载自blog.csdn.net/qq_32786873/article/details/83273896