I remember years ago there was a bug on the reloading and fixed by checking to reload once per request. (This is definitely not happening now as I always run dev reloading, it really slows things down.) Where is GruufConfigurationProvider?
On Fri, 19 Oct 2018 at 08:53, Lukasz Lenart <lukaszlen...@apache.org> wrote: > Hello, > > I have notice a regression bug in Struts 2.5.18, looks like defining > your own ConfigurationProvider wich will change some internal states > cause infinitive reload loop. > > See this: > > [INFO] GCLOUD: 2018-10-19 07:46:57,567 INFO [qtp403716510-30] > config.ConfigurationManager (ConfigurationManager.java:212) - Detected > container provider [Struts XML configuration provider > (struts-default.xml)] needs to be reloaded. Reloading all providers. > [INFO] GCLOUD: 2018-10-19 07:46:57,603 DEBUG [qtp403716510-30] > web.GruufConfigurationProvider (GruufConfigurationProvider.java:66) - > Setting struts.devMode to value true > [INFO] GCLOUD: 2018-10-19 07:46:57,680 INFO [qtp403716510-16] > config.ConfigurationManager (ConfigurationManager.java:212) - Detected > container provider [Struts XML configuration provider > (struts-default.xml)] needs to be reloaded. Reloading all providers. > > The GruufConfigurationProvider class is my custom provider which sets > devMode based on Google AppEngine envs, but now this causes reloading > of all providers again, which will request reloading my > GruufConfigurationProvider again, and again,.... > > [INFO] GCLOUD: 2018-10-19 07:46:57,717 DEBUG [qtp403716510-16] > web.GruufConfigurationProvider (GruufConfigurationProvider.java:66) - > Setting struts.devMode to value true > [INFO] GCLOUD: 2018-10-19 07:46:57,803 INFO [qtp403716510-23] > config.ConfigurationManager (ConfigurationManager.java:212) - Detected > container provider [Struts XML configuration provider > (struts-default.xml)] needs to be reloaded. Reloading all providers. > > Any idea what's wrong? > > The easiest workaround is to set "struts.configuration.xml.reload" to > false. > > > Regards > -- > Ćukasz > + 48 606 323 122 http://www.lenart.org.pl/ > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscr...@struts.apache.org > For additional commands, e-mail: dev-h...@struts.apache.org > >