You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Alireza Fattahi <af...@yahoo.com> on 2013/08/19 14:19:57 UTC
Reloading
Hi,
I am using Tomcat 6.0. The context is set to autoreload.
When I change the JSP the pages are publish and the context are not restart.
When I change the java files the context is restarting .
I am using struts 2 framework and extending its template framework. The
new template files, which are base on freemaker, "should be" stored in WEB-INF\classes\template\myNewTemplate
Here is the problem when I change one of these freemaker files, the tomcat restarts the context!
Is
it because this file is under WEB-INF\classes? If yes, can
I configure tomcat to ignore the changes in this folder?
~Regards,
~~Alireza Fattahi
Re: Reloading
Posted by Daniel Mikusa <dm...@gopivotal.com>.
On Aug 19, 2013, at 8:19 AM, Alireza Fattahi <af...@yahoo.com> wrote:
> Hi,
> I am using Tomcat 6.0.
Which one? Try to be more specific.
> The context is set to autoreload.
> When I change the JSP the pages are publish and the context are not restart.
This is different from context reloading. See the JSP configuration options here.
http://tomcat.apache.org/tomcat-6.0-doc/jasper-howto.html#Configuration
> When I change the java files the context is restarting .
> I am using struts 2 framework and extending its template framework. The
> new template files, which are base on freemaker, "should be" stored in WEB-INF\classes\template\myNewTemplate
> Here is the problem when I change one of these freemaker files, the tomcat restarts the context!
> Is it because this file is under WEB-INF\classes?
My thought is that this happens because your application is loading these resources through the class loader. If that's the case, then I would expect this to trigger a reload when you change one of them.
Maybe try setting the log level for "org.apache.catalina.loader.WebappClassLoader" to FINE. I believe that should give you some output to indicate the files that Tomcat detects as modified.
> If yes, can I configure tomcat to ignore the changes in this folder?
Set reloadable to "false".
Dan
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Reloading
Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Alireza,
Please don't hijack threads by replying to an existing post with a new
question. Instead, create a completely new message to
users@tomcat.apache.org with your question.
- -chris
On 8/19/13 8:19 AM, Alireza Fattahi wrote:
> Hi, I am using Tomcat 6.0. The context is set to autoreload. When I
> change the JSP the pages are publish and the context are not
> restart. When I change the java files the context is restarting . I
> am using struts 2 framework and extending its template framework.
> The new template files, which are base on freemaker, "should be"
> stored in WEB-INF\classes\template\myNewTemplate Here is the
> problem when I change one of these freemaker files, the tomcat
> restarts the context! Is it because this file is under
> WEB-INF\classes? If yes, can I configure tomcat to ignore the
> changes in this folder?
>
>
> ~Regards, ~~Alireza Fattahi
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.14 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
iQIcBAEBCAAGBQJSEiCFAAoJEBzwKT+lPKRYclIQAMb+TyWtsfcZZMFgKnNgIXJq
OlpMvM6ae3wLfOeRVCQs485fWbJDBVdgxA9ngRLNMJvUN04sIGpscD/JSV8NKv+F
/WLpxzQ9p4uKTOHEJCRcGAXp6OMXA6C3KnGHdvWrweLAzER5979LeeQgOyoVylyy
YR/n2sy2z5nKOONjpZMWxsbEmpYP/EeV+q9Cn/k2TRd20+Y61gjLIEP1vLECVezX
sWg9UFukEDxvEsScZdiwyBdt87M+r0sEZpufcnAzmHddiY54/gbR3aosz36Gpmnt
/pki9uvoEQk4M/8Rr9N6yhhkfFm8MtoVrRhS4Wjw8+hJpWmEEIU559cOibNxQ2xK
Y+VA2z3omvh0u458m8LsRdfThlLw8cCuwTqt1z8skXqaGQz2Mxjsv4gdEiM+zUi1
mx4VStn/PaXsjrC2mqqT5MdlQGO85/bk9u+4e8JBTSXUlggLUIc7tv9F/4OC0dpM
TXsJx4UtGAjoKeJpWoMKSdGCQSQ2YxcviG3/op0nvNS2IgJ+pNlk7t2MiJN7qtTp
kO+ZOopeSDkq3Rl9l2Kfx+YUZz19VjPKFgkdxDrdq7O0umA0AbKHvk1EXYdjcR3j
kl/9FtXs9JNPjyRzV4Btuz4PTPMd0rdXTSu2+F+MCXJjckOX826ppWaupRYLR1Xa
lyoY0114sDROsjj0Fsef
=GCp6
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org