Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 349407 - Hot redeploy doesn't work
Summary: Hot redeploy doesn't work
Status: RESOLVED INVALID
Alias: None
Product: Jetty
Classification: RT
Component: server (show other bugs)
Version: 7.4.2   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 7.2.x   Edit
Assignee: Greg Wilkins CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-15 05:19 EDT by marioosh Mising name CLA
Modified: 2011-06-15 14:28 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description marioosh Mising name CLA 2011-06-15 05:19:58 EDT
I have problem with hot re-deploying web-application (.war) to Jetty. New .war is detected good, but replacing existing .war with new is not detected. If this is supposed to work?

Configuration:
<Configure id="Server" class="org.eclipse.jetty.server.Server">
        <Ref id="DeploymentManager">
          <Call name="addAppProvider">
            <Arg>
              <New class="org.eclipse.jetty.deploy.providers.ContextProvider">
                <Set name="monitoredDirName"><Property name="jetty.home" default="." />/contexts</Set>
                <Set name="scanInterval">1</Set>
              </New>
            </Arg>
          </Call>
        </Ref>
</Configure>

Logs:

2011-06-15 10:28:21.780:INFO::Deployment monitor /opt/jetty-distribution-7.4.2.v20110526/webapps at interval 1
2011-06-15 10:28:21.788:INFO::Deployment monitor /opt/jetty-distribution-7.4.2.v20110526/contexts at interval 1
Comment 1 Jesse McConnell CLA 2011-06-15 08:33:39 EDT
Using the ContextProvider you need to *touch* the context.xml file for that webapp to trigger the reload.

If you use the WebappProvider then it ought to do the hot deploy I believe, reopen if you have issues with that.  It is in the jetty-webapps.xml file
Comment 2 marioosh Mising name CLA 2011-06-15 14:28:18 EDT
Touching context.xml did that .war reload. Thanks :)