如题,没有在tomcat上部署项目,只是用startup.bat启动了tomcat,
启动tomcat6时能正常启动,
启动tomcat7和8时就报错了,日志如下:
六月 05, 2016 12:03:50 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Server version: Apache Tomcat/7.0.69
六月 05, 2016 12:03:50 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Server built: Apr 11 2016 07:57:09 UTC
六月 05, 2016 12:03:50 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Server number: 7.0.69.0
六月 05, 2016 12:03:50 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: OS Name: Windows 10
六月 05, 2016 12:03:50 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: OS Version: 10.0
六月 05, 2016 12:03:50 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Architecture: amd64
六月 05, 2016 12:03:50 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Java Home: C:\Program Files\Java\jdk1.8.0_60\jre
六月 05, 2016 12:03:50 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: JVM Version: 1.8.0_60-b27
六月 05, 2016 12:03:50 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: JVM Vendor: Oracle Corporation
六月 05, 2016 12:03:50 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: CATALINA_BASE: D:\Program Files\tomcat\apache-tomcat-7.0.69
六月 05, 2016 12:03:50 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: CATALINA_HOME: D:\Program Files\tomcat\apache-tomcat-7.0.69
六月 05, 2016 12:03:50 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Djdk.tls.ephemeralDHKeySize=2048
六月 05, 2016 12:03:50 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Djava.util.logging.config.file=D:\Program Files\tomcat\apache-tomcat-7.0.69\conf\logging.properties
六月 05, 2016 12:03:50 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
六月 05, 2016 12:03:50 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Djava.endorsed.dirs=D:\Program Files\tomcat\apache-tomcat-7.0.69\endorsed
六月 05, 2016 12:03:50 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dcatalina.base=D:\Program Files\tomcat\apache-tomcat-7.0.69
六月 05, 2016 12:03:50 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dcatalina.home=D:\Program Files\tomcat\apache-tomcat-7.0.69
六月 05, 2016 12:03:50 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Djava.io.tmpdir=D:\Program Files\tomcat\apache-tomcat-7.0.69\temp
六月 05, 2016 12:03:50 上午 org.apache.catalina.core.AprLifecycleListener lifecycleEvent
信息: Loaded APR based Apache Tomcat Native library 1.1.33 using APR version 1.5.1.
六月 05, 2016 12:03:50 上午 org.apache.catalina.core.AprLifecycleListener lifecycleEvent
信息: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].
六月 05, 2016 12:03:50 上午 org.apache.catalina.core.AprLifecycleListener initializeSSL
信息: OpenSSL successfully initialized (OpenSSL 1.0.1m 19 Mar 2015)
六月 05, 2016 12:03:50 上午 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler ["http-apr-8090"]
六月 05, 2016 12:03:50 上午 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler ["ajp-apr-8009"]
六月 05, 2016 12:03:50 上午 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 952 ms
六月 05, 2016 12:03:50 上午 org.apache.catalina.core.StandardService startInternal
信息: Starting service Catalina
六月 05, 2016 12:03:50 上午 org.apache.catalina.core.StandardEngine startInternal
信息: Starting Servlet Engine: Apache Tomcat/7.0.69
六月 05, 2016 12:03:50 上午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory D:\Program Files\tomcat\apache-tomcat-7.0.69\webapps\docs
六月 05, 2016 12:03:50 上午 org.apache.tomcat.util.descriptor.DigesterFactory locationFor
警告: The XML schema [web-app_3_0.xsd] could not be found. This is very likely to break XML validation if XML validation is enabled.
六月 05, 2016 12:03:50 上午 org.apache.tomcat.util.descriptor.DigesterFactory locationFor
警告: The XML schema [web-fragment_3_0.xsd] could not be found. This is very likely to break XML validation if XML validation is enabled.
六月 05, 2016 12:03:50 上午 org.apache.tomcat.util.descriptor.DigesterFactory locationFor
警告: The XML schema [web-common_3_0.xsd] could not be found. This is very likely to break XML validation if XML validation is enabled.
六月 05, 2016 12:03:50 上午 org.apache.tomcat.util.descriptor.DigesterFactory locationFor
警告: The XML schema [javaee_6.xsd] could not be found. This is very likely to break XML validation if XML validation is enabled.
六月 05, 2016 12:03:50 上午 org.apache.tomcat.util.descriptor.DigesterFactory locationFor
警告: The XML schema [javaee_web_services_1_3.xsd] could not be found. This is very likely to break XML validation if XML validation is enabled.
六月 05, 2016 12:03:50 上午 org.apache.tomcat.util.descriptor.DigesterFactory locationFor
警告: The XML schema [javaee_web_services_client_1_3.xsd] could not be found. This is very likely to break XML validation if XML validation is enabled.
六月 05, 2016 12:03:51 上午 org.apache.catalina.core.ContainerBase addChildInternal
严重: ContainerBase.addChild: start:
org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/docs]]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:153)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:899)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:875)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1260)
at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:2002)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.NoSuchMethodError: javax.servlet.ServletContext.getClassLoader()Ljava/lang/ClassLoader;
at org.apache.catalina.startup.WebappServiceLoader.load(WebappServiceLoader.java:96)
at org.apache.catalina.startup.ContextConfig.processServletContainerInitializers(ContextConfig.java:1573)
at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1279)
at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:887)
at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:387)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5472)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
... 10 more
六月 05, 2016 12:03:51 上午 org.apache.catalina.startup.HostConfig deployDirectory
严重: Error deploying web application directory D:\Program Files\tomcat\apache-tomcat-7.0.69\webapps\docs
java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/docs]]
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:903)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:875)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1260)
at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:2002)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
启动tomcat6时能正常启动,
启动tomcat7和8时就报错了,日志如下:
六月 05, 2016 12:03:50 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Server version: Apache Tomcat/7.0.69
六月 05, 2016 12:03:50 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Server built: Apr 11 2016 07:57:09 UTC
六月 05, 2016 12:03:50 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Server number: 7.0.69.0
六月 05, 2016 12:03:50 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: OS Name: Windows 10
六月 05, 2016 12:03:50 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: OS Version: 10.0
六月 05, 2016 12:03:50 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Architecture: amd64
六月 05, 2016 12:03:50 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Java Home: C:\Program Files\Java\jdk1.8.0_60\jre
六月 05, 2016 12:03:50 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: JVM Version: 1.8.0_60-b27
六月 05, 2016 12:03:50 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: JVM Vendor: Oracle Corporation
六月 05, 2016 12:03:50 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: CATALINA_BASE: D:\Program Files\tomcat\apache-tomcat-7.0.69
六月 05, 2016 12:03:50 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: CATALINA_HOME: D:\Program Files\tomcat\apache-tomcat-7.0.69
六月 05, 2016 12:03:50 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Djdk.tls.ephemeralDHKeySize=2048
六月 05, 2016 12:03:50 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Djava.util.logging.config.file=D:\Program Files\tomcat\apache-tomcat-7.0.69\conf\logging.properties
六月 05, 2016 12:03:50 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
六月 05, 2016 12:03:50 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Djava.endorsed.dirs=D:\Program Files\tomcat\apache-tomcat-7.0.69\endorsed
六月 05, 2016 12:03:50 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dcatalina.base=D:\Program Files\tomcat\apache-tomcat-7.0.69
六月 05, 2016 12:03:50 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dcatalina.home=D:\Program Files\tomcat\apache-tomcat-7.0.69
六月 05, 2016 12:03:50 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Djava.io.tmpdir=D:\Program Files\tomcat\apache-tomcat-7.0.69\temp
六月 05, 2016 12:03:50 上午 org.apache.catalina.core.AprLifecycleListener lifecycleEvent
信息: Loaded APR based Apache Tomcat Native library 1.1.33 using APR version 1.5.1.
六月 05, 2016 12:03:50 上午 org.apache.catalina.core.AprLifecycleListener lifecycleEvent
信息: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].
六月 05, 2016 12:03:50 上午 org.apache.catalina.core.AprLifecycleListener initializeSSL
信息: OpenSSL successfully initialized (OpenSSL 1.0.1m 19 Mar 2015)
六月 05, 2016 12:03:50 上午 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler ["http-apr-8090"]
六月 05, 2016 12:03:50 上午 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler ["ajp-apr-8009"]
六月 05, 2016 12:03:50 上午 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 952 ms
六月 05, 2016 12:03:50 上午 org.apache.catalina.core.StandardService startInternal
信息: Starting service Catalina
六月 05, 2016 12:03:50 上午 org.apache.catalina.core.StandardEngine startInternal
信息: Starting Servlet Engine: Apache Tomcat/7.0.69
六月 05, 2016 12:03:50 上午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory D:\Program Files\tomcat\apache-tomcat-7.0.69\webapps\docs
六月 05, 2016 12:03:50 上午 org.apache.tomcat.util.descriptor.DigesterFactory locationFor
警告: The XML schema [web-app_3_0.xsd] could not be found. This is very likely to break XML validation if XML validation is enabled.
六月 05, 2016 12:03:50 上午 org.apache.tomcat.util.descriptor.DigesterFactory locationFor
警告: The XML schema [web-fragment_3_0.xsd] could not be found. This is very likely to break XML validation if XML validation is enabled.
六月 05, 2016 12:03:50 上午 org.apache.tomcat.util.descriptor.DigesterFactory locationFor
警告: The XML schema [web-common_3_0.xsd] could not be found. This is very likely to break XML validation if XML validation is enabled.
六月 05, 2016 12:03:50 上午 org.apache.tomcat.util.descriptor.DigesterFactory locationFor
警告: The XML schema [javaee_6.xsd] could not be found. This is very likely to break XML validation if XML validation is enabled.
六月 05, 2016 12:03:50 上午 org.apache.tomcat.util.descriptor.DigesterFactory locationFor
警告: The XML schema [javaee_web_services_1_3.xsd] could not be found. This is very likely to break XML validation if XML validation is enabled.
六月 05, 2016 12:03:50 上午 org.apache.tomcat.util.descriptor.DigesterFactory locationFor
警告: The XML schema [javaee_web_services_client_1_3.xsd] could not be found. This is very likely to break XML validation if XML validation is enabled.
六月 05, 2016 12:03:51 上午 org.apache.catalina.core.ContainerBase addChildInternal
严重: ContainerBase.addChild: start:
org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/docs]]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:153)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:899)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:875)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1260)
at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:2002)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.NoSuchMethodError: javax.servlet.ServletContext.getClassLoader()Ljava/lang/ClassLoader;
at org.apache.catalina.startup.WebappServiceLoader.load(WebappServiceLoader.java:96)
at org.apache.catalina.startup.ContextConfig.processServletContainerInitializers(ContextConfig.java:1573)
at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1279)
at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:887)
at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:387)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5472)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
... 10 more
六月 05, 2016 12:03:51 上午 org.apache.catalina.startup.HostConfig deployDirectory
严重: Error deploying web application directory D:\Program Files\tomcat\apache-tomcat-7.0.69\webapps\docs
java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/docs]]
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:903)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:875)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1260)
at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:2002)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)