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


Using latest jetty stable jetty-distribution-7.3.0.v20110203

I didn't know name of the context file have any meaning? Thanks! I will try that.

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.

Back to the top