Automatic shutdown after Tomcat startup

CSDN Q & A 2022-06-24 06:57:11 阅读数:391

automaticshutdowntomcatstartup

tomcat What is the situation when I hang up a few seconds after startup
Here is the journal

 com.mysql.cj.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:826) com.mysql.cj.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:456) com.mysql.cj.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:246) com.mysql.cj.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:198) com.alibaba.druid.filter.FilterChainImpl.connection_connect(FilterChainImpl.java:156) com.alibaba.druid.filter.stat.StatFilter.connection_connect(StatFilter.java:227) com.alibaba.druid.filter.FilterChainImpl.connection_connect(FilterChainImpl.java:150) com.alibaba.druid.pool.DruidAbstractDataSource.createPhysicalConnection(DruidAbstractDataSource.java:1659) com.alibaba.druid.pool.DruidAbstractDataSource.createPhysicalConnection(DruidAbstractDataSource.java:1723) com.alibaba.druid.pool.DruidDataSource$CreateConnectionThread.run(DruidDataSource.java:2801)]14-Feb-2022 23:15:08.066 Warning [main] org.apache.catalina.core.StandardContext.setPath The context path must be an empty string or preceded by '/' start , But not with '/' ending . route [/] Do not meet these conditions , Has been changed to []14-Feb-2022 23:15:08.129 Information [main] org.apache.catalina.startup.VersionLoggerListener.log Server. Server version : Apache Tomcat/8.5.5514-Feb-2022 23:15:08.129 Information [main] org.apache.catalina.startup.VersionLoggerListener.log Server build : May 5 2020 22:10:54 UTC14-Feb-2022 23:15:08.129 Information [main] org.apache.catalina.startup.VersionLoggerListener.log Server version number (: 8.5.55.014-Feb-2022 23:15:08.129 Information [main] org.apache.catalina.startup.VersionLoggerListener.log Operating system name : Linux14-Feb-2022 23:15:08.130 Information [main] org.apache.catalina.startup.VersionLoggerListener.log OS. edition : 3.10.0-514.el7.x86_6414-Feb-2022 23:15:08.130 Information [main] org.apache.catalina.startup.VersionLoggerListener.log framework : amd6414-Feb-2022 23:15:08.130 Information [main] org.apache.catalina.startup.VersionLoggerListener.log Java environment variable : /usr/local/java/jdk1.8.0_161/jre14-Feb-2022 23:15:08.132 Information [main] org.apache.catalina.startup.VersionLoggerListener.log Java Virtual machine version : 1.8.0_161-b1214-Feb-2022 23:15:08.132 Information [main] org.apache.catalina.startup.VersionLoggerListener.log JVM. supplier : Oracle Corporation14-Feb-2022 23:15:08.132 Information [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE: /usr/local/tomcat/apache-tomcat-8.5.5514-Feb-2022 23:15:08.133 Information [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME: /usr/local/tomcat/apache-tomcat-8.5.5514-Feb-2022 23:15:08.133 Information [main] org.apache.catalina.startup.VersionLoggerListener.log Command line arguments :-Djava.util.logging.config.file=/usr/local/tomcat/apache-tomcat-8.5.55/conf/logging.properties14-Feb-2022 23:15:08.133 Information [main] org.apache.catalina.startup.VersionLoggerListener.log Command line arguments :-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager14-Feb-2022 23:15:08.133 Information [main] org.apache.catalina.startup.VersionLoggerListener.log Command line arguments :-Djdk.tls.ephemeralDHKeySize=204814-Feb-2022 23:15:08.133 Information [main] org.apache.catalina.startup.VersionLoggerListener.log Command line arguments :-Djava.protocol.handler.pkgs=org.apache.catalina.webresources14-Feb-2022 23:15:08.133 Information [main] org.apache.catalina.startup.VersionLoggerListener.log Command line arguments :-Dorg.apache.catalina.security.SecurityListener.UMASK=002714-Feb-2022 23:15:08.133 Information [main] org.apache.catalina.startup.VersionLoggerListener.log Command line arguments :-Dignore.endorsed.dirs=14-Feb-2022 23:15:08.133 Information [main] org.apache.catalina.startup.VersionLoggerListener.log Command line arguments :-Dcatalina.base=/usr/local/tomcat/apache-tomcat-8.5.5514-Feb-2022 23:15:08.133 Information [main] org.apache.catalina.startup.VersionLoggerListener.log Command line arguments :-Dcatalina.home=/usr/local/tomcat/apache-tomcat-8.5.5514-Feb-2022 23:15:08.133 Information [main] org.apache.catalina.startup.VersionLoggerListener.log Command line arguments :-Djava.io.tmpdir=/usr/local/tomcat/apache-tomcat-8.5.55/temp14-Feb-2022 23:15:08.133 Information [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent stay java.library.path:[/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib] Cannot find on APR Of Apache Tomcat Local hangar , The library allows for optimal performance in a production environment 14-Feb-2022 23:15:08.329 Information [main] org.apache.coyote.AbstractProtocol.init Initializing the protocol processor ["http-nio-8080"]14-Feb-2022 23:15:08.334 Information [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read14-Feb-2022 23:15:08.373 Information [main] org.apache.catalina.startup.Catalina.load Initialization processed in 995 ms14-Feb-2022 23:15:08.419 Information [main] org.apache.catalina.core.StandardService.startInternal Starting service [Catalina]14-Feb-2022 23:15:08.420 Information [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet Engine: Apache Tomcat/8.5.55



Take the answer :

The context path must be an empty string or preceded by '/' start , But not with '/' ending . route [/] Do not meet these conditions


copyright:author[CSDN Q & A],Please bring the original link to reprint, thank you. https://en.javamana.com/2022/175/202202150002034580.html