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 <[email protected]>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 <[email protected]> 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 <[email protected]>wrote: >> >>> Is your context file named mailer.xml? >>> >>> On Thu, Feb 17, 2011 at 8:43 AM, BSH 666 <[email protected]> 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 >>>> [email protected] >>>> https://dev.eclipse.org/mailman/listinfo/jetty-users >>>> >>>> >>> >>> _______________________________________________ >>> jetty-users mailing list >>> [email protected] >>> https://dev.eclipse.org/mailman/listinfo/jetty-users >>> >>> >> >> >> -- >> Life is complex. Fate exists in your mind only. >> >> _______________________________________________ >> jetty-users mailing list >> [email protected] >> https://dev.eclipse.org/mailman/listinfo/jetty-users >> >> > > _______________________________________________ > jetty-users mailing list > [email protected] > https://dev.eclipse.org/mailman/listinfo/jetty-users > > -- Life is complex. Fate exists in your mind only.
_______________________________________________ jetty-users mailing list [email protected] https://dev.eclipse.org/mailman/listinfo/jetty-users
