tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Loïc Lefèvre <>
Subject RE: Auto reload in Tomcat4x
Date Thu, 09 Aug 2001 12:21:32 GMT
I was asking myself the same question, after reading the source, I found
that :
- By pushing the new .war file, it doesn't produce a reload of the servlet
- By modifying the files in /WEB-INF/classes, the modified .class files are

I use the following instructions (ant) to publish my war file:

	<!-- Variables d'environnement -->
	<property environment="env"/>
	<property name="user" value="${env.USERNAME}"/>

	<!-- Répertoire de publication du fichier war -->
	<property name="dir.publish"

	<!-- Nom de fichier de l'application web -->
	<property name="file.adfront.war" value="${user}.war"/>

	<!-- Variables déduites (répertoires de compilation/distribution) -->
	<property name="dir.dist" value="${dir.base}/java/dist"/>

  <!-- publish -->
  <target name="publish" depends="dist" description="Publication de
l'archive sur le site">
    <delete dir="${dir.publish}/${user}"/>
<--- here
    <copy file="${dir.dist}/${file.adfront.war}" todir="${dir.publish}"/>
<--- here
    <unzip src="${dir.publish}/${file.adfront.war}"
dest="${dir.publish}/${user}"/>            <--- here

Loïc Lefèvre

-----Message d'origine-----
De : Allan Kamau []
Envoyé : jeudi 9 août 2001 14:03
À :
Objet : Auto reload in Tomcat4x

Hi all,
How does auto reload work in Tomcat4.0?
My question is: how do I update servlets that I have
deployed in webapps folder as part of .war file during
runtime in Tomcat4x. Without having to recreate and
deploy the .war file and restart tomcat?
In Tomcat3.x I configured all the servlets in the
context's web.xml after restarting tomcat, I would
modify an already existing servlet and I would see the
updated version.


Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger

View raw message