Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java Open Source > Apache Tomcat
|
Apache Tomcat General discussion of the Apache Tomcat servlet container. For discussions specific to the Professional Apache Tomcat book, please see the book discussion forum for that book.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Apache Tomcat section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 18th, 2010, 02:48 AM
Registered User
 
Join Date: Jan 2010
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Stopping automatic context reloading

Hello all,

Im trying to disable the automatic context reloading that happens every 10 seconds (preferably just for one specific webapp, but failing that then for all).

Code:
DEBUG ContainerBackgroundProcessor[StandardEngine[Catalina]] org.apache.catalina.startup.HostConfig - Checking context[/tests] redeploy resource C:\Program Files\Apache Software Foundation\Tomcat 6.0\conf\Catalina\localhost\tests.xml

DEBUG ContainerBackgroundProcessor[StandardEngine[Catalina]] org.apache.catalina.startup.HostConfig - Checking context[/tests] redeploy resource C:\Program Files\Apache Software Foundation\Tomcat 6.0\conf\Catalina\localhost\tests.xml

DEBUG ContainerBackgroundProcessor[StandardEngine[Catalina]] org.apache.catalina.startup.HostConfig - Checking context[/tests] redeploy resource \\10.10.101.11\logfiles\tests

DEBUG ContainerBackgroundProcessor[StandardEngine[Catalina]] org.apache.catalina.startup.HostConfig - Checking context[/tests] redeploy resource \\10.10.101.11\logfiles\tests

DEBUG ContainerBackgroundProcessor[StandardEngine[Catalina]] org.apache.catalina.startup.HostConfig - Checking context[/tests] reload resource C:\Program Files\Apache Software Foundation\Tomcat 6.0\conf\Catalina\localhost\tests.xml

DEBUG ContainerBackgroundProcessor[StandardEngine[Catalina]] org.apache.catalina.startup.HostConfig - Checking context[/tests] reload resource C:\Program Files\Apache Software Foundation\Tomcat 6.0\conf\Catalina\localhost\tests.xml

DEBUG ContainerBackgroundProcessor[StandardEngine[Catalina]] org.apache.catalina.startup.HostConfig - Checking context[/tests] reload resource C:\Program Files\Apache Software Foundation\Tomcat 6.0\conf\web.xml

DEBUG ContainerBackgroundProcessor[StandardEngine[Catalina]] org.apache.catalina.startup.HostConfig - Checking context[/tests] reload resource C:\Program Files\Apache Software Foundation\Tomcat 6.0\conf\web.xml
(sorry if that's hard to read)

I have tried putting
Code:
reloadable="false"
in all the relevant xml files but it seems to ignore it completely.

XML files:

Tomcat 6.0\conf\Catalina\localhost\tests.xml
and Tomcat 6.0\webapps\tests\WEB-INF\web.xml
Code:
<Context override="true" reloadable="false" docBase="//10.10.101.11/logfiles/tests" />
To try and stop it completely I put similar to the above in the xml files in Tomcat 6.0/conf (web,server,context.xml).

Is there something i'm missing or doing wrong?

Thanks in advance for any help

EDIT:

I have just found out the following in server.xml

Code:
<Host name="localhost"  appBase="webapps"
            unpackWARs="true" autoDeploy="true"
            xmlValidation="false" xmlNamespaceAware="false">
which explains why I couldnt turn it off for all contexts. I am still confused on how to turn it off for just one specific context though

Last edited by Lizzip; January 18th, 2010 at 03:35 AM..





Similar Threads
Thread Thread Starter Forum Replies Last Post
Stopping duplicate value insertion biswa VB Databases Basics 2 October 8th, 2009 08:40 PM
PHP & Forms: stopping spam and multiple posts stephen_c_ Beginning PHP 1 July 28th, 2005 02:36 PM
Duplicate Error Message Stopping it ru1 Access 2 February 25th, 2005 04:53 PM
Stopping frequent submission rajuru Beginning PHP 1 August 20th, 2004 09:56 AM
ASP 0177 Object server is stopping when OLE servic not24 Classic ASP Components 2 August 12th, 2003 02:58 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.