請問如何修改 Tomcat 5.5 設定檔
回應主題】 【回上一頁】 【回討論區】 【重新整理

主題發表人:hilife 發表時間:2008/03/26(00:07:34) (刪除 / 修改)
請問如何修改 Tomcat 5.5 下的 context.xml 設定檔加入
<context antiJARLocking="true" antiResourceLocking="true">
請各位大大指教一下....謝謝

=============原始文件開始==================================
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<!-- The contents of this file will be loaded for each web application -->
<Context>

<!-- Default set of monitored resources -->
<WatchedResource>WEB-INF/web.xml</WatchedResource>

<!-- Uncomment this to disable session persistence across Tomcat restarts -->
<!--
<Manager pathname="" />
-->

</Context>
============原始文件結束============================

回應者:hilife 於:2008/03/26(00:16:51) (刪除 / 修改)
原始的修改文件如下

Tomcat hot-deployment problem on Windows This is a know issue with Tomcat working under Windows. Openbravo does a hot-deploy a of the openbravo WAR file to Tomcat. On Windows it often encounters file locking issues. Windows won’t let Tomcat undeploy the old app because files are locked by the OS. Tomcat has mechanisms to allow avoiding locking. In Tomcat 5.5 and 6.0, this mechanism is disabled by default. To enable it edit %CATALINA_BASE%confcontext.xml. Find the root <context> and add these two attributes:

<context antiJARLocking="true" antiResourceLocking="true">


↓回應主題↓
(會員登入會員登出會員注冊忘記密碼使用規則 )
信箱:
內容: (貼圖直接把圖片網址貼上即可,無需加上 HTML 語法!)