主頁 > 知識庫 > tomcat啟動報錯:java.util.zip.ZipException的解決方法

tomcat啟動報錯:java.util.zip.ZipException的解決方法

熱門標(biāo)簽:外呼系統(tǒng)坐席費(fèi)計(jì)入會計(jì)哪個科目 達(dá)亞電銷機(jī)器人官網(wǎng) 電銷機(jī)器人怎么接線路 高德地圖標(biāo)注好做嗎 如何分析地圖標(biāo)注 撫順地圖標(biāo)注 電銷機(jī)器人價值 大連400電話如何申請 新余高德地圖標(biāo)注怎么修改

發(fā)現(xiàn)問題

早上起來報錯誤,Jenkins打包到tomcat服務(wù)器,死活啟動不起來,一些定時任務(wù)也沒跑成功。

報錯如下:

org.apache.catalina.startup.ContextConfig.beforeStart Exception fixing docBase for context [/test]
 java.util.zip.ZipException: error in opening zip file
 at java.util.zip.ZipFile.open(Native Method)
 at java.util.zip.ZipFile.<init>(ZipFile.java:219)
 at java.util.zip.ZipFile.<init>(ZipFile.java:149)
 at java.util.jar.JarFile.<init>(JarFile.java:166)
 at java.util.jar.JarFile.<init>(JarFile.java:103)
 at sun.net.www.protocol.jar.URLJarFile.<init>(URLJarFile.java:93)
 at sun.net.www.protocol.jar.URLJarFile.getJarFile(URLJarFile.java:69)
 at sun.net.www.protocol.jar.JarFileFactory.get(JarFileFactory.java:99)
 at sun.net.www.protocol.jar.JarURLConnection.connect(JarURLConnection.java:122)
 at sun.net.www.protocol.jar.JarURLConnection.getJarFile(JarURLConnection.java:89)
 at org.apache.catalina.startup.ExpandWar.expand(ExpandWar.java:130)
 at org.apache.catalina.startup.ContextConfig.fixDocBase(ContextConfig.java:618)
 at org.apache.catalina.startup.ContextConfig.beforeStart(ContextConfig.java:744)
 at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:307)
 at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:95)
 at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
 at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:402)
 at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
 at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:725)
 at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:701)
 at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717)
 at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:945)
 at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1795)
 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)

04-Jan-2018 09:23:43.063 SEVERE [localhost-startStop-1] org.apache.catalina.core.ContainerBase.addChildInternal ContainerBase.addChild: start: 
 org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/test]]
 at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
 at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:725)
 at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:701)
 at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717)
 at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:945)
 at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1795)
 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: org.apache.catalina.LifecycleException: Failed to start component [org.apache.catalina.webresources.StandardRoot@778c717c]
 at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
 at org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:4928)
 at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5058)
 at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
 ... 10 more
Caused by: org.apache.catalina.LifecycleException: Failed to initialize component [org.apache.catalina.webresources.JarResourceSet@5067d644]
 at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:106)
 at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:139)
 at org.apache.catalina.webresources.StandardRoot.startInternal(StandardRoot.java:690)
 at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
 ... 13 more
Caused by: java.lang.IllegalArgumentException: java.util.zip.ZipException: error in opening zip file
 at org.apache.catalina.webresources.JarResourceSet.initInternal(JarResourceSet.java:96)
 at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
 ... 16 more
Caused by: java.util.zip.ZipException: error in opening zip file
 at java.util.zip.ZipFile.open(Native Method)
 at java.util.zip.ZipFile.<init>(ZipFile.java:219)
 at java.util.zip.ZipFile.<init>(ZipFile.java:149)
 at java.util.jar.JarFile.<init>(JarFile.java:166)
 at java.util.jar.JarFile.<init>(JarFile.java:103)
 at org.apache.catalina.webresources.JarResourceSet.initInternal(JarResourceSet.java:88)
 ... 17 more

解決方法

糾結(jié)了半天,發(fā)現(xiàn)tomcat/webapps/test.war包,沒有解壓,搜了一會資料,各種遇到的問題似乎都不一樣,以為war包有問題,自己手動傳了一個進(jìn)去,也沒解決,同時也沒解壓。我看了一下磁盤空間,。

[]# df -h
Filesystem   Size Used Avail Use% Mounted on
/dev/mapper/VolGroup-lv_root 45G 45G 0 100% /
tmpfs    16G 72K 16G 1% /dev/shm
/dev/sda1   485M 40M 421M 9% /boot

發(fā)現(xiàn)磁盤空間滿了,刪掉一些日志文件,清理一些垃圾歷史文件,騰出一些磁盤空間,好嘛,解決了,可以部署了,啟動也沒報錯。

總結(jié)

以上就是這篇文章的全部內(nèi)容了,希望本文的內(nèi)容對大家的學(xué)習(xí)或者工作具有一定的參考學(xué)習(xí)價值,如果有疑問大家可以留言交流,謝謝大家對腳本之家的支持。

標(biāo)簽:楊凌 衡水 新鄉(xiāng) 遼源 海東 湖南 黃石 南通

巨人網(wǎng)絡(luò)通訊聲明:本文標(biāo)題《tomcat啟動報錯:java.util.zip.ZipException的解決方法》,本文關(guān)鍵詞  tomcat,啟動,報錯,java.util.zip.ZipException,;如發(fā)現(xiàn)本文內(nèi)容存在版權(quán)問題,煩請?zhí)峁┫嚓P(guān)信息告之我們,我們將及時溝通與處理。本站內(nèi)容系統(tǒng)采集于網(wǎng)絡(luò),涉及言論、版權(quán)與本站無關(guān)。
  • 相關(guān)文章
  • 下面列出與本文章《tomcat啟動報錯:java.util.zip.ZipException的解決方法》相關(guān)的同類信息!
  • 本頁收集關(guān)于tomcat啟動報錯:java.util.zip.ZipException的解決方法的相關(guān)信息資訊供網(wǎng)民參考!
  • 推薦文章