gpt4 book ai didi

tomcat6 - Tomcat 6 热部署问题

转载 作者:行者123 更新时间:2023-12-04 09:08:54 24 4
gpt4 key购买 nike

我在 Vista 64 位上使用 Java 6 64 位和 STANDALONE Tomcat 6.0.18。我正在使用struts 1.3.10 和tile 开发一个Web 应用程序。现在,当我对 java 或 jsp 文件进行更改时,重新加载页面时它们不可见。我必须在 Tomcat 管理器中手动重新加载 Web 应用程序才能查看更改。我的网络应用程序配置如下:

$CATALINA_BASE/conf/Catalina/localhost/dashboard.xml

<Context docBase="D:/mydata/projects/PatchworkSystems/development/Dashboard/webapp"
path="/dashboard"
reloadable="true" antiJARLocking="true" antiResourceLocking="true" debug="1" />

任何帮助是极大的赞赏。

谢谢
四面体

最佳答案

啊,这个老栗子。

去年夏天我在一个项目上遇到了这个障碍。

这是因为在您的上下文中设置了 antiResourceLocking="true"会产生副作用。如果您在此处阅读有关 Tomcat 的文档:

http://tomcat.apache.org/tomcat-5.5-doc/config/context.html

"Please note that setting this to true has some side effects, including the disabling of JSP reloading in a running server: see Bugzilla 37668."



这是在这里:

https://issues.apache.org/bugzilla/show_bug.cgi?id=37668

据我所知,没有解决方法,如果您删除该属性,它将允许您再次自动加载您的 JSP。我们设置了一个部署时间替换来将属性放回生产中。嘘,嘘!无论如何,如果您删除 antiResourceLocking 属性,它将解决您遇到的问题。

提供一个解决方法 Apache !!!

关于tomcat6 - Tomcat 6 热部署问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/904877/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com