Tomcat启动时没有出错但是就是起不来,启动到org.apache.catalina.startup.Catalina.start Server star就停止了,无法继续向下运行怎么办?

将微服务项目打包成war包部署到tomcat中时,启动tomcat后,在下图“org.apache.catalina.startup.Catalina.start Server star”

位置就停止启动了,

Tomcat启动时没有出错但是就是起不来,启动到org.apache.catalina.startup.Catalina.start Server star就停止了,无法继续向下运行怎么办?_第1张图片

这是因为我的环境变量里的jdk的环境没有配置好,,,只需要将tomcat对应的jdk配置到环境变量中tomcat就会继续向下运行了,,,,,之后访问localhost:8080   +项目访问路径就会访问成功了

1、原JDK版本的配置如下:、

Tomcat启动时没有出错但是就是起不来,启动到org.apache.catalina.startup.Catalina.start Server star就停止了,无法继续向下运行怎么办?_第2张图片

2、更改了jdk 的环境变量后:(因为i我的tomcat配置的jdk是C盘的所以改成了这个)

Tomcat启动时没有出错但是就是起不来,启动到org.apache.catalina.startup.Catalina.start Server star就停止了,无法继续向下运行怎么办?_第3张图片

3:再次启动tomcat就不会有问题了

 

 

我的错误如下,,,,仅供参考哈:::

 

16-Apr-2019 10:14:39.811 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Server version:        Apache Tomcat/8.0.44
16-Apr-2019 10:14:39.811 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Server built:          May 10 2017 17:21:09 UTC
16-Apr-2019 10:14:39.811 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Server number:         8.0.44.0
16-Apr-2019 10:14:39.811 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log OS Name:               Windows 8.1
16-Apr-2019 10:14:39.811 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log OS Version:            6.3
16-Apr-2019 10:14:39.811 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Architecture:          amd64
16-Apr-2019 10:14:39.811 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Java Home:             D:\mywls\JAVA\jdk1.7.0_80\jre
16-Apr-2019 10:14:39.811 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Version:           1.7.0_80-b15
16-Apr-2019 10:14:39.811 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Vendor:            Oracle Corporation
16-Apr-2019 10:14:39.811 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE:         D:\apache-tomcat-8.0.44
16-Apr-2019 10:14:39.811 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME:         D:\apache-tomcat-8.0.44
16-Apr-2019 10:14:39.811 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.config.file=D:\apache-tomcat-8.0.44\conf\logging.properties
16-Apr-2019 10:14:39.811 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
16-Apr-2019 10:14:39.811 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djdk.tls.ephemeralDHKeySize=2048
16-Apr-2019 10:14:39.811 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.protocol.handler.pkgs=org.apache.catalina.webresources
16-Apr-2019 10:14:39.811 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.endorsed.dirs=D:\apache-tomcat-8.0.44\endorsed
16-Apr-2019 10:14:39.811 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.base=D:\apache-tomcat-8.0.44
16-Apr-2019 10:14:39.811 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.home=D:\apache-tomcat-8.0.44
16-Apr-2019 10:14:39.811 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.io.tmpdir=D:\apache-tomcat-8.0.44\temp
16-Apr-2019 10:14:39.811 信息 [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent Loaded APR based Apache Tomcat Native library 1.2.12 using APR version 1.5.2.
16-Apr-2019 10:14:39.811 信息 [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].
16-Apr-2019 10:14:40.488 信息 [main] org.apache.catalina.core.AprLifecycleListener.initializeSSL OpenSSL successfully initialized (OpenSSL 1.0.2k  26 Jan 2017)
16-Apr-2019 10:14:40.597 信息 [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-apr-8011"]
16-Apr-2019 10:14:40.597 信息 [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["ajp-apr-8009"]
16-Apr-2019 10:14:40.597 信息 [main] org.apache.catalina.startup.Catalina.load Initialization processed in 1203 ms
16-Apr-2019 10:14:40.628 信息 [main] org.apache.catalina.core.StandardService.startInternal Starting service Catalina
16-Apr-2019 10:14:40.628 信息 [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet Engine: Apache Tomcat/8.0.44
16-Apr-2019 10:14:40.660 信息 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployWAR Deploying web application archive D:\apache-tomcat-8.0.44\webapps\dgssh-dx-0.0.1-SNAPSHOT.war
16-Apr-2019 10:14:51.627 信息 [localhost-startStop-1] 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.
16-Apr-2019 10:14:52.411 信息 [localhost-startStop-1] org.apache.catalina.util.SessionIdGeneratorBase.createSecureRandom Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [375] milliseconds.
16-Apr-2019 10:14:52.426 信息 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployWAR Deployment of web application archive D:\apache-tomcat-8.0.44\webapps\dgssh-dx-0.0.1-SNAPSHOT.war has finished in 11,766 ms
16-Apr-2019 10:14:52.426 信息 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory D:\apache-tomcat-8.0.44\webapps\docs
16-Apr-2019 10:14:52.442 信息 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory D:\apache-tomcat-8.0.44\webapps\docs has finished in 16 ms
16-Apr-2019 10:14:52.458 信息 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory D:\apache-tomcat-8.0.44\webapps\examples
16-Apr-2019 10:14:52.739 信息 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory D:\apache-tomcat-8.0.44\webapps\examples has finished in 281 ms
16-Apr-2019 10:14:52.739 信息 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory D:\apache-tomcat-8.0.44\webapps\host-manager
16-Apr-2019 10:14:52.770 信息 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory D:\apache-tomcat-8.0.44\webapps\host-manager has finished in 31 ms
16-Apr-2019 10:14:52.770 信息 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory D:\apache-tomcat-8.0.44\webapps\manager
16-Apr-2019 10:14:52.801 信息 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory D:\apache-tomcat-8.0.44\webapps\manager has finished in 31 ms
16-Apr-2019 10:14:52.801 信息 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory D:\apache-tomcat-8.0.44\webapps\ROOT
16-Apr-2019 10:14:52.832 信息 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory D:\apache-tomcat-8.0.44\webapps\ROOT has finished in 31 ms
16-Apr-2019 10:14:52.832 信息 [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-apr-8011"]
16-Apr-2019 10:14:52.848 信息 [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["ajp-apr-8009"]
16-Apr-2019 10:14:52.848 信息 [main] org.apache.catalina.startup.Catalina.start Server startup in 12250 ms

 

 

你可能感兴趣的:(spring,cloud,错误总结)