wood burning stoves 2.0*
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
Author

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">
</Context>

So we have reloadable set to true.

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

Joined: Jan 10, 2002
Posts: 60782
    
  65

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] [Bear's FrontMan] [About Bear] [Books by Bear]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Restart Tomcat when change tag in JSP
 
Similar Threads
404 Error
DataSource Invalid
Tomcat relodable="true" not working
Oc4j Hot deploy for JSP
Root Context - mywebapps has no effect