Server Tomcat v9.0 Server at localhost failed to start.

牽著你的笑容發表於2019-03-13

基於ssm的maven專案,tomcat啟動報錯

控制檯資訊:

三月 13, 2019 1:30:02 上午 org.apache.catalina.startup.VersionLoggerListener log

資訊: Server.伺服器版本:        Apache Tomcat/9.0.14

三月 13, 2019 1:30:02 上午 org.apache.catalina.startup.VersionLoggerListener log

資訊: Server.構建:          Dec 6 2018 21:13:53 UTC

三月 13, 2019 1:30:02 上午 org.apache.catalina.startup.VersionLoggerListener log

資訊: Server version number: 9.0.14.0

三月 13, 2019 1:30:02 上午 org.apache.catalina.startup.VersionLoggerListener log

資訊: OS Name:               Mac OS X

三月 13, 2019 1:30:02 上午 org.apache.catalina.startup.VersionLoggerListener log

資訊: OS.版本:            10.14.2

三月 13, 2019 1:30:02 上午 org.apache.catalina.startup.VersionLoggerListener log

資訊: 結.造:          x86_64

三月 13, 2019 1:30:02 上午 org.apache.catalina.startup.VersionLoggerListener log

資訊: Java 環境變數:             /Library/Java/JavaVirtualMachines/jdk1.8.0_181.jdk/Contents/Home/jre

三月 13, 2019 1:30:02 上午 org.apache.catalina.startup.VersionLoggerListener log

資訊: JVM 版本:           1.8.0_181-b13

三月 13, 2019 1:30:02 上午 org.apache.catalina.startup.VersionLoggerListener log

資訊: JVM.供應商:            Oracle Corporation

三月 13, 2019 1:30:02 上午 org.apache.catalina.startup.VersionLoggerListener log

資訊: CATALINA_BASE:         /Users/weichuanchao/Documents/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0

三月 13, 2019 1:30:02 上午 org.apache.catalina.startup.VersionLoggerListener log

資訊: CATALINA_HOME:         /Library/Tomcat

三月 13, 2019 1:30:02 上午 org.apache.catalina.startup.VersionLoggerListener log

資訊: Command line argument: -Dcatalina.base=/Users/weichuanchao/Documents/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0

三月 13, 2019 1:30:02 上午 org.apache.catalina.startup.VersionLoggerListener log

資訊: Command line argument: -Dcatalina.home=/Library/Tomcat

三月 13, 2019 1:30:02 上午 org.apache.catalina.startup.VersionLoggerListener log

資訊: Command line argument: -Dwtp.deploy=/Users/weichuanchao/Documents/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps

三月 13, 2019 1:30:02 上午 org.apache.catalina.startup.VersionLoggerListener log

資訊: Command line argument: -Djava.endorsed.dirs=/Library/Tomcat/endorsed

三月 13, 2019 1:30:02 上午 org.apache.catalina.startup.VersionLoggerListener log

資訊: Command line argument: -Dfile.encoding=GBK

三月 13, 2019 1:30:02 上午 org.apache.catalina.core.AprLifecycleListener lifecycleEvent

資訊: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: [/Users/weichuanchao/Library/Java/Extensions:/Library/Java/Extensions:/Network/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java:.]

三月 13, 2019 1:30:02 上午 org.apache.coyote.AbstractProtocol init

資訊: 初始化協議處理器 ["http-nio-8080"]

三月 13, 2019 1:30:02 上午 org.apache.coyote.AbstractProtocol init

資訊: 初始化協議處理器 ["ajp-nio-8009"]

三月 13, 2019 1:30:02 上午 org.apache.catalina.startup.Catalina load

資訊: 伺服器在[527]毫秒內初始化

三月 13, 2019 1:30:02 上午 org.apache.catalina.core.StandardService startInternal

資訊: Starting service [Catalina]

三月 13, 2019 1:30:02 上午 org.apache.catalina.core.StandardEngine startInternal

資訊: Starting Servlet engine: [Apache Tomcat/9.0.14]

三月 13, 2019 1:30:02 上午 org.apache.catalina.core.ContainerBase startInternal

嚴重: 子容器啟動失敗

java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: 初始化元件[org.apache.catalina.webresources.JarResourceSet@37e547da]失敗。

at java.util.concurrent.FutureTask.report(FutureTask.java:122)

at java.util.concurrent.FutureTask.get(FutureTask.java:192)

at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:914)

at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:831)

at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)

at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1382)

at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1372)

at java.util.concurrent.FutureTask.run(FutureTask.java:266)

at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)

at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:134)

at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:907)

at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:262)

at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)

at org.apache.catalina.core.StandardService.startInternal(StandardService.java:423)

at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)

at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:933)

at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)

at org.apache.catalina.startup.Catalina.start(Catalina.java:637)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:498)

at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:350)

at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:492)

Caused by: org.apache.catalina.LifecycleException: 初始化元件[org.apache.catalina.webresources.JarResourceSet@37e547da]失敗。

at org.apache.catalina.util.LifecycleBase.handleSubClassException(LifecycleBase.java:441)

at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:139)

at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:173)

at org.apache.catalina.webresources.StandardRoot.startInternal(StandardRoot.java:724)

at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)

at org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:4778)

at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:4913)

at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)

at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1382)

at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1372)

at java.util.concurrent.FutureTask.run(FutureTask.java:266)

at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)

at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:134)

at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:907)

... 21 more

Caused by: java.lang.IllegalArgumentException: java.util.zip.ZipException: invalid LOC header (bad signature)

at org.apache.catalina.webresources.AbstractSingleArchiveResourceSet.initInternal(AbstractSingleArchiveResourceSet.java:143)

at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:136)

... 33 more

Caused by: java.util.zip.ZipException: invalid LOC header (bad signature)

at java.util.zip.ZipFile.read(Native Method)

at java.util.zip.ZipFile.access$1400(ZipFile.java:60)

at java.util.zip.ZipFile$ZipFileInputStream.read(ZipFile.java:734)

at java.util.zip.ZipFile$ZipFileInflaterInputStream.fill(ZipFile.java:434)

at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:158)

at sun.misc.IOUtils.readFully(IOUtils.java:65)

at java.util.jar.JarFile.getBytes(JarFile.java:425)

at java.util.jar.JarFile.getManifestFromReference(JarFile.java:193)

at java.util.jar.JarFile.getManifest(JarFile.java:180)

at org.apache.catalina.webresources.AbstractSingleArchiveResourceSet.initInternal(AbstractSingleArchiveResourceSet.java:141)

... 34 more

 

三月 13, 2019 1:30:02 上午 org.apache.catalina.core.ContainerBase startInternal

嚴重: 子容器啟動失敗

java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: 子容器啟動失敗

at java.util.concurrent.FutureTask.report(FutureTask.java:122)

at java.util.concurrent.FutureTask.get(FutureTask.java:192)

at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:914)

at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:262)

at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)

at org.apache.catalina.core.StandardService.startInternal(StandardService.java:423)

at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)

at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:933)

at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)

at org.apache.catalina.startup.Catalina.start(Catalina.java:637)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:498)

at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:350)

at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:492)

Caused by: org.apache.catalina.LifecycleException: 子容器啟動失敗

at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:926)

at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:831)

at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)

at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1382)

at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1372)

at java.util.concurrent.FutureTask.run(FutureTask.java:266)

at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)

at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:134)

at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:907)

... 13 more

Caused by: java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: 初始化元件[org.apache.catalina.webresources.JarResourceSet@37e547da]失敗。

at java.util.concurrent.FutureTask.report(FutureTask.java:122)

at java.util.concurrent.FutureTask.get(FutureTask.java:192)

at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:914)

... 21 more

Caused by: org.apache.catalina.LifecycleException: 初始化元件[org.apache.catalina.webresources.JarResourceSet@37e547da]失敗。

at org.apache.catalina.util.LifecycleBase.handleSubClassException(LifecycleBase.java:441)

at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:139)

at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:173)

at org.apache.catalina.webresources.StandardRoot.startInternal(StandardRoot.java:724)

at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)

at org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:4778)

at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:4913)

at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)

at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1382)

at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1372)

at java.util.concurrent.FutureTask.run(FutureTask.java:266)

at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)

at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:134)

at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:907)

... 21 more

Caused by: java.lang.IllegalArgumentException: java.util.zip.ZipException: invalid LOC header (bad signature)

at org.apache.catalina.webresources.AbstractSingleArchiveResourceSet.initInternal(AbstractSingleArchiveResourceSet.java:143)

at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:136)

... 33 more

Caused by: java.util.zip.ZipException: invalid LOC header (bad signature)

at java.util.zip.ZipFile.read(Native Method)

at java.util.zip.ZipFile.access$1400(ZipFile.java:60)

at java.util.zip.ZipFile$ZipFileInputStream.read(ZipFile.java:734)

at java.util.zip.ZipFile$ZipFileInflaterInputStream.fill(ZipFile.java:434)

at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:158)

at sun.misc.IOUtils.readFully(IOUtils.java:65)

at java.util.jar.JarFile.getBytes(JarFile.java:425)

at java.util.jar.JarFile.getManifestFromReference(JarFile.java:193)

at java.util.jar.JarFile.getManifest(JarFile.java:180)

at org.apache.catalina.webresources.AbstractSingleArchiveResourceSet.initInternal(AbstractSingleArchiveResourceSet.java:141)

... 34 more

 

三月 13, 2019 1:30:02 上午 org.apache.catalina.startup.Catalina start

嚴重: 所必需的服務元件啟動失敗,所以無法啟動Tomcat

org.apache.catalina.LifecycleException: 子容器啟動失敗

at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:926)

at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:262)

at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)

at org.apache.catalina.core.StandardService.startInternal(StandardService.java:423)

at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)

at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:933)

at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)

at org.apache.catalina.startup.Catalina.start(Catalina.java:637)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:498)

at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:350)

at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:492)

Caused by: java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: 子容器啟動失敗

at java.util.concurrent.FutureTask.report(FutureTask.java:122)

at java.util.concurrent.FutureTask.get(FutureTask.java:192)

at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:914)

... 13 more

Caused by: org.apache.catalina.LifecycleException: 子容器啟動失敗

at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:926)

at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:831)

at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)

at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1382)

at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1372)

at java.util.concurrent.FutureTask.run(FutureTask.java:266)

at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)

at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:134)

at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:907)

... 13 more

Caused by: java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: 初始化元件[org.apache.catalina.webresources.JarResourceSet@37e547da]失敗。

at java.util.concurrent.FutureTask.report(FutureTask.java:122)

at java.util.concurrent.FutureTask.get(FutureTask.java:192)

at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:914)

... 21 more

Caused by: org.apache.catalina.LifecycleException: 初始化元件[org.apache.catalina.webresources.JarResourceSet@37e547da]失敗。

at org.apache.catalina.util.LifecycleBase.handleSubClassException(LifecycleBase.java:441)

at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:139)

at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:173)

at org.apache.catalina.webresources.StandardRoot.startInternal(StandardRoot.java:724)

at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)

at org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:4778)

at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:4913)

at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)

at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1382)

at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1372)

at java.util.concurrent.FutureTask.run(FutureTask.java:266)

at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)

at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:134)

at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:907)

... 21 more

Caused by: java.lang.IllegalArgumentException: java.util.zip.ZipException: invalid LOC header (bad signature)

at org.apache.catalina.webresources.AbstractSingleArchiveResourceSet.initInternal(AbstractSingleArchiveResourceSet.java:143)

at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:136)

... 33 more

Caused by: java.util.zip.ZipException: invalid LOC header (bad signature)

at java.util.zip.ZipFile.read(Native Method)

at java.util.zip.ZipFile.access$1400(ZipFile.java:60)

at java.util.zip.ZipFile$ZipFileInputStream.read(ZipFile.java:734)

at java.util.zip.ZipFile$ZipFileInflaterInputStream.fill(ZipFile.java:434)

at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:158)

at sun.misc.IOUtils.readFully(IOUtils.java:65)

at java.util.jar.JarFile.getBytes(JarFile.java:425)

at java.util.jar.JarFile.getManifestFromReference(JarFile.java:193)

at java.util.jar.JarFile.getManifest(JarFile.java:180)

at org.apache.catalina.webresources.AbstractSingleArchiveResourceSet.initInternal(AbstractSingleArchiveResourceSet.java:141)

... 34 more

 

三月 13, 2019 1:30:02 上午 org.apache.coyote.AbstractProtocol pause

資訊: Pausing ProtocolHandler ["http-nio-8080"]

三月 13, 2019 1:30:02 上午 org.apache.coyote.AbstractProtocol pause

資訊: Pausing ProtocolHandler ["ajp-nio-8009"]

三月 13, 2019 1:30:02 上午 org.apache.catalina.core.StandardService stopInternal

資訊: Stopping service [Catalina]

三月 13, 2019 1:30:02 上午 org.apache.coyote.AbstractProtocol destroy

資訊: 正在摧毀協議處理器 ["http-nio-8080"]

三月 13, 2019 1:30:02 上午 org.apache.coyote.AbstractProtocol destroy

資訊: 正在摧毀協議處理器 ["ajp-nio-8009"]

 

 

解決方法:

 

轉發請註明:http://my.csdn.net/zhulangfly

 

相關文章