`

eclipse下tomcat发布失败(Could not delete May be locked by another process)(转)

阅读更多

eclipse下运行tomcat时偶尔会出现部署失败。因为这个“偶尔”所以用了很长时间才确定原因。 

原因是:在上次关闭eclipse时没有关闭运行中的tomcat,直接退出了eclipse,这就导致部署的文件被上次运行程序锁定。重新打开程序时就无法运行了。 

即使每次退出时都正常关闭tomcat,还会出现以上问题,那就是tomcat的设置,默认的设置是文件修改后立即发布,这样的设置是在你每个保存文件时都会触发,如果tomcat已经在运行,这样频繁的操作也会造成文件锁死(硬件速度慢的更容易发生)。虽然在设置中可以设置延迟时间,但这个很难把握,毕竟每个机器是不同的。所以最好在publishing下设置成 Never publish automatically 这样改过程序后,手动重启tomcat,这样就不会再出问题了。

分享到:
评论

相关推荐

    方型铰链EXB

    CAD

    Diskeeper 2008 v12.0.759.0

    Whether you抳e used Diskeeper before or not, you may already be familiar with some of its features, but Diskeeper 2008 adds refinements to these features, and a number of other core enhancements. ...

    Xilinx FPGA下载器驱动解决[Labtoolstcl 44-494]报错的问题

    在设备管理器里删除原有驱动,然后安装这个驱动即可。

    FlexGraphics_V_1.79_D4-XE10.2_Downloadly.ir

    - ADD: Add TFlexPanel.InvalidateControl virtual method which calls from TFlexControl.Invalidate and can be overriden (it is possible now to catch all object invalidation calls). - FIX: The TFlexPanel....

    微软内部资料-SQL性能优化3

    An isolation level determines the degree to which data is isolated for use by one process and guarded against interference from other processes. Prior to SQL Server 7.0, REPEATABLE READ and ...

    smartgit 19.1.5 windows 安装包

    because it was locked by another application - i18n: variable text parts could be replaced by "1", "2", ... - internal error saving passwords - for commercial users with outdated licenses the ...

    微软内部资料-SQL性能优化2

    Although 2 GB of address space may seem like a large amount of memory, application such as SQL Server could leverage more memory if it were available. The boot.ini option /3GB was created for those ...

    oracle数据库解决死锁

    oracle数据库解决死锁,使用plsql语句手动解决死锁问题

    报告格式(数据库实验的报告格式)

    数据库设计报告格式 设计报告应包含以下内容: (1)题目 (2)目录 (3)正文  需求分析 总体设计 数据库设计(含概念结构设计、逻辑结构设计、物理结构设计) 程序模块设计(含用户界面设计、程序代码设计与分析...

    解决sqlite死锁示例异常database is locked示例

    解决sqlite死锁示例异常database is locked示例

    Core is locked-up! stm32 flash 解锁

    stm32 flash解锁,我的是开发板,在按键中断中解锁flash,具体的见源代码,使用ram.icf,把程序烧录在ram中,环境是IAR6.10,库版本是3.0,成功解决Core is locked-up问题。~

    VclZip pro v3.10.1

    This will cause files to not be decryptable by normal zip utilities thereby adding a bit of extra security. Bugs Fixed: IMPORTANT!!! Behavior of freeing the ArchiveStream (compressed stream) has ...

    Phaes-Locked Loops Design R.E.Best

    CD-Rom for the book "Phase-Locked Loops Design,Simulation and Applications by R.E.Best. A design program for Phase-locked loops circuits

    Oracle the account is locked解决办法

    Oracle; the account is locked

    Previous operation has not finished; run 'cleanup' if it was interrupted

    1、把sqlite3.exe放在SVN项目.svn文件夹下,如果隐藏了请显示 2、在.svn目录下打开cnd 3、执行sqlite3 wc.db 4、执行.table 查看是否有work_queue表,没有关闭cmd重新执行2.3 5、执行delete from work_queue; 6、...

    ubuntu里各种错误的解决方法

    子进程 post-installation script 返回了错误号 1 在处理时有错误发生,debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: 资源暂时不可用等错误的解决方法

    BURNINTEST--硬件检测工具

    will need to be sent to Microsoft as per the normal process. However, a log entry will be added to the normal BurnInTest log. - Changes to trace logging to reduce activity when trace logging is not...

    Unlocker(解锁顽固文件)

    "Cannot delete xxx: It is being used by another person or program." ? Unlocker is a tool which will help you removing this scandaleous Windows bug. Simply right click the file or folder and select ...

    JLink_Windows_V648.zip

    Analog Devices ADUCM355: Reset could not be overwritten using a J-Link script file. Fixed. CCS plugin: Added a new option which allows configuring a J-Link script file (project dependent). ...

    SVN在客户端执行UPDATE报locked的处理办法

    SVN在客户端执行UPDATE报locked的处理办法,这里报错是提示工作拷贝“D:\svn_repository\cmout\cm\SVN\SVN客户端\TortoiseSVN\download”锁住了

Global site tag (gtag.js) - Google Analytics