Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] How to disable web application context and use only WebAppContext

If I recall correctly, you need to touch the context file in order to reload context if the context is defined using context file.

On Tue, Feb 22, 2011 at 9:40 AM, BSH 666 <bsh666@xxxxxxxxx> wrote:
Thanks Michael,

I did rename my context file and the problem context is gone. But now mailer.war does not redeploy when changed? What is wrong?


On Thu, Feb 17, 2011 at 4:27 PM, Michael Gorovoy <michael@xxxxxxxxxxx> wrote:
Should have asked this earlier, what version of Jetty are you running? You should try renaming your context file to mailer.xml and see if this makes the rogue context go away.

-Michael


On Thu, Feb 17, 2011 at 9:08 AM, BSH 666 <bsh666@xxxxxxxxx> wrote:
Hi Michael,

My context file is named web.xml, but my webapp is packaged in mailer.war That is where the unneeded context comes from.



On Thu, Feb 17, 2011 at 4:05 PM, Michael Gorovoy <michael@xxxxxxxxxxx> wrote:
Is your context file named mailer.xml?

On Thu, Feb 17, 2011 at 8:43 AM, BSH 666 <bsh666@xxxxxxxxx> wrote:
Hello guys.

I have servlet in a WAR deployed to webapps folder.

I also have a context defined like this:

<Configure class="org.eclipse.jetty.webapp.WebAppContext">


  <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
  <!-- Required minimal context configuration :                        -->
  <!--  + contextPath                                                  -->
  <!--  + war OR resourceBase                                          -->
  <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
  <Set name="contextPath">/dyn</Set>
  <Set name="war"><SystemProperty name="jetty.home" default="."/>/webapps/mailer.war</Set>

  <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
  <!-- Optional context configuration                                  -->
  <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
  <Set name="extractWAR">true</Set>
  <Set name="copyWebDir">false</Set>

...................


As a result I get two contexts, mydomain/dyn and mailer. Mailer is obviosuly created by the autodeployer. How do I get rid of the mailer context? I want to still be able to do hot swap of the war. Thanks for any suggestion!

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



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




--
Life is complex. Fate exists in your mind only.

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



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




--
Life is complex. Fate exists in your mind only.

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



Back to the top