struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lukasz Lenart <lukaszlen...@apache.org>
Subject Regression in Struts 2.5.18
Date Fri, 19 Oct 2018 07:52:54 GMT
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-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org


Mime
View raw message