eclipse tomcat May be locked by another process 解决
来源:互联网 发布:淘宝买小饰品文艺店铺 编辑:程序博客网 时间:2024/05/17 08:22
eclipse中开发,项目部署在tomcat7中,每次修改文件之后,tomcat要自动重新部署,就会报这个错误
Could not delete D:/workspace-jee-indigo/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/ssh/WEB-INF/lib. May be locked by another process.
在网上百搜不得解啊!
这个问题我怀疑是不是因为tomcat启动太快,自己的进程又要使用lib下的jar又要删除lib下的jar造成的。
后来研究tomcat的配置,双击tomcat
各个配置研究之后发现勾上Server modules without publishing 问题能够解决,这个配置的意思 让tomcat直接使用WebContent下的东西,不再需要发布到
D:\workspace-jee-indigo\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\ssh\WEB-INF 下面,每次tomcat重新部署也就不再需要删除WEB-INF下面的内容,问题就得以解决。
这个面板上的其他相关配置参考 :http://my.oschina.NET/uniquejava/blog/80945
(1)serve modules without publishing:
让tomcat直接使用WebContent下的东西
省去publish到<workspace>\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps
勾上它会将tmp0\wtpwebapps下相关的resources删除,
同时会修改Servers/Tomcat v6.0 Server at localhost-config/servers.xml中的serveModulesWithoutPublish=true
以及tmp0/conf/server.xml中的<Context>配置
(2)publish module contexts to separate XML files
勾选 上后会修改Servers/Tomcat v6.0 Server at localhost-config/servers.xml中的saveSeparateContextFiles=true
同时将tmp0/conf/server.xml中关于该app的<Context>元素
移动到tmp0/conf/Catalina/localhost/appName.xml中
修改JSP后立即生效(在没有勾选Server modules without publishing的情况下,如果勾选,修改jsp或js总会立即生效):
Ctrl+Shift+R,找到server.xml
将reloadable="true"改为false,这样保存JSP时Tomcat不会自动重启,若勾选Server modules without publishing修改class也不会自动重启
勾选上Automatically publish when resources change
这样修改JSP后tomcat能热加载。。(这个选项对Java文件无效,关了以后每次也能热加载)
- eclipse tomcat 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 解决
- Eclipse May be locked by another process错误解决
- Tomcat报错,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)
- eclipse中tomcat发布失败(Could not delete May be locked by another process)原因及解决办法
- 修改jsp文件tomcat发布失败(Could not delete May be locked by another process)
- Tomcat Publish报错(Could not delete ........ May be locked by another process.)
- tomcat 启动 : /WEB-INF/lib. May be locked by another process
- Could not delete .........May be locked by another process.
- web项目部署时总是提示May be locked by another process. Error copying file
- 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.
- 解决record is locked by another user
- dpkg: error: dpkg status database is locked by another process
- SparkSQL实战之Youtube数据集
- 树莓派IP地址设置
- 【大数据部落】NBA体育决策和数据挖掘分析
- eclipse如何导入okhttp 2.x源码
- Ubuntu中安装中文输入法
- eclipse tomcat May be locked by another process 解决
- Span使用之利用自定义Span解析Html中特殊标签实现类似微博@效果
- Java 基础的东西
- 刷题——SortList
- Windows下多Tomcat实例
- @RequestMapping 用法详解之地址映射
- 【bzoj3450】 Tyvj1952 Easy
- 2809: [Apio2012]dispatching
- 程序是在何种环境下运行的