Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jetty-users] Starting Jetty within an application leads to a STOPPED message on system.err

Hello,

Using jetty-distribution-7.1.6.v20100715.

When embedding jetty in an application, with the following code

      private void createHttpServer() throws Exception {
            if (httpServer == null) {
                  httpServer = new Server(8080);
                  httpServer.setHandler(new ActionURIHandler());
                  httpServer.start();
            }
      }

I get the following log (I use log4j):

2010-09-23 19:04:56,481 [linkInService-Thread-5] DEBUG log - Logging to
org.slf4j.impl.Log4jLoggerAdapter(org.eclipse.jetty.util.log) via
org.eclipse.jetty.util.log.Slf4jLog
2010-09-23 19:04:56,481 [linkInService-Thread-5] DEBUG log - Container
org.eclipse.jetty.server.Server@1b2b131 +
SelectChannelConnector@0.0.0.0:8080 as connector
2010-09-23 19:04:56,481 [linkInService-Thread-5] DEBUG log - Container
org.eclipse.jetty.server.Server@1b2b131 +
AsteriskLinkImpl$ActionURIHandler@1f7cdc7 as handler
2010-09-23 19:04:56,481 [linkInService-Thread-5] DEBUG log - Starting
org.eclipse.jetty.server.Server@1b2b131
2010-09-23 19:04:56,481 [linkInService-Thread-5] INFO  log -
jetty-7.1.6.v20100715
2010-09-23 19:04:56,512 [linkInService-Thread-5] DEBUG log - Container
org.eclipse.jetty.server.Server@1b2b131 + qtp28678425{8<=0<=0/254,-1} as
threadpool
2010-09-23 19:04:56,512 [linkInService-Thread-5] DEBUG log - Starting
qtp28678425{8<=0<=0/254,-1}
2010-09-23 19:04:56,512 [linkInService-Thread-5] DEBUG log - STARTED
qtp28678425{8<=5<=8/254,0}
2010-09-23 19:04:56,512 [linkInService-Thread-5] DEBUG log - Starting
AsteriskLinkImpl$ActionURIHandler@1f7cdc7
2010-09-23 19:04:56,512 [linkInService-Thread-5] DEBUG log - starting
AsteriskLinkImpl$ActionURIHandler@1f7cdc7
2010-09-23 19:04:56,512 [linkInService-Thread-5] DEBUG log - STARTED
AsteriskLinkImpl$ActionURIHandler@1f7cdc7
2010-09-23 19:04:56,512 [linkInService-Thread-5] DEBUG log - starting
org.eclipse.jetty.server.Server@1b2b131
2010-09-23 19:04:56,512 [linkInService-Thread-5] DEBUG log - Starting
SelectChannelConnector@0.0.0.0:8080
2010-09-23 19:04:56,512 [linkInService-Thread-5] DEBUG log - Starting
org.eclipse.jetty.server.nio.SelectChannelConnector$1@a2a38
2010-09-23 19:04:56,528 [linkInService-Thread-5] DEBUG log - STARTED
org.eclipse.jetty.server.nio.SelectChannelConnector$1@a2a38
2010-09-23 19:04:56,528 [linkInService-Thread-5] INFO  log - Started
SelectChannelConnector@0.0.0.0:8080
2010-09-23 19:04:56,528 [linkInService-Thread-5] DEBUG log - STARTED
SelectChannelConnector@0.0.0.0:8080
2010-09-23 19:04:56,528 [linkInService-Thread-5] DEBUG log - STARTED
org.eclipse.jetty.server.Server@1b2b131

And in system.err

org.eclipse.jetty.server.Server@1b2b131 STOPPED
 +-AsteriskLinkImpl$ActionURIHandler@1f7cdc7 started

Anyway, everything seems to be normal, the application runs and the jetty
server responds correctly.

Is it normal or am I wrong using the server? What does this message in
system.err mean?

Thanks for your help.

Bruno Konik
uniGone






Back to the top