Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Tomcat Users »

changing class file and reloading question

Luke Vanderfluit

2003-08-19

Replies:

Hi,

I'm running tomcat 4.1.27 standalone on Redhat 9

I have a class that I'm changing (development) and don't want to have to
restart tomcat each time I make a change.

It wouldn't be so bad to do that if it wasn't for the fact that
tomcat takes ages to read my servlet every time it's restarted.

I have got the following entry in my server.xml file

#####################################
<DefaultContext reloadable="true"/>

    <!-- Tomcat Root Context -->

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

The class I'm changing is in the ROOT/WEB-INF/classes directory

the console message when I hit 'reload' on the browser is:

WebappClassLoader:  Resource '/WEB-INF/classes/Topic3x4.class' was
modified; Date is now: Wed Aug 20 05:53:59 CST 2003 Was: Wed Aug 20
05:44:04 CST 2003

How do I get tomcat to indeed reload the classes without having to
restart each time?

Thanks,
kind regards,
--
====================================
"when my computer smiles, I'm happy"
====================================
Luke Vanderfluit
Mobile: 0421 276 282


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)


©2008 junlu.com - Jax Systems, LLC, U.S.A.