I have added in CVS head support for the graceful shutdown of a context.
If stats are on for a context (so that active sessions are being traced) and stop(true) is called instead of stop(), then the context immediately starts rejecting new requests but the stop call waits until all requests have completed before sending notifications to the context and returning. This is not yet the default behaivour, but you will be able test it out and see how it goes. You could make it the default for the jboss integeration. JMX MBeans have been updated accordingly. Jules Gosnell wrote: > Scott, > > This appears to be caused by a race between Jetty responding to the > request to the JSP and the testsuite undeploying it. > > Looking at my request and server logs I can see that a request was made > for include_ejb.jsp during the second before the call to undeploy > jbosstest-web.ear. > > It looks like, by the time Jetty has got the JSP compiled and tries to > run it, it has been undeployed. > > Jetty could handle this more gracefully - agreed (and we are thinking > about it). > > Is it possible that the testsuite is making it's requests asynchronously > and undeploying it's ear before all requests have finished ? > > > Jules > > > Scott M Stark wrote: > >>When the org.jboss.test.web.test.WebIntegrationUnitTestCase is run against >>the 3.0 branch the undeployment of the war is causing the NPE shown here: >> >>17:38:01,062 INFO [MainDeployer] Undeployed >>file:/D:/usr/local/src/cvsroot/JBos >>s3.0/jboss-all/testsuite/output/lib/jbosstest-web.ear >>17:38:02,656 ERROR [STDERR] java.lang.NullPointerException >>17:38:02,656 ERROR [STDERR] at >>org.mortbay.jetty.servlet.ServletHandler$Cont >>ext.getResource(ServletHandler.java:910) >>17:38:02,671 ERROR [STDERR] at >>org.apache.jasper.JspEngineContext.getResourc >>e(JspEngineContext.java:366) >>17:38:02,671 ERROR [STDERR] at >>org.apache.jasper.compiler.JspCompiler.isOutD >>ated(JspCompiler.java:179) >>17:38:02,687 ERROR [STDERR] at >>org.apache.jasper.compiler.Compiler.compile(C >>ompiler.java:121) >>17:38:02,687 ERROR [STDERR] at >>org.apache.jasper.servlet.JspServlet.loadJSP( >>JspServlet.java:557) >>17:38:02,687 ERROR [STDERR] at >>org.apache.jasper.servlet.JspServlet$JspServl >>etWrapper.loadIfNecessary(JspServlet.java:177) >>17:38:02,703 ERROR [STDERR] at >>org.apache.jasper.servlet.JspServlet$JspServl >>etWrapper.service(JspServlet.java:189) >>17:38:02,703 ERROR [STDERR] at >>org.apache.jasper.servlet.JspServlet.serviceJ >>spFile(JspServlet.java:382) >>17:38:02,703 ERROR [STDERR] at >>org.apache.jasper.servlet.JspServlet.service( >>JspServlet.java:474) >>17:38:02,703 ERROR [STDERR] at >>javax.servlet.http.HttpServlet.service(HttpSe >>rvlet.java:853) >>17:38:02,703 ERROR [STDERR] at >>org.mortbay.jetty.servlet.ServletHolder.handl >>e(ServletHolder.java:326) >>17:38:02,718 ERROR [STDERR] at >>org.mortbay.jetty.servlet.Dispatcher.dispatch >>(Dispatcher.java:259) >>17:38:02,718 ERROR [STDERR] at >>org.mortbay.jetty.servlet.Dispatcher.include( >>Dispatcher.java:171) >>17:38:02,718 ERROR [STDERR] at >>org.apache.jasper.runtime.JspRuntimeLibrary.i >>nclude(JspRuntimeLibrary.java:820) >>17:38:02,718 ERROR [STDERR] at >>org.apache.jsp.include_0005fejb$jsp._jspServi >>ce(include_0005fejb$jsp.java:61) >>17:38:02,718 ERROR [STDERR] at >>org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107) >>17:38:02,718 ERROR [STDERR] at >>javax.servlet.http.HttpServlet.service(HttpServlet.java:853) >>17:38:02,734 ERROR [STDERR] at >>org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja >>va:202) >>17:38:02,734 ERROR [STDERR] at >>org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382) >>17:38:02,734 ERROR [STDERR] at >>org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474) >>17:38:02,734 ERROR [STDERR] at >>javax.servlet.http.HttpServlet.service(HttpServlet.java:853) >>17:38:02,734 ERROR [STDERR] at >>org.mortbay.jetty.servlet.ServletHolder.handleServletHolder.java:326) >>17:38:02,750 ERROR [STDERR] at >>org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:595) >>17:38:02,750 ERROR [STDERR] at >>org.mortbay.http.HttpContext.handle(HttpContext.java:1357) >>17:38:02,750 ERROR [STDERR] at >>org.mortbay.http.HttpContext.handle(HttpContext.java:1309) >>17:38:02,750 ERROR [STDERR] at >>org.mortbay.http.HttpServer.service(HttpServer.java:744) >>17:38:02,750 ERROR [STDERR] at >>org.jboss.jetty.Jetty.service(Jetty.java:525) >>17:38:02,750 ERROR [STDERR] at >>org.mortbay.http.HttpConnection.service(HttpConnection.java:743) >>17:38:02,765 ERROR [STDERR] at >>org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:916) >>17:38:02,765 ERROR [STDERR] at >>org.mortbay.http.HttpConnection.handle(HttpConnection.java:758) >>17:38:02,765 ERROR [STDERR] at >>org.mortbay.http.SocketListener.handleConnection(SocketListener.java:145) >>17:38:02,765 ERROR [STDERR] at >>org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:287) >>17:38:02,765 ERROR [STDERR] at >>org.mortbay.util.ThreadPool$JobRunner.run(ThreadPool.java:715) >>17:38:02,765 ERROR [STDERR] at java.lang.Thread.run(Thread.java:479) >>17:38:02,781 WARN [Jetty] WARNING: Servlet Exception for >>/jbosstest/restricted/ >>include_ejb.jsp >> >>xxxxxxxxxxxxxxxxxxxxxxxx >>Scott Stark >>Chief Technology Officer >>JBoss Group, LLC >>xxxxxxxxxxxxxxxxxxxxxxxx >> >> >>_______________________________________________________________ >>Hundreds of nodes, one monster rendering program. >>Now that's a super model! Visit http://clustering.foundries.sf.net/ >> >>_______________________________________________ >>Jboss-development mailing list >>[EMAIL PROTECTED] >>https://lists.sourceforge.net/lists/listinfo/jboss-development >> > > > > > > ------------------------ Yahoo! Groups Sponsor ---------------------~--> > Take the Yahoo! Groups survey for a chance to win $1,000. > Your opinion is very important to us! > http://us.click.yahoo.com/NOFBfD/uAJEAA/Ey.GAA/CefplB/TM > ---------------------------------------------------------------------~-> > > For the latest information about Jetty, please see http://jetty.mortbay.org > > To alter your subscription to this list goto >http://groups.yahoo.com/group/jetty-discuss > > Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ > -- Greg Wilkins<[EMAIL PROTECTED]> GB Phone: +44-(0)7092063462 Mort Bay Consulting Australia and UK. Mbl Phone: +61-(0)4 17786631 http://www.mortbay.com AU Phone: +61-(0)2 98107029 _______________________________________________________________ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm _______________________________________________ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
