You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Adam Dear <wa...@msstate.edu> on 2003/10/11 07:36:25 UTC

Tomcat Caching

hello, I have just started using Tomcat to host my java servlets.  I want to
know if there is anyway to turn off the caching for development purposes.
As it is now, when I make change to a servlet, I have to restart the tomcat
server for the changes to take effect.  While this isn't hard, it is a tad
bit annoying.  Please be specific as I know very little about tomcat.

Thanks


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


Re: Tomcat Caching

Posted by Kwok Peng Tuck <pe...@makmal.net>.
If I remember correctly, you probably need to provide a servlet mapping 
for your servlet.

Adam Dear wrote:

>Schalk,
>
>I added the following line to the server.xml file and restarted tomcat.
><context path="/servlet" docBase="servlet" debug="0" reloadable="true" />
>
>That didn't work.  Can you tell what is wrong.  I have tomcat to load
>servlets from the classes dir so that I access servlets like this:
>
>http://mydomain.com:port#/servlet/File
>
>Will this make a difference with what I am trying to do?
>
>Thanks
>
>-----Original Message-----
>From: Schalk [mailto:schalk@volume4.co.za]
>Sent: Tuesday, November 11, 2003 12:47 AM
>To: 'Tomcat Users List'
>Subject: RE: Tomcat Caching
>
>
>Adam
>
>In the Tomcat confide directory, there is a file called server.xml. Inside
>here you can create a Context-Path and set reloadable=true.
>
>Example:
><Context path="/meccafemme" docBase="meccafemme" debug="0"
>reloadable="true" />
>
>Kind Regards
>Schalk Neethling
>Web Developer.Designer.Programmer.CEO
>Volume4.Development.Multimedia.Branding
>emotionalize.conceptualize.visualize.realize
>Tel: +27125468436
>Fax: +27125468436
>email:schalk@volume4.co.za
>web: www.volume4.co.za
>
>This message contains information that is considered to be sensitive or
>confidential and may not be forwarded or diclosed to any other party without
>the permission of the sender. If you received this message in error, please
>notify me immediately so that I can correct and delete the original email.
>Thank you.
>
>:: -----Original Message-----
>:: From: Adam Dear [mailto:wad3@msstate.edu]
>:: Sent: Saturday, October 11, 2003 7:36 AM
>:: To: tomcat
>:: Subject: Tomcat Caching
>::
>:: hello, I have just started using Tomcat to host my java servlets.  I want
>to
>:: know if there is anyway to turn off the caching for development purposes.
>:: As it is now, when I make change to a servlet, I have to restart the
>tomcat
>:: server for the changes to take effect.  While this isn't hard, it is a
>tad
>:: bit annoying.  Please be specific as I know very little about tomcat.
>::
>:: Thanks
>::
>::
>:: ---------------------------------------------------------------------
>:: To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>:: For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>
>
>  
>


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


RE: Tomcat Caching

Posted by Schalk <sc...@volume4.co.za>.
Adam

In the server.xml you will find the following lines. This is the context for
the ROOT. Just uncomment it and add reloadable=true

<!-- Tomcat Root Context -->
<!--
<Context path="" docBase="ROOT" debug="0"/>
-->

Kind Regards
Schalk Neethling
Web Developer.Designer.Programmer.CEO
Volume4.Development.Multimedia.Branding
emotionalize.conceptualize.visualize.realize
Tel: +27125468436
Fax: +27125468436
email:schalk@volume4.co.za
web: www.volume4.co.za
 
This message contains information that is considered to be sensitive or
confidential and may not be forwarded or diclosed to any other party without
the permission of the sender. If you received this message in error, please
notify me immediately so that I can correct and delete the original email.
Thank you. 

:: -----Original Message-----
:: From: Adam Dear [mailto:wad3@msstate.edu]
:: Sent: Saturday, October 11, 2003 8:45 AM
:: To: Tomcat Users List
:: Subject: RE: Tomcat Caching
:: 
:: I am using the "servlet invoker".  The actual director is
:: tomcat/webapps/ROOT/WEB-INF/classes/.
:: 
:: -----Original Message-----
:: From: Schalk [mailto:schalk@volume4.co.za]
:: Sent: Tuesday, November 11, 2003 1:43 AM
:: To: 'Tomcat Users List'
:: Subject: RE: Tomcat Caching
:: 
:: 
:: Is your application directory within tomcat/webapps/ called servlet?
:: 
:: Kind Regards
:: Schalk Neethling
:: Web Developer.Designer.Programmer.CEO
:: Volume4.Development.Multimedia.Branding
:: emotionalize.conceptualize.visualize.realize
:: Tel: +27125468436
:: Fax: +27125468436
:: email:schalk@volume4.co.za
:: web: www.volume4.co.za
:: 
:: This message contains information that is considered to be sensitive or
:: confidential and may not be forwarded or diclosed to any other party
without
:: the permission of the sender. If you received this message in error,
please
:: notify me immediately so that I can correct and delete the original
email.
:: Thank you.
:: 
:: :: -----Original Message-----
:: :: From: Adam Dear [mailto:wad3@msstate.edu]
:: :: Sent: Saturday, October 11, 2003 8:35 AM
:: :: To: Tomcat Users List
:: :: Subject: RE: Tomcat Caching
:: ::
:: :: Schalk,
:: ::
:: :: I added the following line to the server.xml file and restarted
tomcat.
:: :: <context path="/servlet" docBase="servlet" debug="0" reloadable="true"
/>
:: ::
:: :: That didn't work.  Can you tell what is wrong.  I have tomcat to load
:: :: servlets from the classes dir so that I access servlets like this:
:: ::
:: :: http://mydomain.com:port#/servlet/File
:: ::
:: :: Will this make a difference with what I am trying to do?
:: ::
:: :: Thanks
:: ::
:: :: -----Original Message-----
:: :: From: Schalk [mailto:schalk@volume4.co.za]
:: :: Sent: Tuesday, November 11, 2003 12:47 AM
:: :: To: 'Tomcat Users List'
:: :: Subject: RE: Tomcat Caching
:: ::
:: ::
:: :: Adam
:: ::
:: :: In the Tomcat confide directory, there is a file called server.xml.
:: Inside
:: :: here you can create a Context-Path and set reloadable=true.
:: ::
:: :: Example:
:: :: <Context path="/meccafemme" docBase="meccafemme" debug="0"
:: :: reloadable="true" />
:: ::
:: :: Kind Regards
:: :: Schalk Neethling
:: :: Web Developer.Designer.Programmer.CEO
:: :: Volume4.Development.Multimedia.Branding
:: :: emotionalize.conceptualize.visualize.realize
:: :: Tel: +27125468436
:: :: Fax: +27125468436
:: :: email:schalk@volume4.co.za
:: :: web: www.volume4.co.za
:: ::
:: :: This message contains information that is considered to be sensitive
or
:: :: confidential and may not be forwarded or diclosed to any other party
:: without
:: :: the permission of the sender. If you received this message in error,
:: please
:: :: notify me immediately so that I can correct and delete the original
:: email.
:: :: Thank you.
:: ::
:: :: :: -----Original Message-----
:: :: :: From: Adam Dear [mailto:wad3@msstate.edu]
:: :: :: Sent: Saturday, October 11, 2003 7:36 AM
:: :: :: To: tomcat
:: :: :: Subject: Tomcat Caching
:: :: ::
:: :: :: hello, I have just started using Tomcat to host my java servlets.
I
:: want
:: :: to
:: :: :: know if there is anyway to turn off the caching for development
:: purposes.
:: :: :: As it is now, when I make change to a servlet, I have to restart
the
:: :: tomcat
:: :: :: server for the changes to take effect.  While this isn't hard, it
is a
:: :: tad
:: :: :: bit annoying.  Please be specific as I know very little about
tomcat.
:: :: ::
:: :: :: Thanks
:: :: ::
:: :: ::
:: :: ::
---------------------------------------------------------------------
:: :: :: To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
:: :: :: For additional commands, e-mail:
tomcat-user-help@jakarta.apache.org
:: ::
:: ::
:: ::
:: :: ---------------------------------------------------------------------
:: :: To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
:: :: For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
:: ::
:: ::
:: ::
:: :: ---------------------------------------------------------------------
:: :: To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
:: :: For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
:: 
:: 
:: 
:: ---------------------------------------------------------------------
:: To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
:: For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
:: 
:: 
:: 
:: ---------------------------------------------------------------------
:: To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
:: For additional commands, e-mail: tomcat-user-help@jakarta.apache.org



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


RE: Tomcat Caching

Posted by Adam Dear <wa...@msstate.edu>.
I am using the "servlet invoker".  The actual director is
tomcat/webapps/ROOT/WEB-INF/classes/.

-----Original Message-----
From: Schalk [mailto:schalk@volume4.co.za]
Sent: Tuesday, November 11, 2003 1:43 AM
To: 'Tomcat Users List'
Subject: RE: Tomcat Caching


Is your application directory within tomcat/webapps/ called servlet?

Kind Regards
Schalk Neethling
Web Developer.Designer.Programmer.CEO
Volume4.Development.Multimedia.Branding
emotionalize.conceptualize.visualize.realize
Tel: +27125468436
Fax: +27125468436
email:schalk@volume4.co.za
web: www.volume4.co.za

This message contains information that is considered to be sensitive or
confidential and may not be forwarded or diclosed to any other party without
the permission of the sender. If you received this message in error, please
notify me immediately so that I can correct and delete the original email.
Thank you.

:: -----Original Message-----
:: From: Adam Dear [mailto:wad3@msstate.edu]
:: Sent: Saturday, October 11, 2003 8:35 AM
:: To: Tomcat Users List
:: Subject: RE: Tomcat Caching
::
:: Schalk,
::
:: I added the following line to the server.xml file and restarted tomcat.
:: <context path="/servlet" docBase="servlet" debug="0" reloadable="true" />
::
:: That didn't work.  Can you tell what is wrong.  I have tomcat to load
:: servlets from the classes dir so that I access servlets like this:
::
:: http://mydomain.com:port#/servlet/File
::
:: Will this make a difference with what I am trying to do?
::
:: Thanks
::
:: -----Original Message-----
:: From: Schalk [mailto:schalk@volume4.co.za]
:: Sent: Tuesday, November 11, 2003 12:47 AM
:: To: 'Tomcat Users List'
:: Subject: RE: Tomcat Caching
::
::
:: Adam
::
:: In the Tomcat confide directory, there is a file called server.xml.
Inside
:: here you can create a Context-Path and set reloadable=true.
::
:: Example:
:: <Context path="/meccafemme" docBase="meccafemme" debug="0"
:: reloadable="true" />
::
:: Kind Regards
:: Schalk Neethling
:: Web Developer.Designer.Programmer.CEO
:: Volume4.Development.Multimedia.Branding
:: emotionalize.conceptualize.visualize.realize
:: Tel: +27125468436
:: Fax: +27125468436
:: email:schalk@volume4.co.za
:: web: www.volume4.co.za
::
:: This message contains information that is considered to be sensitive or
:: confidential and may not be forwarded or diclosed to any other party
without
:: the permission of the sender. If you received this message in error,
please
:: notify me immediately so that I can correct and delete the original
email.
:: Thank you.
::
:: :: -----Original Message-----
:: :: From: Adam Dear [mailto:wad3@msstate.edu]
:: :: Sent: Saturday, October 11, 2003 7:36 AM
:: :: To: tomcat
:: :: Subject: Tomcat Caching
:: ::
:: :: hello, I have just started using Tomcat to host my java servlets.  I
want
:: to
:: :: know if there is anyway to turn off the caching for development
purposes.
:: :: As it is now, when I make change to a servlet, I have to restart the
:: tomcat
:: :: server for the changes to take effect.  While this isn't hard, it is a
:: tad
:: :: bit annoying.  Please be specific as I know very little about tomcat.
:: ::
:: :: Thanks
:: ::
:: ::
:: :: ---------------------------------------------------------------------
:: :: To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
:: :: For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
::
::
::
:: ---------------------------------------------------------------------
:: To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
:: For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
::
::
::
:: ---------------------------------------------------------------------
:: To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
:: For additional commands, e-mail: tomcat-user-help@jakarta.apache.org



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



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


RE: Tomcat Caching

Posted by Schalk <sc...@volume4.co.za>.
Is your application directory within tomcat/webapps/ called servlet?

Kind Regards
Schalk Neethling
Web Developer.Designer.Programmer.CEO
Volume4.Development.Multimedia.Branding
emotionalize.conceptualize.visualize.realize
Tel: +27125468436
Fax: +27125468436
email:schalk@volume4.co.za
web: www.volume4.co.za
 
This message contains information that is considered to be sensitive or
confidential and may not be forwarded or diclosed to any other party without
the permission of the sender. If you received this message in error, please
notify me immediately so that I can correct and delete the original email.
Thank you. 

:: -----Original Message-----
:: From: Adam Dear [mailto:wad3@msstate.edu]
:: Sent: Saturday, October 11, 2003 8:35 AM
:: To: Tomcat Users List
:: Subject: RE: Tomcat Caching
:: 
:: Schalk,
:: 
:: I added the following line to the server.xml file and restarted tomcat.
:: <context path="/servlet" docBase="servlet" debug="0" reloadable="true" />
:: 
:: That didn't work.  Can you tell what is wrong.  I have tomcat to load
:: servlets from the classes dir so that I access servlets like this:
:: 
:: http://mydomain.com:port#/servlet/File
:: 
:: Will this make a difference with what I am trying to do?
:: 
:: Thanks
:: 
:: -----Original Message-----
:: From: Schalk [mailto:schalk@volume4.co.za]
:: Sent: Tuesday, November 11, 2003 12:47 AM
:: To: 'Tomcat Users List'
:: Subject: RE: Tomcat Caching
:: 
:: 
:: Adam
:: 
:: In the Tomcat confide directory, there is a file called server.xml.
Inside
:: here you can create a Context-Path and set reloadable=true.
:: 
:: Example:
:: <Context path="/meccafemme" docBase="meccafemme" debug="0"
:: reloadable="true" />
:: 
:: Kind Regards
:: Schalk Neethling
:: Web Developer.Designer.Programmer.CEO
:: Volume4.Development.Multimedia.Branding
:: emotionalize.conceptualize.visualize.realize
:: Tel: +27125468436
:: Fax: +27125468436
:: email:schalk@volume4.co.za
:: web: www.volume4.co.za
:: 
:: This message contains information that is considered to be sensitive or
:: confidential and may not be forwarded or diclosed to any other party
without
:: the permission of the sender. If you received this message in error,
please
:: notify me immediately so that I can correct and delete the original
email.
:: Thank you.
:: 
:: :: -----Original Message-----
:: :: From: Adam Dear [mailto:wad3@msstate.edu]
:: :: Sent: Saturday, October 11, 2003 7:36 AM
:: :: To: tomcat
:: :: Subject: Tomcat Caching
:: ::
:: :: hello, I have just started using Tomcat to host my java servlets.  I
want
:: to
:: :: know if there is anyway to turn off the caching for development
purposes.
:: :: As it is now, when I make change to a servlet, I have to restart the
:: tomcat
:: :: server for the changes to take effect.  While this isn't hard, it is a
:: tad
:: :: bit annoying.  Please be specific as I know very little about tomcat.
:: ::
:: :: Thanks
:: ::
:: ::
:: :: ---------------------------------------------------------------------
:: :: To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
:: :: For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
:: 
:: 
:: 
:: ---------------------------------------------------------------------
:: To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
:: For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
:: 
:: 
:: 
:: ---------------------------------------------------------------------
:: To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
:: For additional commands, e-mail: tomcat-user-help@jakarta.apache.org



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


RE: Tomcat Caching

Posted by Adam Dear <wa...@msstate.edu>.
Schalk,

I added the following line to the server.xml file and restarted tomcat.
<context path="/servlet" docBase="servlet" debug="0" reloadable="true" />

That didn't work.  Can you tell what is wrong.  I have tomcat to load
servlets from the classes dir so that I access servlets like this:

http://mydomain.com:port#/servlet/File

Will this make a difference with what I am trying to do?

Thanks

-----Original Message-----
From: Schalk [mailto:schalk@volume4.co.za]
Sent: Tuesday, November 11, 2003 12:47 AM
To: 'Tomcat Users List'
Subject: RE: Tomcat Caching


Adam

In the Tomcat confide directory, there is a file called server.xml. Inside
here you can create a Context-Path and set reloadable=true.

Example:
<Context path="/meccafemme" docBase="meccafemme" debug="0"
reloadable="true" />

Kind Regards
Schalk Neethling
Web Developer.Designer.Programmer.CEO
Volume4.Development.Multimedia.Branding
emotionalize.conceptualize.visualize.realize
Tel: +27125468436
Fax: +27125468436
email:schalk@volume4.co.za
web: www.volume4.co.za

This message contains information that is considered to be sensitive or
confidential and may not be forwarded or diclosed to any other party without
the permission of the sender. If you received this message in error, please
notify me immediately so that I can correct and delete the original email.
Thank you.

:: -----Original Message-----
:: From: Adam Dear [mailto:wad3@msstate.edu]
:: Sent: Saturday, October 11, 2003 7:36 AM
:: To: tomcat
:: Subject: Tomcat Caching
::
:: hello, I have just started using Tomcat to host my java servlets.  I want
to
:: know if there is anyway to turn off the caching for development purposes.
:: As it is now, when I make change to a servlet, I have to restart the
tomcat
:: server for the changes to take effect.  While this isn't hard, it is a
tad
:: bit annoying.  Please be specific as I know very little about tomcat.
::
:: Thanks
::
::
:: ---------------------------------------------------------------------
:: To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
:: For additional commands, e-mail: tomcat-user-help@jakarta.apache.org



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



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


RE: Tomcat Caching

Posted by Schalk <sc...@volume4.co.za>.
Adam

In the Tomcat confide directory, there is a file called server.xml. Inside
here you can create a Context-Path and set reloadable=true.

Example:
<Context path="/meccafemme" docBase="meccafemme" debug="0"
reloadable="true" />

Kind Regards
Schalk Neethling
Web Developer.Designer.Programmer.CEO
Volume4.Development.Multimedia.Branding
emotionalize.conceptualize.visualize.realize
Tel: +27125468436
Fax: +27125468436
email:schalk@volume4.co.za
web: www.volume4.co.za
 
This message contains information that is considered to be sensitive or
confidential and may not be forwarded or diclosed to any other party without
the permission of the sender. If you received this message in error, please
notify me immediately so that I can correct and delete the original email.
Thank you. 

:: -----Original Message-----
:: From: Adam Dear [mailto:wad3@msstate.edu]
:: Sent: Saturday, October 11, 2003 7:36 AM
:: To: tomcat
:: Subject: Tomcat Caching
:: 
:: hello, I have just started using Tomcat to host my java servlets.  I want
to
:: know if there is anyway to turn off the caching for development purposes.
:: As it is now, when I make change to a servlet, I have to restart the
tomcat
:: server for the changes to take effect.  While this isn't hard, it is a
tad
:: bit annoying.  Please be specific as I know very little about tomcat.
:: 
:: Thanks
:: 
:: 
:: ---------------------------------------------------------------------
:: To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
:: For additional commands, e-mail: tomcat-user-help@jakarta.apache.org



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