Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java and JDK > Servlets
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Servlets 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 November 24th, 2005, 08:58 AM
Authorized User
Join Date: Nov 2005
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Default Servlets and Tomcat

Hi all

My question is connected with restarting Tomcat every time when I deploy/recompile a new version of the servlet. Is it possible to avoid restarting and automatically "refresh" server to allow servlet class to be visible.

Thanks in advance.

Old November 25th, 2005, 08:34 AM
Authorized User
Join Date: Nov 2005
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts

To turn on servlet reloading, edit Edit install_dir/conf/context.xml and change

  <Context reloadable="true">

for Tomcat 5.X

for Tomcat less then 5.x put

        <Context path="" docBase="ROOT" debug="0"/>
    <DefaultContext reloadable="true"/>

in server.xml

Similar Threads
Thread Thread Starter Forum Replies Last Post
running servlets on tomcat 6.0.18 tommytucson Apache Tomcat 1 December 3rd, 2008 07:16 AM
Servlets achukuttan Servlets 1 March 26th, 2007 02:04 AM
Tomcat recompiling servlets spmanivel Servlets 3 August 16th, 2006 03:31 AM
how to register servlets with Tomcat 5.59 server urstruly90 Apache Tomcat 0 July 21st, 2005 03:50 AM
JWS Axis Tomcat (posted to Apache Tomcat too) rushman Servlets 0 April 15th, 2005 09:32 AM

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