Сервер работает, затем выключается - PullRequest
0 голосов
/ 06 ноября 2019

Когда я запускаю сервер, щелкните правой кнопкой мыши на проекте -> запустить от имени -> запустить на сервере, сервер работает 45 секунд (указан тайм-аут), затем он выключается. В течение этого времени сервер работает, и я могу получить доступ к страницам. По истечении времени ожидания (45 секунд) сервер автоматически завершает работу с ошибкой:

Сервер Tomcat v9.0 Сервер на локальном хосте (2) не смог запуститься в течение 45 секунд. Если серверу требуется больше времени, попробуйте увеличить время ожидания в редакторе сервера.

Я пытался использовать другие номера портов, чистый сервер, новую среду выполнения, новый сервер, новый проект ..

Это вывод из консоли:

Nov 06, 2019 3:27:36 PM org.apache.tomcat.util.net.SSLHostConfig setProtocols
WARNING: The protocol [TLSv1.1] was added to the list of protocols on the SSLHostConfig named [_default_]. Check if a +/- prefix is missing.
Nov 06, 2019 3:27:36 PM org.apache.tomcat.util.net.SSLHostConfig setProtocols
WARNING: The protocol [TLSv1.2] was added to the list of protocols on the SSLHostConfig named [_default_]. Check if a +/- prefix is missing.
Nov 06, 2019 3:27:36 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server version name:   Apache Tomcat/9.0.24
Nov 06, 2019 3:27:36 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server built:          Aug 14 2019 21:16:42 UTC
Nov 06, 2019 3:27:36 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server version number: 9.0.24.0
Nov 06, 2019 3:27:36 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: OS Name:               Windows 10
Nov 06, 2019 3:27:36 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: OS Version:            10.0
Nov 06, 2019 3:27:36 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Architecture:          amd64
Nov 06, 2019 3:27:36 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Java Home:             C:\Program Files\ojdkbuild\java-1.8.0-openjdk-1.8.0.222-1\jre
Nov 06, 2019 3:27:36 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: JVM Version:           1.8.0_222-1-ojdkbuild-b10
Nov 06, 2019 3:27:36 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: JVM Vendor:            
Nov 06, 2019 3:27:36 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: CATALINA_BASE:         C:\Users\martin.bozinovski\eclipse-workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp1
Nov 06, 2019 3:27:36 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: CATALINA_HOME:         C:\Program Files\Apache Software Foundation\Tomcat 9.0
Nov 06, 2019 3:27:36 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dcatalina.base=C:\Users\martin.bozinovski\eclipse-workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp1
Nov 06, 2019 3:27:36 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dcatalina.home=C:\Program Files\Apache Software Foundation\Tomcat 9.0
Nov 06, 2019 3:27:36 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dwtp.deploy=C:\Users\martin.bozinovski\eclipse-workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\wtpwebapps
Nov 06, 2019 3:27:36 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Djava.endorsed.dirs=C:\Program Files\Apache Software Foundation\Tomcat 9.0\endorsed
Nov 06, 2019 3:27:36 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dfile.encoding=Cp1252
Nov 06, 2019 3:27:36 PM org.apache.catalina.core.AprLifecycleListener lifecycleEvent
INFO: Loaded APR based Apache Tomcat Native library [1.2.23] using APR version [1.7.0].
Nov 06, 2019 3:27:36 PM org.apache.catalina.core.AprLifecycleListener lifecycleEvent
INFO: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].
Nov 06, 2019 3:27:36 PM org.apache.catalina.core.AprLifecycleListener lifecycleEvent
INFO: APR/OpenSSL configuration: useAprConnector [true], useOpenSSL [true]
Nov 06, 2019 3:27:36 PM org.apache.catalina.core.AprLifecycleListener initializeSSL
INFO: OpenSSL successfully initialized [OpenSSL 1.1.1c  28 May 2019]
Nov 06, 2019 3:27:37 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-apr-8080"]
Nov 06, 2019 3:27:37 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["ajp-apr-8009"]
Nov 06, 2019 3:27:37 PM org.apache.coyote.http11.AbstractHttp11Protocol configureUpgradeProtocol
INFO: The ["https-openssl-apr-0.0.0.0-8843"] connector has been configured to support negotiation to [h2] via ALPN
Nov 06, 2019 3:27:37 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["https-openssl-apr-0.0.0.0-8843"]
Nov 06, 2019 3:27:37 PM org.apache.tomcat.util.net.openssl.OpenSSLUtil getKeyManagers
INFO: The certificate chain [C:\Users\martin.bozinovski/.arkcase/acm/private/ca-chain.cert.pem] was not specified or was not valid and JSSE requires a valid certificate chain so attempting to use OpenSSL directly
Nov 06, 2019 3:27:37 PM org.apache.catalina.startup.Catalina load
INFO: Server initialization in [1,245] milliseconds
Nov 06, 2019 3:27:37 PM org.apache.catalina.core.StandardService startInternal
INFO: Starting service [Catalina]
Nov 06, 2019 3:27:37 PM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet engine: [Apache Tomcat/9.0.24]
Nov 06, 2019 3:27:38 PM org.apache.catalina.util.SessionIdGeneratorBase createSecureRandom
WARNING: Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [819] milliseconds.
Nov 06, 2019 3:27:40 PM org.apache.catalina.core.ApplicationContext log
INFO: No Spring WebApplicationInitializer types detected on classpath
Nov 06, 2019 3:27:40 PM org.apache.jasper.servlet.TldScanner scanJars
INFO: 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.
Nov 06, 2019 3:27:40 PM org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring DispatcherServlet 'martin'
Nov 06, 2019 3:27:40 PM org.springframework.web.servlet.FrameworkServlet initServletBean
INFO: Initializing Servlet 'martin'
Nov 06, 2019 3:27:43 PM org.springframework.web.servlet.FrameworkServlet initServletBean
INFO: Completed initialization in 3099 ms
Nov 06, 2019 3:27:43 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-apr-8080"]
Nov 06, 2019 3:27:43 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["ajp-apr-8009"]
Nov 06, 2019 3:27:43 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["https-openssl-apr-0.0.0.0-8843"]
Nov 06, 2019 3:27:43 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in [6,591] milliseconds
Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...