修改jsp文件tomcat发布失败(Could not delete May be locked by another process)
来源:互联网 发布:淘宝店铺头像图片制作 编辑:程序博客网 时间:2024/05/22 11:44
突然项目修改jsp文件后,tomcat不能发布,
Publishing failed with multiple errors
Could not delete D:/Tomcat 6.0/webapps/Server/WEB-INF/platform/configuration/org.eclipse.core.runtime/.manager/.tmp1900396474661591532.instance. c.
Could not delete D:/Tomcat 6.0/webapps/Server/WEB-INF/platform/configuration/org.eclipse.core.runtime/.manager/.tmp1907896664996379798.instance. May be locked by another process.
Could not delete D:/Tomcat 6.0/webapps/Server/WEB-INF/platform/configuration/org.eclipse.equinox.app/.manager/.tmp2761653564891974481.instance. May be locked by another process.
网上找了两种解决办法
1.修改项目的发布地址:
原文:
I was getting the annoying error in Eclipse with Tomcat where it didn’t think it could publish an application since some files were locked, when they were locked by the javaw.exe process that eclipse.exe started. The fix for me was to not have “Use Tomcat installation” selected in my server configuration. When I switched back to the default of “Use workspace metadata”, the error stopped happening.
[http://byprogrammerforprogrammer.com/2009/12/eclipsetomcat-publishing-lockup-could-not-delete-file-may-be-locked-by-another-process/]
2.clean
原文:
I performed a "clean" operation on the Tomcat server instance and the problem just went away. It's being doing fine since that. I'll let you know if I see this issue again.
[http://forums.adobe.com/message/2457298?tstart=0](3楼: )
我使用这种方法时,问题刚开始消失了,但过了一阵又是老样子。
我突然想到同一个eclipse下的别的项目使用的时候没有出现这个问题,有可能是项目设置的问题,
这个web项目引用了另外一个java项目(项目B),两个项目有一些相同的jar包,是不是这些相同的jar发布的问题呢,我把项目B的Java EE Module Dependencies(项目B右键->Properties->Java EE Module Dependencies)里的jar包引用去掉,问题解决了。
3.new server
简单有效可行的方法,把原来抛错的tomcat server delete,再重新 new 一个!!!别再纠结了哦~~嘎嘎 : P
- 修改jsp文件tomcat发布失败(Could not delete May be locked by another process)
- eclipse下tomcat发布失败(Could not delete May be locked by another process)
- eclipse中tomcat发布失败(Could not delete May be locked by another process)原因及解决办法
- eclipse下tomcat发布更新文件(Could not delete xxx.data May be locked by another process)
- Tomcat Publish报错(Could not delete ........ May be locked by another process.)
- Could not delete .........May be locked by another process.
- Publishing failed with multiple errors Could not delete *,May be locked by another process.
- Publishing failed with multiple errors Could not delete *,May be locked by another process.
- eclipse tomcat May be locked by another process 解决
- eclipse tomcat May be locked by another process 解决
- eclipse tomcat May be locked by another process 解决
- Tomcat报错,May be locked by another process.
- eclipse tomcat May be locked by another process 解决
- tomcat 启动 : /WEB-INF/lib. May be locked by another process
- Eclipse May be locked by another process错误解决
- web项目部署时总是提示May be locked by another process. Error copying file
- SEVERE: Could not contact localhost:8005. Tomcat may not be running error while shutting down tomcat
- tomcat 严重: Could not contact localhost:8005. Tomcat may not be running.
- ssh整合方法 含源码
- 创建MySQL用户 赋予某指定库表的权限
- Java:split分割字符串常遇到的问题
- 常用的正则表达式
- 【转贴】如何读好Phd博士
- 修改jsp文件tomcat发布失败(Could not delete May be locked by another process)
- Java:调用CMD命令打开文件或系统程序
- 不同文件系统的换行符是不一样的
- 用引用传递函数参数
- Java:读取网站的源码方法
- HP Pavilion ze2000中硬盘检修过程
- Java:读取网站的所有URL地址
- linux-live的build脚本
- Java:DBHelper