Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8855761
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T14:12:35+00:00 2026-06-14T14:12:35+00:00

Consider a default webapp configuration in Maven (for the test case I used struts2-blank-archetype

  • 0

Consider a default webapp configuration in Maven (for the test case I used struts2-blank-archetype from https://repository.apache.org/content/groups/public/archetype-catalog.xml ).

This archetype comes with maven jetty plugin’s version 6. With the configuration below, if I change a jsp under /src/main/webapp/WEB-INF/ and save it, refreshing the browser will show these changes.

        <plugin>
            <groupId>org.mortbay.jetty</groupId>
            <artifactId>maven-jetty-plugin</artifactId>
            <version>6.1.21</version>
            <configuration>
                <scanIntervalSeconds>10</scanIntervalSeconds>
            </configuration>
        </plugin>

(notice that one doesn’t even need to put the scantarget element, as we don’t want a complete container reload when you just change a jsp).

However, the exact same configuration of version 8 of the plugin (see below) does not work. If I change the same jsp, refreshing the browser will show the old JSP contents. Only by stopping and starting the server will I see the changes.

        <plugin>
            <groupId>org.mortbay.jetty</groupId>
             <artifactId>jetty-maven-plugin</artifactId>
             <version>8.1.7.v20120910</version>
            <configuration>
                <scanIntervalSeconds>10</scanIntervalSeconds>
            </configuration>
        </plugin>

What is wrong with this configuration, and what configuration would produce the same results in version 8 (ie, auto-refreshing the jsp contents without restarting the server)?

EDIT:
Here’s a 2 minute test you can try:

  1. Create archetype struts2-archetype-convention (“mvn archetype:generate”, 308, package war).
  2. Edit the pom and set the jetty plugin configuration to the one listed above (version 6)
  3. mvn jetty:run
  4. Open the browser on “http://localhost:8080&#8221;
  5. See “Languages” on the page
  6. Edit /src/main/webapp/WEB-INF/content/hello.jsp – change “Languages” for something else. Save.
  7. Refresh the browser and see the change.
  8. Repeat the steps. On step 2, change the artifactId and version to the ones listed above (version 8)
  9. Confirm the webpage does not change upon refresh after you perform the change in the JSP.
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T14:12:36+00:00Added an answer on June 14, 2026 at 2:12 pm

    After the previous comments I was able to identify the root cause of this issue. While this is a bit specific to our use case, I share this with the community nonetheless.

    This is basically caused by the timestamps of the files. My work directory is an NFS mount of another server. For some strange reason* the clock on that server is delayed. This means that if it’s 9:00 and I change the JSP file, the file will be timestamped with 8:40.

    There might have been a change in Jetty from 6 to 8 regarding the strategy used for JSP file reloading – while Jetty 6 does not seem to care about the file’s timestamp and refreshes anyway, Jetty 8 is more sensitive and does not reload the file.

    So the “solution” here was simply to update the remote NFS server’s clock.

    *meaning the NTP deamon is running, I can ping the ntp servers, other machines on the same networks have the same NTP settings and yet this machine is still having its clock drift

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Please consider the following context from Innate : # Default application for Innate def
Consider the following switch statement: switch( value ) { case 1: return 1; default:
Consider the following TSQL: declare @xml xml select @xml = '<test xmlns=http://this-is-the-default-namespace-uri>some data</test>' select
Consider the following C#: // C# .net switch(x) { case 1: for(int i =
Consider using the Default.png as the app splash image, it is possible to control
Consider the following console application: class Program { static void Main() { MyInterface test
Consider the following scenario: http://www.yourdomain.com/Default.aspx?p=2 Now we ofcourse want to check if the querystring
It appears that when you access My.Settings.Default in VB.NET, your thread's CurrentPrincipal changes. Consider
Under what conditions should a developer consider changing the default isolation level explicitly defined
How do I get the 'default' param if not specified? Consider the following: http://localhost/controller/action/id/123

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.