idea 2017 运行 spring mvc 报错 tomcat9 5C

03-Jan-2018 21:18:34.566 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Server version: Apache Tomcat/9.0.2
03-Jan-2018 21:18:34.566 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Server built: Nov 25 2017 21:08:02 UTC
03-Jan-2018 21:18:34.566 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Server number: 9.0.2.0
03-Jan-2018 21:18:34.566 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log OS Name: Windows 10
03-Jan-2018 21:18:34.566 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log OS Version: 10.0
03-Jan-2018 21:18:34.566 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Architecture: x86
03-Jan-2018 21:18:34.566 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Java Home: C:\Program Files (x86)\Java\jdk1.8.0_111\jre
03-Jan-2018 21:18:34.566 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Version: 1.8.0_111-b14
03-Jan-2018 21:18:34.566 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Vendor: Oracle Corporation
03-Jan-2018 21:18:34.566 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE: C:\Users\Dell.IntelliJIdea2017.3\system\tomcat\Unnamed_myjavamvc
03-Jan-2018 21:18:34.566 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME: E:\Program Files\tomcat9
03-Jan-2018 21:18:34.566 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.config.file=C:\Users\Dell.IntelliJIdea2017.3\system\tomcat\Unnamed_myjavamvc\conf\logging.properties
03-Jan-2018 21:18:34.566 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
03-Jan-2018 21:18:34.566 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcom.sun.management.jmxremote=
03-Jan-2018 21:18:34.566 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcom.sun.management.jmxremote.port=1099
03-Jan-2018 21:18:34.566 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcom.sun.management.jmxremote.ssl=false
03-Jan-2018 21:18:34.566 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcom.sun.management.jmxremote.authenticate=false
03-Jan-2018 21:18:34.566 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.rmi.server.hostname=127.0.0.1
03-Jan-2018 21:18:34.566 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djdk.tls.ephemeralDHKeySize=2048
03-Jan-2018 21:18:34.566 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.protocol.handler.pkgs=org.apache.catalina.webresources
03-Jan-2018 21:18:34.566 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dignore.endorsed.dirs=
03-Jan-2018 21:18:34.566 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.base=C:\Users\Dell.IntelliJIdea2017.3\system\tomcat\Unnamed_myjavamvc
03-Jan-2018 21:18:34.566 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.home=E:\Program Files\tomcat9
03-Jan-2018 21:18:34.566 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.io.tmpdir=E:\Program Files\tomcat9\temp
03-Jan-2018 21:18:34.657 信息 [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-6080"]
03-Jan-2018 21:18:34.677 信息 [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read
03-Jan-2018 21:18:34.677 信息 [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["ajp-nio-53883"]
03-Jan-2018 21:18:34.677 信息 [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read
03-Jan-2018 21:18:34.677 信息 [main] org.apache.catalina.startup.Catalina.load Initialization processed in 375 ms
03-Jan-2018 21:18:34.715 信息 [main] org.apache.catalina.core.StandardService.startInternal Starting service [Catalina]
03-Jan-2018 21:18:34.715 信息 [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet Engine: Apache Tomcat/9.0.2
03-Jan-2018 21:18:34.726 信息 [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-6080"]
03-Jan-2018 21:18:34.736 信息 [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["ajp-nio-53883"]
03-Jan-2018 21:18:34.736 信息 [main] org.apache.catalina.startup.Catalina.start Server startup in 56 ms
03-Jan-2018 21:18:36.537 严重 [RMI TCP Connection(3)-127.0.0.1] org.apache.catalina.core.StandardContext.startInternal Context [] startup failed due to previous errors
03-Jan-2018 21:18:36.537 信息 [RMI TCP Connection(3)-127.0.0.1] org.springframework.web.context.support.XmlWebApplicationContext.doClose Closing Root WebApplicationContext: startup date [Wed Jan 03 21:18:36 CST 2018]; root of context hierarchy
03-Jan-2018 21:18:44.736 信息 [ContainerBackgroundProcessor[StandardEngine[Catalina]]] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [E:\Program Files\tomcat9\webapps\manager]
03-Jan-2018 21:18:44.806 信息 [ContainerBackgroundProcessor[StandardEngine[Catalina]]] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [E:\Program Files\tomcat9\webapps\manager] has finished in [70] ms

8个回答

是不是jdk版本不对,tomcat9需要java se8以上的版本

03-Jan-2018 21:18:36.537 严重 [RMI TCP Connection(3)-127.0.0.1] org.apache.catalina.core.StandardContext.startInternal One or more listeners failed to start. Full details will be found in the appropriate container log file
03-Jan-2018 21:18:36.537 严重 [RMI TCP Connection(3)-127.0.0.1] org.apache.catalina.core.StandardContext.startInternal Context [] startup failed due to previous errors
03-Jan-2018 21:18:36.537 信息 [RMI TCP Connection(3)-127.0.0.1] org.springframework.web.context.support.XmlWebApplicationContext.doClose Closing Root WebApplicationContext: startup date [Wed Jan 03 21:18:36 CST 2018]; root of context hierarchy
[2018-01-03 09:18:36,557] Artifact myjavamvc:war exploded: Error during artifact deployment. See server log for details.
03-Jan-2018 21:18:44.736 信息 [ContainerBackgroundProcessor[StandardEngine[Catalina]]] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [E:\Program Files\tomcat9\webapps\manager]
03-Jan-2018 21:18:44.806 信息 [ContainerBackgroundProcessor[StandardEngine[Catalina]]] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [E:\Program Files\tomcat9\webapps\manager] has finished in [70] ms

看不到错误信息,你看下tomcat的日志(在idea的运行日志旁边还有两个页签,其中一个就是)里面会有报错信息

要找错误日志最下面的“严重”那条,因为函数调用是一个堆栈的关系,最下面的是最先触发的原始的错误。可能是你的spring配置问题,也可能是bean初始化丢出了异常。

你看看tomcat报错信息,然后根据报错信息着问题

好像是jdk 版本错误吧,你试着换jdk 版本

tomcat和jdk的版本是否配置好了!

没有看到具体的错误信息,tomcat这种东西不能用即换一个,没必要纠结

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问
相关内容推荐