You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Sami Dalouche (JIRA)" <ji...@apache.org> on 2011/03/31 22:53:05 UTC

[jira] [Created] (WW-3602) auto-reload of properties not working with jetty and struts 2.2.1.1

auto-reload of properties not working with jetty and struts 2.2.1.1
-------------------------------------------------------------------

                 Key: WW-3602
                 URL: https://issues.apache.org/jira/browse/WW-3602
             Project: Struts 2
          Issue Type: Bug
          Components: Other
    Affects Versions: 2.2.1.1
         Environment: Linux samxps 2.6.35-28-generic #50-Ubuntu SMP Fri Mar 18 18:42:20 UTC 2011 x86_64 GNU/Linux


java version "1.6.0_24"
Java(TM) SE Runtime Environment (build 1.6.0_24-b07)
Java HotSpot(TM) 64-Bit Server VM (build 19.1-b02, mixed mode)

            Reporter: Sami Dalouche


Steps to reproduce: 
 - Download Struts 2.2.1.1 : http://struts.apache.org/download.cgi#struts2211
 - Extract
 - cd src/apps/mailreader
 - change pom.xml: <scanIntervalSeconds>0</scanIntervalSeconds>
 - change src/main/java/struts.xml
    <constant name="struts.devMode" value="true" />
    <constant name="struts.i18n.reload" value="true" />
    <constant name="struts.configuration.xml.reload" value="true" />
 - mvn jetty:run
 - load http://localhost:8080/struts2-mailreader/Welcome.do
 - change ./target/classes/mailreader2/MailreaderSupport.properties
   index.heading=MailReader Demonstration Application Options CHANGED DYNAMICALLY
 - reload in the browser
 - => the displayed value does not reflect the change in ./target/classes/mailreader2/MailreaderSupport.properties

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (WW-3602) auto-reload of properties not working with jetty and struts 2.2.1.1

Posted by "Greg Huber (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WW-3602?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13040270#comment-13040270 ] 

Greg Huber commented on WW-3602:
--------------------------------

Hello, with this mod

private static void reloadBundles() {
		..
				bundlesMap.clear();
		..
	}

and mod and struts.devMode=true for me, my app is now so slow its unusable.  The reloadBundles() seems to get called many times per invocation.

I also needed to reload the messages but had to do a work around from my app to call explicitly to remove the resource bundle only once.

LocalizedTextUtil.removeBundle("ApplicationResources_en_GB");

modified LocalizedTextUtil added method :

public static void removeBundle(String resourceBundle) {
		if (reloadBundles) {

			if (bundlesMap.containsKey(resourceBundle)) {
				bundlesMap.remove(resourceBundle);
			}
		}
	}

I could not fathom out how it was supposed to be done, and this was the only way I could get the response to be quicker.  Not sure why for me reloadBundles() gets called so many times.

Cheers Greg.

> auto-reload of properties not working with jetty and struts 2.2.1.1
> -------------------------------------------------------------------
>
>                 Key: WW-3602
>                 URL: https://issues.apache.org/jira/browse/WW-3602
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Other
>    Affects Versions: 2.2.1.1
>         Environment: Linux samxps 2.6.35-28-generic #50-Ubuntu SMP Fri Mar 18 18:42:20 UTC 2011 x86_64 GNU/Linux
> java version "1.6.0_24"
> Java(TM) SE Runtime Environment (build 1.6.0_24-b07)
> Java HotSpot(TM) 64-Bit Server VM (build 19.1-b02, mixed mode)
>            Reporter: Sami Dalouche
>            Assignee: Lukasz Lenart
>             Fix For: 2.2.3
>
>
> Steps to reproduce: 
>  - Download Struts 2.2.1.1 : http://struts.apache.org/download.cgi#struts2211
>  - Extract
>  - cd src/apps/mailreader
>  - change pom.xml: <scanIntervalSeconds>0</scanIntervalSeconds>
>  - change src/main/java/struts.xml
>     <constant name="struts.devMode" value="true" />
>     <constant name="struts.i18n.reload" value="true" />
>     <constant name="struts.configuration.xml.reload" value="true" />
>  - mvn jetty:run
>  - load http://localhost:8080/struts2-mailreader/Welcome.do
>  - change ./target/classes/mailreader2/MailreaderSupport.properties
>    index.heading=MailReader Demonstration Application Options CHANGED DYNAMICALLY
>  - reload in the browser
>  - => the displayed value does not reflect the change in ./target/classes/mailreader2/MailreaderSupport.properties

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (WW-3602) auto-reload of properties not working with jetty and struts 2.2.1.1

Posted by "Lukasz Lenart (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WW-3602?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13014404#comment-13014404 ] 

Lukasz Lenart commented on WW-3602:
-----------------------------------

http://docs.codehaus.org/display/JETTY/Maven+Jetty+Plugin#MavenJettyPlugin-Howtoconfiguretheplugin

scanIntervalSeconds Optional. The pause in seconds between sweeps of the webapp to check for changes and automatically hot redeploy if any are detected. By default this is 0, which disables hot deployment scanning. A number greater than 0 enables it.

So by setting 0 you disabled it

> auto-reload of properties not working with jetty and struts 2.2.1.1
> -------------------------------------------------------------------
>
>                 Key: WW-3602
>                 URL: https://issues.apache.org/jira/browse/WW-3602
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Other
>    Affects Versions: 2.2.1.1
>         Environment: Linux samxps 2.6.35-28-generic #50-Ubuntu SMP Fri Mar 18 18:42:20 UTC 2011 x86_64 GNU/Linux
> java version "1.6.0_24"
> Java(TM) SE Runtime Environment (build 1.6.0_24-b07)
> Java HotSpot(TM) 64-Bit Server VM (build 19.1-b02, mixed mode)
>            Reporter: Sami Dalouche
>
> Steps to reproduce: 
>  - Download Struts 2.2.1.1 : http://struts.apache.org/download.cgi#struts2211
>  - Extract
>  - cd src/apps/mailreader
>  - change pom.xml: <scanIntervalSeconds>0</scanIntervalSeconds>
>  - change src/main/java/struts.xml
>     <constant name="struts.devMode" value="true" />
>     <constant name="struts.i18n.reload" value="true" />
>     <constant name="struts.configuration.xml.reload" value="true" />
>  - mvn jetty:run
>  - load http://localhost:8080/struts2-mailreader/Welcome.do
>  - change ./target/classes/mailreader2/MailreaderSupport.properties
>    index.heading=MailReader Demonstration Application Options CHANGED DYNAMICALLY
>  - reload in the browser
>  - => the displayed value does not reflect the change in ./target/classes/mailreader2/MailreaderSupport.properties

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (WW-3602) auto-reload of properties not working with jetty and struts 2.2.1.1

Posted by "Lukasz Lenart (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WW-3602?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Lukasz Lenart updated WW-3602:
------------------------------

    Fix Version/s:     (was: 2.3)
                   2.2.3

> auto-reload of properties not working with jetty and struts 2.2.1.1
> -------------------------------------------------------------------
>
>                 Key: WW-3602
>                 URL: https://issues.apache.org/jira/browse/WW-3602
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Other
>    Affects Versions: 2.2.1.1
>         Environment: Linux samxps 2.6.35-28-generic #50-Ubuntu SMP Fri Mar 18 18:42:20 UTC 2011 x86_64 GNU/Linux
> java version "1.6.0_24"
> Java(TM) SE Runtime Environment (build 1.6.0_24-b07)
> Java HotSpot(TM) 64-Bit Server VM (build 19.1-b02, mixed mode)
>            Reporter: Sami Dalouche
>            Assignee: Lukasz Lenart
>             Fix For: 2.2.3
>
>
> Steps to reproduce: 
>  - Download Struts 2.2.1.1 : http://struts.apache.org/download.cgi#struts2211
>  - Extract
>  - cd src/apps/mailreader
>  - change pom.xml: <scanIntervalSeconds>0</scanIntervalSeconds>
>  - change src/main/java/struts.xml
>     <constant name="struts.devMode" value="true" />
>     <constant name="struts.i18n.reload" value="true" />
>     <constant name="struts.configuration.xml.reload" value="true" />
>  - mvn jetty:run
>  - load http://localhost:8080/struts2-mailreader/Welcome.do
>  - change ./target/classes/mailreader2/MailreaderSupport.properties
>    index.heading=MailReader Demonstration Application Options CHANGED DYNAMICALLY
>  - reload in the browser
>  - => the displayed value does not reflect the change in ./target/classes/mailreader2/MailreaderSupport.properties

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (WW-3602) auto-reload of properties not working with jetty and struts 2.2.1.1

Posted by "Greg Huber (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WW-3602?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13040300#comment-13040300 ] 

Greg Huber commented on WW-3602:
--------------------------------

OK see WW-3637.

Cheers Greg.

> auto-reload of properties not working with jetty and struts 2.2.1.1
> -------------------------------------------------------------------
>
>                 Key: WW-3602
>                 URL: https://issues.apache.org/jira/browse/WW-3602
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Other
>    Affects Versions: 2.2.1.1
>         Environment: Linux samxps 2.6.35-28-generic #50-Ubuntu SMP Fri Mar 18 18:42:20 UTC 2011 x86_64 GNU/Linux
> java version "1.6.0_24"
> Java(TM) SE Runtime Environment (build 1.6.0_24-b07)
> Java HotSpot(TM) 64-Bit Server VM (build 19.1-b02, mixed mode)
>            Reporter: Sami Dalouche
>            Assignee: Lukasz Lenart
>             Fix For: 2.2.3
>
>
> Steps to reproduce: 
>  - Download Struts 2.2.1.1 : http://struts.apache.org/download.cgi#struts2211
>  - Extract
>  - cd src/apps/mailreader
>  - change pom.xml: <scanIntervalSeconds>0</scanIntervalSeconds>
>  - change src/main/java/struts.xml
>     <constant name="struts.devMode" value="true" />
>     <constant name="struts.i18n.reload" value="true" />
>     <constant name="struts.configuration.xml.reload" value="true" />
>  - mvn jetty:run
>  - load http://localhost:8080/struts2-mailreader/Welcome.do
>  - change ./target/classes/mailreader2/MailreaderSupport.properties
>    index.heading=MailReader Demonstration Application Options CHANGED DYNAMICALLY
>  - reload in the browser
>  - => the displayed value does not reflect the change in ./target/classes/mailreader2/MailreaderSupport.properties

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (WW-3602) auto-reload of properties not working with jetty and struts 2.2.1.1

Posted by "Lukasz Lenart (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WW-3602?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13040281#comment-13040281 ] 

Lukasz Lenart commented on WW-3602:
-----------------------------------

Maybe your machine is too fast ? I mean regarding Timestamps

> auto-reload of properties not working with jetty and struts 2.2.1.1
> -------------------------------------------------------------------
>
>                 Key: WW-3602
>                 URL: https://issues.apache.org/jira/browse/WW-3602
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Other
>    Affects Versions: 2.2.1.1
>         Environment: Linux samxps 2.6.35-28-generic #50-Ubuntu SMP Fri Mar 18 18:42:20 UTC 2011 x86_64 GNU/Linux
> java version "1.6.0_24"
> Java(TM) SE Runtime Environment (build 1.6.0_24-b07)
> Java HotSpot(TM) 64-Bit Server VM (build 19.1-b02, mixed mode)
>            Reporter: Sami Dalouche
>            Assignee: Lukasz Lenart
>             Fix For: 2.2.3
>
>
> Steps to reproduce: 
>  - Download Struts 2.2.1.1 : http://struts.apache.org/download.cgi#struts2211
>  - Extract
>  - cd src/apps/mailreader
>  - change pom.xml: <scanIntervalSeconds>0</scanIntervalSeconds>
>  - change src/main/java/struts.xml
>     <constant name="struts.devMode" value="true" />
>     <constant name="struts.i18n.reload" value="true" />
>     <constant name="struts.configuration.xml.reload" value="true" />
>  - mvn jetty:run
>  - load http://localhost:8080/struts2-mailreader/Welcome.do
>  - change ./target/classes/mailreader2/MailreaderSupport.properties
>    index.heading=MailReader Demonstration Application Options CHANGED DYNAMICALLY
>  - reload in the browser
>  - => the displayed value does not reflect the change in ./target/classes/mailreader2/MailreaderSupport.properties

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Resolved] (WW-3602) auto-reload of properties not working with jetty and struts 2.2.1.1

Posted by "Lukasz Lenart (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WW-3602?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Lukasz Lenart resolved WW-3602.
-------------------------------

       Resolution: Fixed
    Fix Version/s: 2.3

Done, thanks for reporting, please check with the latest snapshot version

> auto-reload of properties not working with jetty and struts 2.2.1.1
> -------------------------------------------------------------------
>
>                 Key: WW-3602
>                 URL: https://issues.apache.org/jira/browse/WW-3602
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Other
>    Affects Versions: 2.2.1.1
>         Environment: Linux samxps 2.6.35-28-generic #50-Ubuntu SMP Fri Mar 18 18:42:20 UTC 2011 x86_64 GNU/Linux
> java version "1.6.0_24"
> Java(TM) SE Runtime Environment (build 1.6.0_24-b07)
> Java HotSpot(TM) 64-Bit Server VM (build 19.1-b02, mixed mode)
>            Reporter: Sami Dalouche
>            Assignee: Lukasz Lenart
>             Fix For: 2.3
>
>
> Steps to reproduce: 
>  - Download Struts 2.2.1.1 : http://struts.apache.org/download.cgi#struts2211
>  - Extract
>  - cd src/apps/mailreader
>  - change pom.xml: <scanIntervalSeconds>0</scanIntervalSeconds>
>  - change src/main/java/struts.xml
>     <constant name="struts.devMode" value="true" />
>     <constant name="struts.i18n.reload" value="true" />
>     <constant name="struts.configuration.xml.reload" value="true" />
>  - mvn jetty:run
>  - load http://localhost:8080/struts2-mailreader/Welcome.do
>  - change ./target/classes/mailreader2/MailreaderSupport.properties
>    index.heading=MailReader Demonstration Application Options CHANGED DYNAMICALLY
>  - reload in the browser
>  - => the displayed value does not reflect the change in ./target/classes/mailreader2/MailreaderSupport.properties

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Assigned] (WW-3602) auto-reload of properties not working with jetty and struts 2.2.1.1

Posted by "Lukasz Lenart (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WW-3602?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Lukasz Lenart reassigned WW-3602:
---------------------------------

    Assignee: Lukasz Lenart

> auto-reload of properties not working with jetty and struts 2.2.1.1
> -------------------------------------------------------------------
>
>                 Key: WW-3602
>                 URL: https://issues.apache.org/jira/browse/WW-3602
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Other
>    Affects Versions: 2.2.1.1
>         Environment: Linux samxps 2.6.35-28-generic #50-Ubuntu SMP Fri Mar 18 18:42:20 UTC 2011 x86_64 GNU/Linux
> java version "1.6.0_24"
> Java(TM) SE Runtime Environment (build 1.6.0_24-b07)
> Java HotSpot(TM) 64-Bit Server VM (build 19.1-b02, mixed mode)
>            Reporter: Sami Dalouche
>            Assignee: Lukasz Lenart
>
> Steps to reproduce: 
>  - Download Struts 2.2.1.1 : http://struts.apache.org/download.cgi#struts2211
>  - Extract
>  - cd src/apps/mailreader
>  - change pom.xml: <scanIntervalSeconds>0</scanIntervalSeconds>
>  - change src/main/java/struts.xml
>     <constant name="struts.devMode" value="true" />
>     <constant name="struts.i18n.reload" value="true" />
>     <constant name="struts.configuration.xml.reload" value="true" />
>  - mvn jetty:run
>  - load http://localhost:8080/struts2-mailreader/Welcome.do
>  - change ./target/classes/mailreader2/MailreaderSupport.properties
>    index.heading=MailReader Demonstration Application Options CHANGED DYNAMICALLY
>  - reload in the browser
>  - => the displayed value does not reflect the change in ./target/classes/mailreader2/MailreaderSupport.properties

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Issue Comment Edited] (WW-3602) auto-reload of properties not working with jetty and struts 2.2.1.1

Posted by "Sami Dalouche (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WW-3602?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13014551#comment-13014551 ] 

Sami Dalouche edited comment on WW-3602 at 4/1/11 1:25 PM:
-----------------------------------------------------------

Yes, it's exactly what I wanted to do.

I do not want jetty to automatically hot-redeploy, because I want struts to pick my changes in target/classes/*

      was (Author: samokk):
    Yes, it's exactly what I wanted to do.

I do not want jetty to mess with hot-redeploy, because I then directly change the files in target/classes/*
  
> auto-reload of properties not working with jetty and struts 2.2.1.1
> -------------------------------------------------------------------
>
>                 Key: WW-3602
>                 URL: https://issues.apache.org/jira/browse/WW-3602
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Other
>    Affects Versions: 2.2.1.1
>         Environment: Linux samxps 2.6.35-28-generic #50-Ubuntu SMP Fri Mar 18 18:42:20 UTC 2011 x86_64 GNU/Linux
> java version "1.6.0_24"
> Java(TM) SE Runtime Environment (build 1.6.0_24-b07)
> Java HotSpot(TM) 64-Bit Server VM (build 19.1-b02, mixed mode)
>            Reporter: Sami Dalouche
>
> Steps to reproduce: 
>  - Download Struts 2.2.1.1 : http://struts.apache.org/download.cgi#struts2211
>  - Extract
>  - cd src/apps/mailreader
>  - change pom.xml: <scanIntervalSeconds>0</scanIntervalSeconds>
>  - change src/main/java/struts.xml
>     <constant name="struts.devMode" value="true" />
>     <constant name="struts.i18n.reload" value="true" />
>     <constant name="struts.configuration.xml.reload" value="true" />
>  - mvn jetty:run
>  - load http://localhost:8080/struts2-mailreader/Welcome.do
>  - change ./target/classes/mailreader2/MailreaderSupport.properties
>    index.heading=MailReader Demonstration Application Options CHANGED DYNAMICALLY
>  - reload in the browser
>  - => the displayed value does not reflect the change in ./target/classes/mailreader2/MailreaderSupport.properties

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (WW-3602) auto-reload of properties not working with jetty and struts 2.2.1.1

Posted by "Greg Huber (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WW-3602?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13040286#comment-13040286 ] 

Greg Huber commented on WW-3602:
--------------------------------

Not sure what you mean.  When submit a page with bundlesMap.clear(); it takes 9 seconds, and when I comment out the line it takes 1 second.

>From when I last looked at this, what I think it does is to reload the bundles after each time the call to reloadBundles() to get the message from the say UI.  Since for me it gets called 20+ times,  it has to reload all the bundles this many times per invocation, taking a long time.  bundlesMap.clear(); would work if it was called only once at the very start of the invocation.  I gave up in the end and did the work around as it was quicker than restarting Tomcat each time.

Cheers Greg.

> auto-reload of properties not working with jetty and struts 2.2.1.1
> -------------------------------------------------------------------
>
>                 Key: WW-3602
>                 URL: https://issues.apache.org/jira/browse/WW-3602
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Other
>    Affects Versions: 2.2.1.1
>         Environment: Linux samxps 2.6.35-28-generic #50-Ubuntu SMP Fri Mar 18 18:42:20 UTC 2011 x86_64 GNU/Linux
> java version "1.6.0_24"
> Java(TM) SE Runtime Environment (build 1.6.0_24-b07)
> Java HotSpot(TM) 64-Bit Server VM (build 19.1-b02, mixed mode)
>            Reporter: Sami Dalouche
>            Assignee: Lukasz Lenart
>             Fix For: 2.2.3
>
>
> Steps to reproduce: 
>  - Download Struts 2.2.1.1 : http://struts.apache.org/download.cgi#struts2211
>  - Extract
>  - cd src/apps/mailreader
>  - change pom.xml: <scanIntervalSeconds>0</scanIntervalSeconds>
>  - change src/main/java/struts.xml
>     <constant name="struts.devMode" value="true" />
>     <constant name="struts.i18n.reload" value="true" />
>     <constant name="struts.configuration.xml.reload" value="true" />
>  - mvn jetty:run
>  - load http://localhost:8080/struts2-mailreader/Welcome.do
>  - change ./target/classes/mailreader2/MailreaderSupport.properties
>    index.heading=MailReader Demonstration Application Options CHANGED DYNAMICALLY
>  - reload in the browser
>  - => the displayed value does not reflect the change in ./target/classes/mailreader2/MailreaderSupport.properties

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Issue Comment Edited] (WW-3602) auto-reload of properties not working with jetty and struts 2.2.1.1

Posted by "Sami Dalouche (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WW-3602?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13014551#comment-13014551 ] 

Sami Dalouche edited comment on WW-3602 at 4/1/11 1:26 PM:
-----------------------------------------------------------

Yes, it's exactly what I wanted to do.

I do not want jetty to automatically hot-redeploy, because I want struts to pick my changes in target/classes/*.

Are you able to reproduce the issue ? 

      was (Author: samokk):
    Yes, it's exactly what I wanted to do.

I do not want jetty to automatically hot-redeploy, because I want struts to pick my changes in target/classes/*
  
> auto-reload of properties not working with jetty and struts 2.2.1.1
> -------------------------------------------------------------------
>
>                 Key: WW-3602
>                 URL: https://issues.apache.org/jira/browse/WW-3602
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Other
>    Affects Versions: 2.2.1.1
>         Environment: Linux samxps 2.6.35-28-generic #50-Ubuntu SMP Fri Mar 18 18:42:20 UTC 2011 x86_64 GNU/Linux
> java version "1.6.0_24"
> Java(TM) SE Runtime Environment (build 1.6.0_24-b07)
> Java HotSpot(TM) 64-Bit Server VM (build 19.1-b02, mixed mode)
>            Reporter: Sami Dalouche
>
> Steps to reproduce: 
>  - Download Struts 2.2.1.1 : http://struts.apache.org/download.cgi#struts2211
>  - Extract
>  - cd src/apps/mailreader
>  - change pom.xml: <scanIntervalSeconds>0</scanIntervalSeconds>
>  - change src/main/java/struts.xml
>     <constant name="struts.devMode" value="true" />
>     <constant name="struts.i18n.reload" value="true" />
>     <constant name="struts.configuration.xml.reload" value="true" />
>  - mvn jetty:run
>  - load http://localhost:8080/struts2-mailreader/Welcome.do
>  - change ./target/classes/mailreader2/MailreaderSupport.properties
>    index.heading=MailReader Demonstration Application Options CHANGED DYNAMICALLY
>  - reload in the browser
>  - => the displayed value does not reflect the change in ./target/classes/mailreader2/MailreaderSupport.properties

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (WW-3602) auto-reload of properties not working with jetty and struts 2.2.1.1

Posted by "Lukasz Lenart (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WW-3602?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13040293#comment-13040293 ] 

Lukasz Lenart commented on WW-3602:
-----------------------------------

Sorry, I've messed up two different topics. You're right, it doesn't make sense to reload bundles each time, just one per request should be sufficient. Could register a new issue for that ?

> auto-reload of properties not working with jetty and struts 2.2.1.1
> -------------------------------------------------------------------
>
>                 Key: WW-3602
>                 URL: https://issues.apache.org/jira/browse/WW-3602
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Other
>    Affects Versions: 2.2.1.1
>         Environment: Linux samxps 2.6.35-28-generic #50-Ubuntu SMP Fri Mar 18 18:42:20 UTC 2011 x86_64 GNU/Linux
> java version "1.6.0_24"
> Java(TM) SE Runtime Environment (build 1.6.0_24-b07)
> Java HotSpot(TM) 64-Bit Server VM (build 19.1-b02, mixed mode)
>            Reporter: Sami Dalouche
>            Assignee: Lukasz Lenart
>             Fix For: 2.2.3
>
>
> Steps to reproduce: 
>  - Download Struts 2.2.1.1 : http://struts.apache.org/download.cgi#struts2211
>  - Extract
>  - cd src/apps/mailreader
>  - change pom.xml: <scanIntervalSeconds>0</scanIntervalSeconds>
>  - change src/main/java/struts.xml
>     <constant name="struts.devMode" value="true" />
>     <constant name="struts.i18n.reload" value="true" />
>     <constant name="struts.configuration.xml.reload" value="true" />
>  - mvn jetty:run
>  - load http://localhost:8080/struts2-mailreader/Welcome.do
>  - change ./target/classes/mailreader2/MailreaderSupport.properties
>    index.heading=MailReader Demonstration Application Options CHANGED DYNAMICALLY
>  - reload in the browser
>  - => the displayed value does not reflect the change in ./target/classes/mailreader2/MailreaderSupport.properties

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (WW-3602) auto-reload of properties not working with jetty and struts 2.2.1.1

Posted by "Sami Dalouche (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WW-3602?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13014551#comment-13014551 ] 

Sami Dalouche commented on WW-3602:
-----------------------------------

Yes, it's exactly what I wanted to do.

I do not want jetty to mess with hot-redeploy, because I then directly change the files in target/classes/*

> auto-reload of properties not working with jetty and struts 2.2.1.1
> -------------------------------------------------------------------
>
>                 Key: WW-3602
>                 URL: https://issues.apache.org/jira/browse/WW-3602
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Other
>    Affects Versions: 2.2.1.1
>         Environment: Linux samxps 2.6.35-28-generic #50-Ubuntu SMP Fri Mar 18 18:42:20 UTC 2011 x86_64 GNU/Linux
> java version "1.6.0_24"
> Java(TM) SE Runtime Environment (build 1.6.0_24-b07)
> Java HotSpot(TM) 64-Bit Server VM (build 19.1-b02, mixed mode)
>            Reporter: Sami Dalouche
>
> Steps to reproduce: 
>  - Download Struts 2.2.1.1 : http://struts.apache.org/download.cgi#struts2211
>  - Extract
>  - cd src/apps/mailreader
>  - change pom.xml: <scanIntervalSeconds>0</scanIntervalSeconds>
>  - change src/main/java/struts.xml
>     <constant name="struts.devMode" value="true" />
>     <constant name="struts.i18n.reload" value="true" />
>     <constant name="struts.configuration.xml.reload" value="true" />
>  - mvn jetty:run
>  - load http://localhost:8080/struts2-mailreader/Welcome.do
>  - change ./target/classes/mailreader2/MailreaderSupport.properties
>    index.heading=MailReader Demonstration Application Options CHANGED DYNAMICALLY
>  - reload in the browser
>  - => the displayed value does not reflect the change in ./target/classes/mailreader2/MailreaderSupport.properties

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira