struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yasser Zamani <yasserzam...@apache.org>
Subject RE: Regression in Struts 2.5.18
Date Tue, 23 Oct 2018 07:51:55 GMT
We just have fixed file monitoring and reloading in recent versions including 2.5.18. I think
the last modified date of one or more of XmlConfigurationProvider.loadedFileUrls has changed
maybe by google cloud or something else?

Regards.

>-----Original Message-----
>From: Lukasz Lenart <lukaszlenart@apache.org>
>Sent: Friday, October 19, 2018 11:23 AM
>To: Struts Developers List <dev@struts.apache.org>
>Subject: Regression in Struts 2.5.18
>
>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