Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Cached classes in tomcat 4

 
Gordon Jenkinson
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Mike Curwen
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic