Issue with Confluence on Microsoft server 2016 when clicking on Start Confluence Server [8090]
Asked by Ryan Carmer:

Whenever I launch the Start Confluence Server \[8090\] a Tomcat dialog window pops up. If I leave the window open in the background Confluence runs fine. If I close out of the window Confluence stops. The following is the text from the Tomcat dialog window.

08-Feb-2019 09:52:54.583 WARNING \[main\] org.apache.tomcat.util.digester.SetPropertiesRule.begin \[SetPropertiesRule\]{Server} Setting property 'debug' to '0' did not find a matching property.  
08-Feb-2019 09:52:54.630 WARNING \[main\] org.apache.catalina.startup.SetAllPropertiesRule.begin \[SetAllPropertiesRule\]{Server/Service/Connector} Setting property 'debug' to '0' did not find a matching property.  
08-Feb-2019 09:52:54.677 WARNING \[main\] org.apache.tomcat.util.digester.SetPropertiesRule.begin \[SetPropertiesRule\]{Server/Service/Engine} Setting property 'debug' to '0' did not find a matching property.  
08-Feb-2019 09:52:54.692 WARNING \[main\] org.apache.tomcat.util.digester.SetPropertiesRule.begin \[SetPropertiesRule\]{Server/Service/Engine/Host} Setting property 'debug' to '0' did not find a matching property.  
08-Feb-2019 09:52:54.708 WARNING \[main\] org.apache.tomcat.util.digester.SetPropertiesRule.begin \[SetPropertiesRule\]{Server/Service/Engine/Host/Context} Setting property 'debug' to '0' did not find a matching property.  
08-Feb-2019 09:52:54.724 WARNING \[main\] org.apache.tomcat.util.digester.SetPropertiesRule.begin \[SetPropertiesRule\]{Server/Service/Engine/Host/Context} Setting property 'debug' to '0' did not find a matching property.  
08-Feb-2019 09:52:54.911 INFO \[main\] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler \["http-nio-8090"\]  
08-Feb-2019 09:52:54.958 INFO \[main\] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read  
08-Feb-2019 09:52:54.958 INFO \[main\] org.apache.catalina.startup.Catalina.load Initialization processed in 444 ms  
08-Feb-2019 09:52:54.974 INFO \[main\] org.apache.catalina.core.StandardService.startInternal Starting service \[Tomcat-Standalone\]  
08-Feb-2019 09:52:54.974 INFO \[main\] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet Engine: Apache Tomcat/9.0.12  
08-Feb-2019 09:52:56.505 INFO \[localhost-startStop-2\] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.  
08-Feb-2019 09:52:56.802 INFO \[localhost-startStop-2\] org.apache.catalina.core.ApplicationContext.log Spring WebApplicationInitializers detected on classpath: \[com.atlassian.synchrony.proxy.SynchronyDispatcherServletInitializer@3823aa1b\]  
08-Feb-2019 09:52:57.177 INFO \[localhost-startStop-2\] org.apache.catalina.core.ApplicationContext.log Initializing Spring FrameworkServlet 'dispatcher'  
08-Feb-2019 09:52:57.177 INFO \[localhost-startStop-2\] org.springframework.web.servlet.DispatcherServlet.initServletBean FrameworkServlet 'dispatcher': initialization started  
08-Feb-2019 09:52:57.193 INFO \[localhost-startStop-2\] org.springframework.web.context.support.AnnotationConfigWebApplicationContext.prepareRefresh Refreshing WebApplicationContext for namespace 'dispatcher-servlet': startup date \[Fri Feb 08 09:52:57 MST 2019\]; root of context hierarchy  
08-Feb-2019 09:52:57.286 INFO \[localhost-startStop-2\] org.springframework.web.context.support.AnnotationConfigWebApplicationContext.loadBeanDefinitions Registering annotated classes: \[class com.atlassian.synchrony.proxy.websocket.WebSocketConfig,class com.atlassian.synchrony.proxy.web.SynchronyWebMvcConfig\]  
2019-02-08 09:52:57,443 INFO \[localhost-startStop-1\] \[com.atlassian.confluence.lifecycle\] contextInitialized Starting Confluence 6.14.0 \[build 7901 based on commit hash 9eed016aaa593220cd98620fec88bcbd9fd55893\] - synchrony version 2.1.0-master-9d112c9d  
08-Feb-2019 09:52:57.896 INFO \[localhost-startStop-2\] org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler.initialize Initializing ExecutorService 'defaultSockJsTaskScheduler'  
08-Feb-2019 09:52:57.943 INFO \[localhost-startStop-2\] org.springframework.web.socket.server.support.WebSocketHandlerMapping.registerHandler Mapped URL path \[/v1/bayeux-sync1\] onto handler of type \[class org.springframework.web.socket.server.support.WebSocketHttpRequestHandler\]  
08-Feb-2019 09:52:58.489 INFO \[localhost-startStop-2\] org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.initControllerAdviceCache Looking for @ControllerAdvice: WebApplicationContext for namespace 'dispatcher-servlet': startup date \[Fri Feb 08 09:52:57 MST 2019\]; root of context hierarchy  
08-Feb-2019 09:52:58.583 INFO \[localhost-startStop-2\] org.springframework.web.servlet.handler.SimpleUrlHandlerMapping.registerHandler Mapped URL path \[/\*\*\] onto handler of type \[class org.springframework.web.servlet.resource.DefaultServletHttpRequestHandler\]  
08-Feb-2019 09:52:58.646 INFO \[localhost-startStop-2\] org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping.register Mapped "{\[/reload\],methods=\[PUT\]}" onto public org.springframework.http.ResponseEntity com.atlassian.synchrony.proxy.web.SynchronyProxyRestController.reloadConfiguration(com.atlassian.synchrony.proxy.web.SynchronyProxyConfigPayload)  
08-Feb-2019 09:52:58.646 INFO \[localhost-startStop-2\] org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping.register Mapped "{\[/healthcheck\]}" onto public com.atlassian.synchrony.proxy.web.HealthCheckResult com.atlassian.synchrony.proxy.web.SynchronyProxyRestController.getSynchronyProxyInfo()  
08-Feb-2019 09:52:58.755 INFO \[localhost-startStop-2\] org.springframework.context.support.DefaultLifecycleProcessor.start Starting beans in phase 2147483647  
08-Feb-2019 09:52:58.786 INFO \[localhost-startStop-2\] org.springframework.web.servlet.DispatcherServlet.initServletBean FrameworkServlet 'dispatcher': initialization completed in 1609 ms  
08-Feb-2019 09:54:24.076 INFO \[main\] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler \["http-nio-8090"\]  
08-Feb-2019 09:54:24.094 INFO \[main\] org.apache.catalina.startup.Catalina.start Server startup in 89121 ms  
08-Feb-2019 09:54:24.850 INFO \[http-nio-8090-exec-3\] com.sun.jersey.server.impl.application.WebApplicationImpl._initiate Initiating Jersey application, version 'Jersey: 1.19.4 05/24/2017 03:20 PM'  
08-Feb-2019 09:54:57.014 INFO \[http-nio-8090-exec-3\] com.sun.jersey.server.impl.application.WebApplicationImpl._initiate Initiating Jersey application, version 'Jersey: 1.19.4 05/24/2017 03:20 PM'  
08-Feb-2019 09:54:57.637 INFO \[http-nio-8090-exec-2\] com.sun.jersey.server.impl.application.WebApplicationImpl._initiate Initiating Jersey application, version 'Jersey: 1.19.4 05/24/2017 03:20 PM'  
08-Feb-2019 09:55:16.149 INFO \[http-nio-8090-exec-5\] com.sun.jersey.server.impl.application.WebApplicationImpl._initiate Initiating Jersey application, version 'Jersey: 1.19.4 05/24/2017 03:20 PM'  
08-Feb-2019 09:55:16.275 INFO \[http-nio-8090-exec-9\] com.sun.jersey.server.impl.application.WebApplicationImpl._initiate Initiating Jersey application, version 'Jersey: 1.19.4 05/24/2017 03:20 PM'  
08-Feb-2019 09:55:16.293 INFO \[http-nio-8090-exec-7\] com.sun.jersey.server.impl.application.WebApplicationImpl._initiate Initiating Jersey application, version 'Jersey: 1.19.4 05/24/2017 03:20 PM'  
08-Feb-2019 09:55:16.370 INFO \[http-nio-8090-exec-5\] com.sun.jersey.api.wadl.config.WadlGeneratorLoader.loadWadlGenerator Loading wadlGenerator com.sun.jersey.server.wadl.generators.WadlGeneratorApplicationDoc  
08-Feb-2019 09:55:16.381 INFO \[http-nio-8090-exec-5\] com.sun.jersey.api.wadl.config.WadlGeneratorLoader.loadWadlGenerator Loading wadlGenerator com.atlassian.plugins.rest.doclet.generators.grammars.WadlGrammarsAdaptor  
08-Feb-2019 09:55:16.384 INFO \[http-nio-8090-exec-5\] com.sun.jersey.api.wadl.config.WadlGeneratorLoader.loadWadlGenerator Loading wadlGenerator com.atlassian.plugins.rest.doclet.generators.resourcedoc.AtlassianWadlGeneratorResourceDocSupport  
08-Feb-2019 09:55:16.406 INFO \[http-nio-8090-exec-3\] com.sun.jersey.server.impl.application.WebApplicationImpl._initiate Initiating Jersey application, version 'Jersey: 1.19.4 05/24/2017 03:20 PM'  
08-Feb-2019 09:55:19.648 INFO \[http-nio-8090-exec-1\] com.sun.jersey.server.impl.application.WebApplicationImpl._initiate Initiating Jersey application, version 'Jersey: 1.19.4 05/24/2017 03:20 PM'  
08-Feb-2019 09:55:19.808 INFO \[http-nio-8090-exec-1\] com.sun.jersey.api.wadl.config.WadlGeneratorLoader.loadWadlGenerator Loading wadlGenerator com.sun.jersey.server.wadl.generators.WadlGeneratorApplicationDoc  
08-Feb-2019 09:55:19.825 INFO \[http-nio-8090-exec-1\] com.sun.jersey.api.wadl.config.WadlGeneratorLoader.loadWadlGenerator Loading wadlGenerator com.atlassian.plugins.rest.doclet.generators.grammars.WadlGrammarsAdaptor  
08-Feb-2019 09:55:19.832 INFO \[http-nio-8090-exec-1\] com.sun.jersey.api.wadl.config.WadlGeneratorLoader.loadWadlGenerator Loading wadlGenerator com.atlassian.plugins.rest.doclet.generators.resourcedoc.AtlassianWadlGeneratorResourceDocSupport  
08-Feb-2019 09:55:19.978 INFO \[http-nio-8090-exec-3\] com.sun.jersey.server.impl.application.WebApplicationImpl._initiate Initiating Jersey application, version 'Jersey: 1.19.4 05/24/2017 03:20 PM'  
08-Feb-2019 09:55:20.875 INFO \[http-nio-8090-exec-10\] com.sun.jersey.server.impl.application.WebApplicationImpl._initiate Initiating Jersey application, version 'Jersey: 1.19.4 05/24/2017 03:20 PM'  
08-Feb-2019 09:55:34.252 INFO \[http-nio-8090-exec-4\] com.sun.jersey.server.impl.application.WebApplicationImpl._initiate Initiating Jersey application, version 'Jersey: 1.19.4 05/24/2017 03:20 PM'  
08-Feb-2019 09:55:34.253 INFO \[http-nio-8090-exec-5\] com.sun.jersey.server.impl.application.WebApplicationImpl._initiate Initiating Jersey application, version 'Jersey: 1.19.4 05/24/2017 03:20 PM'  
08-Feb-2019 09:55:46.044 INFO \[http-nio-8090-exec-5\] com.sun.jersey.server.impl.application.WebApplicationImpl._initiate Initiating Jersey application, version 'Jersey: 1.19.4 05/24/2017 03:20 PM'  
08-Feb-2019 09:55:46.202 INFO \[http-nio-8090-exec-5\] com.sun.jersey.api.wadl.config.WadlGeneratorLoader.loadWadlGenerator Loading wadlGenerator com.sun.jersey.server.wadl.generators.WadlGeneratorApplicationDoc  
08-Feb-2019 09:55:46.203 INFO \[http-nio-8090-exec-5\] com.sun.jersey.api.wadl.config.WadlGeneratorLoader.loadWadlGenerator Loading wadlGenerator com.atlassian.plugins.rest.doclet.generators.grammars.WadlGrammarsAdaptor  
08-Feb-2019 09:55:46.206 INFO \[http-nio-8090-exec-5\] com.sun.jersey.api.wadl.config.WadlGeneratorLoader.loadWadlGenerator Loading wadlGenerator com.atlassian.plugins.rest.doclet.generators.resourcedoc.AtlassianWadlGeneratorResourceDocSupport  
08-Feb-2019 09:56:16.214 INFO \[http-nio-8090-exec-8\] com.sun.jersey.server.impl.application.WebApplicationImpl._initiate Initiating Jersey application, version 'Jersey: 1.19.4 05/24/2017 03:20 PM'


Answers:
author: Shankar Asam {Appfire}
body: Hi,

You can create a windows service so that there will be a no risk of someone accidentally shutting down Confluence by closing the window. For creating a windows service, please see this [KB](https://confluence.atlassian.com/doc/start-confluence-automatically-on-windows-as-a-service-172071.html) article.

Thanks


author: roman
body: Hi [@Ryan Carmer](/t5/user/viewprofilepage/user-id/2390919),

i think the reason for this is because Confluence starts in the foreground, therefore, a window with Command Line Tool being open is a requirement for the Tomcat server to work. When it is closed, the server stops.

Could you share the exact command you use to start Confluence?

Roman.


Tags: confluence-server

server