473,466 Members | 1,394 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

tomcat servlet reload

Hi all,
i'm writing cause i'm not able to find any good resources about this topic.
I'm programming on tomcat and i have my browser open to see changes i made.
The problem is that i'd like to see changes immediatly,
is there a way to do this, but using start-stop-reload from tomcato manager
admin?

I tried to add this to server.xml

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

the webapp servlet seems to reload only after 10-15 seconds. or it doesn't
reload at all.
Of course i set browser to no cache.

what can i do?

Thnx to all.

Jul 17 '05 #1
2 9487
I've run into this problem before as well, and never found a good
answer. It seems that Tomcat has a thread that looks at the currently
deployed webapps and reloads any class and jar files as needed. The
problem is that this doesn't happen often enough.

In the end, it took less time to restart Tomcat. I had by ant script
deploy into the webapps directory when ever I did a build, then I
created a script to restart Tomcat that looked like this:

%JAVA_HOME%\bin\java.exe -jar -Duser.dir="C:\Tomcat 4.1" "C:\Tomcat
4.1\bin\bootstrap.jar" stop
%JAVA_HOME%\bin\java.exe -jar -Duser.dir="C:\Tomcat 4.1" "C:\Tomcat
4.1\bin\bootstrap.jar" start

If you find a better solution, please post it to the group.

-Nathan

"kimbuba" <ki**************@yahoo.it> wrote in message news:<29**************@tornado.fastwebnet.it>...
Hi all,
i'm writing cause i'm not able to find any good resources about this topic.
I'm programming on tomcat and i have my browser open to see changes i made.
The problem is that i'd like to see changes immediatly,
is there a way to do this, but using start-stop-reload from tomcato manager
admin?

I tried to add this to server.xml

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

the webapp servlet seems to reload only after 10-15 seconds. or it doesn't
reload at all.
Of course i set browser to no cache.

what can i do?

Thnx to all.

Jul 17 '05 #2
mmh yah.. i guess the only solution is putting a script to the build editor
you are using.
every time it compiles it restart the webapp.

that's strange since i think i'm not the only one who develop under
tomcat/servlet.
maybe commercial containers works more well.

thnx
"Nathan Zumwalt" <na*****@hotmail.com> ha scritto nel messaggio
news:52**************************@posting.google.c om...
I've run into this problem before as well, and never found a good
answer. It seems that Tomcat has a thread that looks at the currently
deployed webapps and reloads any class and jar files as needed. The
problem is that this doesn't happen often enough.

In the end, it took less time to restart Tomcat. I had by ant script
deploy into the webapps directory when ever I did a build, then I
created a script to restart Tomcat that looked like this:

%JAVA_HOME%\bin\java.exe -jar -Duser.dir="C:\Tomcat 4.1" "C:\Tomcat
4.1\bin\bootstrap.jar" stop
%JAVA_HOME%\bin\java.exe -jar -Duser.dir="C:\Tomcat 4.1" "C:\Tomcat
4.1\bin\bootstrap.jar" start

If you find a better solution, please post it to the group.

-Nathan

"kimbuba" <ki**************@yahoo.it> wrote in message

news:<29**************@tornado.fastwebnet.it>...
Hi all,
i'm writing cause i'm not able to find any good resources about this topic. I'm programming on tomcat and i have my browser open to see changes i made. The problem is that i'd like to see changes immediatly,
is there a way to do this, but using start-stop-reload from tomcato manager admin?

I tried to add this to server.xml

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

the webapp servlet seems to reload only after 10-15 seconds. or it doesn't reload at all.
Of course i set browser to no cache.

what can i do?

Thnx to all.

Jul 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: nmac | last post by:
Hi all, hopefully someone can offer some sagely advice regarding Production use of Jakarta's Tomcat. First, some brief background. My company have a servlet application that connects to a MySQL...
2
by: devu | last post by:
Hello, I'm getting the following error when trying to start Apache Tomcat.The version shows up in the snapshot. I can't figure out why this is happening. It is aparently the <context-param> tag....
2
by: Jangley | last post by:
Hi Tomcat seems to be completely ignoring any resource that I specify in an <error-page> directive in the web.xml. The same webapp works under 4.0. Is there a bug in 4.1 that I'm not aware of?...
1
by: Hai Tran | last post by:
Any help is appreciated. Installed Tomcat 4.1 and Mysql on a WinXP. I've manage to get Tomcat up and was able to view my first application ( myhome ) simple home page. Tomcat was installed under...
0
by: Old-timer | last post by:
Not sure where else to post this. I'm sure I'm doing something wrong, but I wouldn't think a simple app would give me so much trouble. I've got a small test java class that I'm trying to have...
3
by: Alan Krueger | last post by:
Greetings, I've been able to cache Transformer objects in a Tomcat-based servlet application to avoid unnecessary Transformer rebuilding, except for certain ones on certain machines. I'm...
1
by: emresyus | last post by:
I have developed a web application with servlets. Application aims to control and deploy new applications based on thread technology. It works like tomcat web application manager but in my...
0
by: androusm | last post by:
Hi all, I have a problem with reload my servlet with tomcat 5.0.27 My servlet is the one example of the struts "struts-example". I also make changes and want to reload it by tomcat 5.0.27. ...
10
by: swethak | last post by:
Hi, i am first installing the tomcat 5.5 in my hosting server system and created the one folder(like test) in webapps and place all the jsp files.And also created the another folder(like test2)...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.