Hi Chris, Unfortunately, I don't think it's related to that.
The "reloadable" attribute has been working like a champ for me. But today, I added a filter (a new class, created today). As soon as I added the configuration to the web.xml file, I started having to restart the Tomcat server after each compile. If I comment out the <filter> tags from web.xml, everything works fine. If I uncomment just the <filter>...</filter> section, I start getting this behavior again. I'm actually getting an error in catalina.out *during compilation* (see log extract below). I think that what's happening is that somehow the reload process is being triggered early, during the build process, before everything's ready. My guess is that this is being caused by the filter getting compiled - perhaps this is caused by the line in context.xml? ("<WatchedResource>WEB-INF/web.xml</WatchedResource>") I'm going to see what happens if I rename the filter to "ZZFilter" (to try to change the build order). Daniel <start compilation at 4:23:25 PM> Aug 15, 2008 4:23:30 PM org.apache.catalina.loader.WabappClassLoader modified SEVERE: Resource '/WEB-INF/classes/app/ExpiresFilter.class' is missing Aug 15, 2008 4:23:30 PM org.apache.catalina.core.StandardContext reload INFO: Reloading this Context has started Aug 15, 2008 4:23:35 PM org.apache.catalina.session.StandardManager doLoad SEVERE: ClassNotFoundException while loading persisted sessions: java.lang.ClassNotFoundException: app.MyClass ... (stack dump) Aug 15, 2008 4:23:35 PM org.apache.catalina.session.StandardManager start SEVERE: Exception loading session from persistent storage ... (stack dump) Aug 15, 2008 4:23:35 PM org.apache.catalina.session.StandardContext start SEVERE: Error filterStart Aug 15, 2008 4:23:35 PM org.apache.catalina.session.StandardContext start SEVERE: Context [/myapp] startup failed du to previous errors <compilation completes at 4:23:40 PM> > -----Original Message----- > From: Christopher Schultz [mailto:[EMAIL PROTECTED] > Sent: Friday, August 15, 2008 3:32 PM > To: Tomcat Users List > Subject: Re: reloadable problem with filters > > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Daniel, > > Daniel Blumenthal wrote: > > I'm having an odd problem. When filters are enabled in my > application > > (e.g., to add an "Expires" header to certain files), I have > to restart > > the tomcat server every time I recompile. When the filters are > > disabled, I don't have to restart the server (i.e., > "reloadable" works). > > Tomcat should be restarting when reloadable=true and your > install new class files regardless of the filter configuration. > > One thing I've found is that if you don't actually /use/ a > particular class, and then you update it, Tomcat will not > reload the webapp. Could this be the behavior you are experiencing? > > - -chris > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.9 (MingW32) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org > > iEYEARECAAYFAkil2ZcACgkQ9CaO5/Lv0PCerACfb3GTPDWMECHz6XWmOAekWdPb > UK0An1cwuOxVKTh9NgU1ydJJcMJ0xwur > =/13/ > -----END PGP SIGNATURE----- > > --------------------------------------------------------------------- > To start a new topic, e-mail: users@tomcat.apache.org To > unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]