By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,698 Members | 1,535 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,698 IT Pros & Developers. It's quick & easy.

tomcat servlet reload

P: n/a
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
Share this Question
Share on Google+
2 Replies


P: n/a
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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.