Tomcat server does not need to restart if you change your servlets.

You need configure two things:
1. server.xml -> reloadable=true
2. disable -> #wrapper.classpath = @JSDK_Class@ in tomcat.properties file.
Tomcat reload changed servlets from it's WEB-INF directories.
DO NOT include the classes or .jar files from WEB-INF directories for which
you want to enable automatic servlet reloading in the CLASSPATH of the shell
that start Tomcat.

Kevin Lin


-----Original Message-----
From: Pierre-Yves Saumont [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 23, 2001 8:32 AM
To: [EMAIL PROTECTED]
Subject: Re: I have to restart tomcat if i change in a servlet


Hi,

May I suggest to switch to Resin (www.caucho.com)? It reloads servlets
automatically. It even can compile servlets automatically for you (just put
the source file instead of the classes). You will sometimes have to restart
because of some depedencies, but it restarts in about 1/10th of the time
needed by Tomcat (plus you just have to click a button).

Also, it installs in 10 seconds and works without any configuration.

Pierre-Yves

-----Message d'origine-----
De : A mailing list for discussion about Sun Microsystem's Java Servlet
API Technology. [mailto:[EMAIL PROTECTED]]De la part de Mike
McGuinness
Envoye : jeudi 23 aout 2001 17:07
A : [EMAIL PROTECTED]
Objet : Re: I have to restart tomcat if i change in a servlet


You can't avoid it.

Tomcat 3.x documentation says that servlet reloading is an expermental
feature. I use 3.2.3 and I stop and restart when I change my servlets.

Mike

sharad mohan wrote:

> Hi everybody
>
> I am using tomcat 3.2.1. Servlet are executing nicely
> but if i change in any servlet then
> i have to restart tomcat. How can i avoid this? Pls
> tell me.
>
> Thanx in advance
> Sharad
>
>
> __________________________________________________
> Do You Yahoo!?
> Make international calls for as low as $.04/minute with Yahoo! Messenger
> http://phonecard.yahoo.com/
>
>
___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to