File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Tomcat and the fly likes Restart Tomcat when change tag in JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Restart Tomcat when change tag in JSP" Watch "Restart Tomcat when change tag in JSP" New topic

Restart Tomcat when change tag in JSP

Tom Henricksen
Ranch Hand

Joined: Mar 23, 2004
Posts: 136

We have a user who must restart there Tomcat(5.0.28) when they change a
custom tag code in the JSP. He is using Eclispe 3.1.2 and Web Standard
Tools 1.0.3. Would there be anything in Tomcat's server configuration
that could cause this? When he changes regular plain text in JSP it is seen
with just reopening the browser. All the rest of our users do not have to restart Tomcat.

The user has a context file in conf/Catalina/localhost

<?xml version='1.0' encoding='utf-8'?>
<Context debug="4"
docBase="C:/projects/Java/bop-med/web" path="/bop-med"
reloadable="true" workDir="work\Catalina\localhost\bop-med">

So we have reloadable set to true.

[ November 03, 2006: Message edited by: Tom Henricksen ]
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63858

Whenever a class changes, the web application must be reloaded. The Tomcat manager app can be used to start and stop the web apps indiciually wihtou having to restart Tomcat itself.

I've found that the auto-reload capability is spotty. Sometimes Tomcat detects when something has changed, most times it doesn't.

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: Restart Tomcat when change tag in JSP
jQuery in Action, 3rd edition