Hi, When I have my restConfiguration as follows:
<restConfiguration component="jetty" host="localhost" port="8080"> <endpointProperty key="handlers" value="jettyRequestLog"></endpointProperty> </restConfiguration> <bean id="jettyRequestLog" class="org.eclipse.jetty.server.handler.RequestLogHandler"> <property name="requestLog"> <bean class="org.eclipse.jetty.server.NCSARequestLog"> <property name="extended" value="true"/> <property name="append" value="true"/> </bean> </property> </bean> When the app is starting, I'm finding the logs are as follows: 2015-10-22 10:06:07,381 [main ] INFO Server - jetty-9.2.11.v20150529 2015-10-22 10:06:07,381 [main ] WARN AbstractHandler - No Server set for org.apache.camel.component.jetty.JettyHttpComponent$1@9cb5843 2015-10-22 10:06:07,382 [main ] INFO ContextHandler - Started o.e.j.s.ServletContextHandler@6c9edf18{/,null,AVAILABLE} 2015-10-22 10:06:07,382 [main ] INFO ServerConnector - Started ServerConnector@365fb621{HTTP/1.1}{0.0.0.0:8080} 2015-10-22 10:06:07,382 [main ] INFO Server - Started @9985ms 2015-10-22 10:06:07,382 [main ] INFO SpringCamelContext - Route: route-route1 started and consuming from: Endpoint[jetty:http://0.0.0.0:8080/routes/route/route1?httpMethodRestrict=GET] 2015-10-22 10:06:07,413 [main ] INFO ServerConnector - Stopped ServerConnector@365fb621{HTTP/1.1}{0.0.0.0:8080} 2015-10-22 10:06:07,413 [main ] INFO ContextHandler - Stopped o.e.j.s.ServletContextHandler@6c9edf18{/,null,UNAVAILABLE} 2015-10-22 10:06:07,413 [main ] INFO Server - jetty-9.2.11.v20150529 2015-10-22 10:06:07,413 [main ] WARN AbstractHandler - No Server set for org.apache.camel.component.jetty.JettyHttpComponent$1@9cb5843 2015-10-22 10:06:07,413 [main ] INFO ContextHandler - Started o.e.j.s.ServletContextHandler@6c9edf18{/,null,AVAILABLE} 2015-10-22 10:06:07,429 [main ] INFO ServerConnector - Started ServerConnector@365fb621{HTTP/1.1}{0.0.0.0:8080} 2015-10-22 10:06:07,429 [main ] INFO Server - Started @10032ms 2015-10-22 10:06:07,429 [main ] INFO SpringCamelContext - Route: route-route2 started and consuming from: Endpoint[jetty:http://0.0.0.0:8080/routes/route/route2?httpMethodRestrict=GET] 2015-10-22 10:06:07,429 [main ] INFO SpringCamelContext - Total 2 routes, of which 2 is started. 2015-10-22 10:06:07,429 [main ] INFO SpringCamelContext - Apache Camel 2.16.0 (CamelContext: routes) started in 0.921 seconds It seems to work fine, but I'm not sure why we have the warnings and stop/starts above. If I do not include the handlers endPointProperty, it starts well: 2015-10-22 10:13:21,521 [main ] INFO Server - jetty-9.2.11.v20150529 2015-10-22 10:13:21,521 [main ] WARN AbstractHandler - No Server set for org.apache.camel.component.jetty.JettyHttpComponent$1@4d7f405e 2015-10-22 10:13:21,522 [main ] INFO ContextHandler - Started o.e.j.s.ServletContextHandler@35926cb6{/,null,AVAILABLE} 2015-10-22 10:13:21,522 [main ] INFO ServerConnector - Started ServerConnector@51ebde29{HTTP/1.1}{0.0.0.0:8080} 2015-10-22 10:13:21,522 [main ] INFO Server - Started @9554ms 2015-10-22 10:13:21,522 [main ] INFO SpringCamelContext - Route: route-route1 started and consuming from: Endpoint[jetty:http://0.0.0.0:8080/routes/route/route1?httpMethodRestrict=GET] 2015-10-22 10:13:21,553 [main ] INFO SpringCamelContext - Route: route-route2 started and consuming from: Endpoint[jetty:http://0.0.0.0:8080/routes/route/route2?httpMethodRestrict=GET] 2015-10-22 10:13:21,553 [main ] INFO SpringCamelContext - Total 2 routes, of which 2 is started. -- View this message in context: http://camel.465427.n5.nabble.com/Jetty-server-startup-warnings-when-using-handlers-in-Rest-DSL-tp5772973.html Sent from the Camel - Users mailing list archive at Nabble.com.