tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Gainty" <mgai...@hotmail.com>
Subject Re: How to turn of CONTEXT RELOADS??
Date Wed, 04 Jan 2006 01:45:14 GMT
something about
"a watched teapot never boils"

I am glad that worked for you,

najlepszy,
Martin--
----- Original Message ----- 
From: "Marcin Okraszewszki" <okrasz_news@o2.pl>
To: "Tomcat Users List" <users@tomcat.apache.org>
Sent: Tuesday, January 03, 2006 5:21 AM
Subject: Re: How to turn of CONTEXT RELOADS??


>A read about the manager in
> http://tomcat.apache.org/tomcat-5.5-doc/config/manager.html
> It seems for me that it is only connected with HTTP session tracking. 
> Nothing with context reloads.
>
> But I think I've found the reason. By default if web.xml changes, Tomcat 
> reloads the application, despite of reloadable attribute. I think that was 
> the reason - I might have change the web.xml. I removed the 
> <WatchedResource>WEB-INF/web.xml</WatchedResource> from context.xml and 
> even if I change the web.xml, the application is not reloaded.
>
> I hope that was really it!
> Thank you for help! If you haven't pointed the conf/context.xml file, I 
> would probably never cama accross it.
> Marcin Okraszewski
>
> Martin Gainty napisał(a):
>
>> Yes I believe those rules changed ever so slightly in Tomcat 5.x as your 
>> message indicated
>> the doc states
>> "Restart persistence may be disabled by setting this [pathname] attribute 
>> to an empty string."
>> so
>> <Manager pathname="" />
>> should disable session object serialisation
>>
>> Anyone else?
>> Martin-
>> By default, Tomcat 5.5 attempts to save all objects that are stored in 
>> the session object every timeit shuts downBy default, Tomcat 5.5 attempts 
>> to save all objects that are stored in the session object every timeit 
>> shuts down----- Original Message ----- From: "Marcin Okraszewszki" 
>> <okrasz_news@o2.pl>
>> To: "Tomcat Users List" <users@tomcat.apache.org>
>> Sent: Monday, January 02, 2006 10:52 AM
>> Subject: Re: How to turn of CONTEXT RELOADS??
>>
>>
>>> I haven't set the reloadable option. Accorting to documentation, the 
>>> default is "false", so I thought I do not need to set it.
>>>
>>> The context.xml:
>>> <Context path="" cookies="false" allowLinking="true">
>>>    <Realm className="org.apache.catalina.realm.MemoryRealm"
>>>         pathname="/var/webapps/ROOT/WEB-INF/users.xml" />
>>> </Context>
>>>
>>>
>>> And the server.xml
>>>
>>> <?xml version="1.0"?>
>>> <Server port="8005" shutdown="SHUTDOWN">
>>>  <Listener 
>>> className="org.apache.catalina.mbeans.ServerLifecycleListener"/>
>>>
>>>  <GlobalNamingResources>
>>>    <!-- Used by Manager webapp -->
>>>    <Resource name="UserDatabase" auth="Container" 
>>> type="org.apache.catalina.UserDatabase" description="User database that
>>> can be updated and saved" 
>>> factory="org.apache.catalina.users.MemoryUserDatabaseFactory" 
>>> pathname="conf/tomcat-users.xml"/>
>>>  </GlobalNamingResources>
>>>
>>>  <Service name="Catalina">
>>>    <Connector port="8080" address="127.0.0.1"/>
>>>
>>>    <Engine name="Catalina" defaultHost="localhost">
>>>      <Realm className="org.apache.catalina.realm.UserDatabaseRealm" 
>>> resourceName="UserDatabase"/>
>>>      <Host appBase="/var/webapps" name="localhost"/>
>>>    </Engine>
>>>
>>>  </Service>
>>> </Server>
>>>
>>>
>>> Martin Gainty napisał(a):
>>>
>>>> Marcin-
>>>>
>>>> can we see contents of your
>>>> /META-INF/context.xml
>>>> specifically the value of the reloadable option
>>>>
>>>> dziekuje,
>>>> Martin-
>>>>
>>>>> Hi,
>>>>> I would like to turn off automatic context reloading in Tomcat. It is
>>>>> isn't about reloadable="true" context setting, because I haven't set

>>>>> it
>>>>> and I do not change anything in webapp and I still I found such log 
>>>>> entry:
>>>>>
>>>>> INFO: Reloading context []
>>>>>
>>>>> And then the application is reloaded, the context listeners get the
>>>>> signal, etc. I do not want such behavior. I have no idea what makes
>>>>> Tomcat to reload the context. I would like an application to be loaded
>>>>> and kept there until I stop Tomcat.
>>>>>
>>>>> Is it possible to somehow turn this off and have the application 
>>>>> loaded
>>>>> only once?
>>>>>
>>>>> Regards,
>>>>> Marcin Okraszewski
>>>>>
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>>>>> For additional commands, e-mail: users-help@tomcat.apache.org
>>>>>
>>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>>>> For additional commands, e-mail: users-help@tomcat.apache.org
>>>>
>>>>
>>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>>> For additional commands, e-mail: users-help@tomcat.apache.org
>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
>>
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message