This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes JSP and the fly likes Tomcat relodable= Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Tomcat relodable="true" not working" Watch "Tomcat relodable="true" not working" New topic

Tomcat relodable="true" not working

Ajit Kanada
Ranch Hand

Joined: Jan 23, 2001
Posts: 95
I have following entry in server.xml in Tomcat.
Eventhough i set reloadable="true" I have to restart the Tomcat when i change my class file
<Context path="/onjava" docBase="onjava" debug="0" reloadable="true" />
Is this attribute applicable to .jsp pages or for both classes and .jsp pages

Thanx in advance
Ajit Kanada

Asher Tarnopolski
Ranch Hand

Joined: Jul 28, 2001
Posts: 260
post this in tomcat forum.

Asher Tarnopolski
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 12675
Is the file you are changing a servlet file or a non-servlet helper class?
Jim Bo

Joined: Dec 09, 2002
Posts: 5
I use Tomcat 4.0.x on two different boxes. One is a Linux box, and the other is a Win2000 box.
On the Linux box, reloadable works as you would expect. On the Win2000 box however, I must reboot just as you describe. My experience is with servlets, rather than with JSP, but since JSPs are translated into servlets anyone, I would expect the same behavior.
I can't say this is a definitive answer, but I have just learned to live with the problem in the Win2000 environment.
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 60050

"reboot"? I'm sure you meant restart the server.
And while I cannot speak for servlet reloading under Windoze, I do know that JSPs will automatically reload on all platforms.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Awais Bajwa
Ranch Hand

Joined: Jan 16, 2001
Posts: 191
Jim Bo !
I have a similar story like you, as i have two OS win and linx i found that reloadable=true is working on linux while not on windows ...
this is probably a bug of tomcat .
I use to delete all servlets in the work folder to get new version of JSp as most often i get old jsp at tomcat. besides this i would also like to mention that tomcat has some problem wiht jar files and classpath issues as i faced no of problems wiht jar file from third party.
Bhushan Jawle
Ranch Hand

Joined: Nov 22, 2001
Posts: 249
I use tomcat 4.1.1 on windows, reloadable works fine with me (on WinNT though)
I agree. Here's the link:
subject: Tomcat relodable="true" not working
Similar Threads
Deploying Servlet in Tomcat 5.0
jsp pages not running without putting 'www' on url
Make Tomcat go
Can you choose where to put the WAR file?
Can't find Servlet in a new webapp