Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java Open Source > Apache Tomcat
Apache Tomcat General discussion of the Apache Tomcat servlet container. For discussions specific to the Professional Apache Tomcat book, please see the book discussion forum for that book.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Apache Tomcat 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 October 10th, 2007, 03:00 AM
Registered User
Join Date: Oct 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Restarting a context in Tomcat 5?

Hi all,

I'm trying to get Tomcat to properly reload a webapp that is deployed from a war file.

All JSPs are precompiled into the classes directory.

If I use a 'Reload' in the manager webapp then Tomcat won't pick up the changes if I redeploy the app....basically you get this single line in the log:

10-Oct-2007 08:12:33 org.apache.catalina.core.StandardContext reload
INFO: Reloading this Context has started
However if I make a change to the web.xml it will pick the changes and I've noticed a restartContext line in the logs (below) that I can't work out how to do through the manager app.

10-Oct-2007 08:12:34 org.apache.catalina.startup.HostConfig restartContext
INFO: restartContext()
I also tried the "reloadable" attribute in the relevant Context and this works and it will pick up changes but this is not recommended on a live website according to the docs.

Any thoughts?



Similar Threads
Thread Thread Starter Forum Replies Last Post
start a context automatically, while tomcat starts sureshrgsl Apache Tomcat 4 May 17th, 2007 06:46 AM
start a context automatically, while tomcat starts sureshrgsl BOOK: Professional Apache Tomcat 0 April 16th, 2007 02:14 AM
Tomcat 5.5 and context.xml ashiers Apache Tomcat 0 May 12th, 2005 08:57 PM
Context Logs with Tomcat 5.0.19 shantawn Apache Tomcat 0 April 4th, 2005 05:53 AM
Tomcat context is shuttingdown.? tarun_keshav All Other Wrox Books 0 November 30th, 2004 08:04 AM

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