|
From: c_inconnu <c_i...@ya...> - 2007-09-20 10:18:28
|
Hi
I have the same problem with version 6.1.5.
3 "timer-X" threads are created at startup, but when i call server.stop(),
timer-1 and timer-2 threads remain. Here is my trace:
2007-09-20 12:14:48.04::INFO: Logging to STDERR via
org.mortbay.log.StdErrLog
2007-09-20 12:14:48.095::INFO: jetty-6.1.5
2007-09-20 12:14:48.392::INFO: NO JSP Support for /axis, did not find
org.apache.jasper.servlet.JspServlet
- Unable to find config file. Creating new servlet engine config file:
/WEB-INF/server-config.wsdd
2007-09-20 12:14:49.236::INFO: Opened
D:\projets\xxx\components\jetty\logs\2007_09_20.request.log
2007-09-20 12:14:49.299::INFO: Started SelectChannelConnector@0.0.0.0:8070
2007-09-20 12:14:52.203::INFO: Graceful shutdown
SelectChannelConnector@0.0.0.0:8070
2007-09-20 12:14:52.203::WARN: EXCEPTION
java.nio.channels.ClosedChannelException
at
sun.nio.ch.ServerSocketChannelImpl.accept(ServerSocketChannelImpl.java:130)
at
org.mortbay.jetty.nio.SelectChannelConnector$1.acceptChannel(SelectChannelConnector.java:75)
at
org.mortbay.io.nio.SelectorManager$SelectSet.doSelect(SelectorManager.java:485)
at org.mortbay.io.nio.SelectorManager.doSelect(SelectorManager.java:168)
at
org.mortbay.jetty.nio.SelectChannelConnector.accept(SelectChannelConnector.java:124)
at
org.mortbay.jetty.AbstractConnector$Acceptor.run(AbstractConnector.java:514)
at
org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442)
2007-09-20 12:14:52.203::INFO: Graceful shutdown
org.mortbay.jetty.webapp.WebAppContext@1875da7{/axis,file:/D:/projets/xxx/components/jetty/webapps/axis/}
Gregw wrote:
>
>
> Aravind,
>
> what version of Jetty?
>
> What threads are not being stopped?
> Can you get a thread dump (ctrl-\ on unix)?
>
> regards
>
>
> Aravind J wrote:
>> Hi ,
>> I am trying to start and stop jetty server from my
>> program . Server is starting perfectly , but stop()
>> doesn't seem to stop the server(doesn;t seems to stop
>> all the threads) . Could you please help.
>>
>> Please find my server stopping code below
>>
>> try
>> {
>> System.out.println("Stopping Server...");
>> server.stop();
>> System.out.println("Server Stopped.");
>> }
>> catch(Exception exception) {
>> }finally{
>> System.out.println("Finally Stopping
>> Server...");
>> if(server != null){
>> System.out.println("Calling Destroy
>> Stopping Server...");
>> server.destroy();
>>
>> }
>> }
>>
>> Thanks
>> Aravind
>
>
--
View this message in context: http://www.nabble.com/server.stop-is-not-stopping-all-threads.-tf1046083.html#a12794411
Sent from the Jetty Support mailing list archive at Nabble.com.
|