Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] can't make hot deploy work

Daniele,

The ContextDeployer will redeploy whenever the *context xml file* changes.
So if you change your war, touch the corresponding artivio-stage.xml file.

Although this page references jetty-6.x, its also valid for jetty-7.x:
http://docs.codehaus.org/display/JETTY/ContextDeployer

Jan

Daniele Dellafiore wrote:
Hi.

I followed documentation and end up in adding this code in etc/jetty.xml file

<Call name="addLifeCycle">
      <Arg>
        <New class="org.eclipse.jetty.deploy.ContextDeployer">
          <Set name="contexts"><Ref id="Contexts"/></Set>
<Set name="configurationDir"><SystemProperty name="jetty.home" default="."/>/contexts</Set>
          <Set name="scanInterval">1</Set>
        </New>
      </Arg>
</Call>

and add the file contexts/artivio-stage.xml with this content

<Configure class="org.eclipse.jetty.webapp.WebAppContext">
  <Set name="contextPath">/artivio-stage</Set>
<Set name="war"><SystemProperty name="jetty.home" default="."/>/webapps/artivio-stage.war</Set>
</Configure>

I expect that every time webapps/artivio-stage.war get updated it gets reloaded.
But it does not. Any help about what pieces I am missing?

I am using jetty 7.0.0 on a Ubuntu 9.04 server.

Thanks.

--
Daniele Dellafiore
http://danieledellafiore.net


------------------------------------------------------------------------

_______________________________________________
jetty-users mailing list
jetty-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/jetty-users

--
Jan Bartel, Webtide LLC | janb@xxxxxxxxxxx | http://www.webtide.com


Back to the top