Tomcat热部署不起作用 [英] Tomcat Hot Deploy not working

查看:479
本文介绍了Tomcat热部署不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Tomcat 6服务器上热部署新的WAR时遇到问题.

I'm having an issue hot deploying a new WAR on my Tomcat 6 server.

当我添加新的WAR时,我可以看到Tomcat正在尝试部署它.但是,我认为问题在于不展开旧战争-展开的战争文件夹的内容都将被删除-除了WEB-INF文件夹.

When I add in my new WAR I can see that Tomcat is attempting to deploy it. However, I believe the problem lies in undeploying the old war - the exploded war folder's contents are all deleted - except the WEB-INF folder.

如果我停止服务器,请删除WEB-INF文件夹,然后再次启动,这样我的战争就可以正确部署.

If I stop the server, delete the WEB-INF folder and then start again, my war is deployed correctly.

有人可以建议这里发生什么事吗?

Can anyone suggest anything which may be happening here?

谢谢.

推荐答案

找到了解决方案,问题在于,当Tomcat运行时Windows锁定了该文件夹.要删除此锁定,只需在Catalina主页中编辑context.xml,然后更改

Found the solution, the problem lies in the fact that Windows locks the folder when Tomcat is running. To remove this locking, just edit context.xml in the Catalina Home, change

<context>

收件人:

<Context antiJARLocking="true" antiResourceLocking="true">

这篇关于Tomcat热部署不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆