This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Tomcat and the fly likes Cached classes in tomcat 4 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Cached classes in tomcat 4" Watch "Cached classes in tomcat 4" New topic
Author

Cached classes in tomcat 4

Gordon Jenkinson
Greenhorn

Joined: Feb 03, 2002
Posts: 14
I'm using Tomcat 4.0 and when I update my class files I have to restart the server before they are active. My JSPs are fine as they are recomplied whenever they are changed.
Is there a way to force tomcat to reload classes without having to restart the server?
Thanks


Gordon Jenkinson
Mike Curwen
Ranch Hand

Joined: Feb 20, 2001
Posts: 3695

Check this thread:
http://www.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&f=56&t=000208

Just checked it myself... you might have to read the 'original' thread to get the flow of the topic, but trust me, it addresses your question. The 'original' thread is linked in my first post in the thread.
[ February 22, 2002: Message edited by: Mike Curwen ]
Wasim Ayoubi
Ranch Hand

Joined: Nov 21, 2004
Posts: 46
Hi there.

regarding this topic I tried to go link shown above but it seems to be unavailable.

I want to know the answer to this question exactly.

Is there a way to force tomcat to reload classes without having to restart the server?

Thanx and Best Regards


Wasim Ayoubi<br />SCJA1.0(BETA), SCJP1.4, SCWCD1.4<br />Next ???
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/context.html

Look for "reloadable"


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Wasim Ayoubi
Ranch Hand

Joined: Nov 21, 2004
Posts: 46
Hi there

have anybody ever wrote his own WebappLoader "implemented the org.apache.catalina.Loader" before?

what I am trying here to do is to implement my own Loader so that it does not reload all the webapplication again in case of modifying any class file in WEB-INF/classes, because what is the purpose of the className attribute in the Loader tag as descriped on the apache site

Loader

and do anybody believe that I can do it or it is just a fantasy :roll:
do any body also know where can I post this question "APACHE FORUMS" such as an example.

[ June 21, 2005: Message edited by: wasim ayoubi ]

[ June 21, 2005: Message edited by: wasim ayoubi ]
[ June 21, 2005: Message edited by: wasim ayoubi ]
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Originally posted by wasim ayoubi:
do any body also know where can I post this question "APACHE FORUMS" such as an example.


Apache uses mailing lists:
http://jakarta.apache.org/site/mail.html

'Writing custom class-loaders' has been disscussed on the tomcat-user mailing list several times before so you may want to search it before asking the question.
 
 
subject: Cached classes in tomcat 4