這篇文章將為大家詳細(xì)講解有關(guān)Maven工程啟動(dòng)報(bào)錯(cuò) invalid LOC header 的處理方法,文章內(nèi)容質(zhì)量較高,因此小編分享給大家做個(gè)參考,希望大家閱讀完這篇文章后對(duì)相關(guān)知識(shí)有一定的了解。
創(chuàng)新互聯(lián)建站是專業(yè)的巫溪網(wǎng)站建設(shè)公司,巫溪接單;提供網(wǎng)站設(shè)計(jì)、成都網(wǎng)站建設(shè),網(wǎng)頁(yè)設(shè)計(jì),網(wǎng)站設(shè)計(jì),建網(wǎng)站,PHP網(wǎng)站建設(shè)等專業(yè)做網(wǎng)站服務(wù);采用PHP框架,可快速的進(jìn)行巫溪網(wǎng)站開(kāi)發(fā)網(wǎng)頁(yè)制作和功能擴(kuò)展;專業(yè)做搜索引擎喜愛(ài)的網(wǎng)站,專業(yè)的做網(wǎng)站團(tuán)隊(duì),希望更多企業(yè)前來(lái)合作!
錯(cuò)誤日志:
嚴(yán)重: A child container failed during start java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/maven_pro]] at java.util.concurrent.FutureTask.report(Unknown Source) at java.util.concurrent.FutureTask.get(Unknown Source) at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:941) at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:872) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1421) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1411) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/maven_pro]] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:167) ... 6 more Caused by: org.apache.catalina.LifecycleException: Failed to start component [org.apache.catalina.webresources.StandardRoot@65ffa54a] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:167) at org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:4868) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5003) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) ... 6 more Caused by: org.apache.catalina.LifecycleException: Failed to initialize component [org.apache.catalina.webresources.JarResourceSet@eb36d16] at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:112) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:140) at org.apache.catalina.webresources.StandardRoot.startInternal(StandardRoot.java:724) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) ... 9 more Caused by: java.lang.IllegalArgumentException: java.util.zip.ZipException: invalid LOC header (bad signature) at org.apache.catalina.webresources.AbstractSingleArchiveResourceSet.initInternal(AbstractSingleArchiveResourceSet.java:142) at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:107) ... 12 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(Unknown Source) at java.util.zip.ZipFile$ZipFileInputStream.read(Unknown Source) at java.util.zip.ZipFile$ZipFileInflaterInputStream.fill(Unknown Source) at java.util.zip.InflaterInputStream.read(Unknown Source) at sun.misc.IOUtils.readFully(Unknown Source) at java.util.jar.JarFile.getBytes(Unknown Source) at java.util.jar.JarFile.getManifestFromReference(Unknown Source) at java.util.jar.JarFile.getManifest(Unknown Source) at org.apache.catalina.webresources.AbstractSingleArchiveResourceSet.initInternal(AbstractSingleArchiveResourceSet.java:140) ... 13 more
使用 maven test 命令檢測(cè):
發(fā)現(xiàn)如下錯(cuò)誤
[WARNING] 讀取d:\repository\com\fasterxml\woodstox\woodstox-core\5.0.3\woodstox-core-5.0.3.jar時(shí)出錯(cuò); invalid LOC header (bad signature)
[INFO] Scanning for projects... [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building maven_pro Maven Webapp 0.0.1-SNAPSHOT [INFO] ------------------------------------------------------------------------ [WARNING] The POM for com.powersi:powerbase:jar:1.0.0 is missing, no dependency information available [WARNING] The POM for com.powersi:powermarker:jar:1.0.0 is missing, no dependency information available [WARNING] The POM for oracle.jdbc:OracleDriver:jar:12.1.0.2 is missing, no dependency information available [WARNING] The POM for org.apache.dubbo:dubbo-all:jar:2.7.0 is missing, no dependency information available [WARNING] The POM for commons-beanutils:commons-beanutils:jar:1.8.0 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details [WARNING] The POM for com.yinhai:bcp-dubbocs:jar:1.0.0 is missing, no dependency information available [WARNING] The POM for com.powersi.biz:commonbiz:jar:1.0 is missing, no dependency information available [WARNING] The POM for com.powersi.biz:sicp3_enc:jar:1.0 is missing, no dependency information available [WARNING] The POM for com.powersi.biz:PowerFile_fat:jar:1.0 is missing, no dependency information available [WARNING] The POM for com.powersi.biz:pd_analysis:jar:1.0 is missing, no dependency information available [WARNING] The POM for commons-net:commons-net:jar:2.0 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details [WARNING] The POM for org.apache.struts:struts:jar:1.0 is missing, no dependency information available [WARNING] The POM for org.aspectj.weaver:aspectjweaver:jar:1.9.1 is missing, no dependency information available [WARNING] The POM for com.aspose.words:asposewords:jar:jdk16:14.11.0.0 is missing, no dependency information available [WARNING] The artifact javax.xml:jaxb-api:pom:2.1 has been relocated to javax.xml.bind:jaxb-api:pom:2.1 [INFO] [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ maven_pro --- [INFO] Using 'GBK' encoding to copy filtered resources. [INFO] Copying 49 resources [INFO] [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ maven_pro --- [INFO] Changes detected - recompiling the module! [INFO] Compiling 489 source files to E:\powersi\code\maven_pro\target\classes [WARNING] 讀取d:\repository\com\fasterxml\woodstox\woodstox-core\5.0.3\woodstox-core-5.0.3.jar時(shí)出錯(cuò); invalid LOC header (bad signature) [WARNING] /E:/powersi/code/maven_pro/src/main/java/com/powersi/conf/common/action/DataImportAction.java: 某些輸入文件使用或覆蓋了已過(guò)時(shí)的 API。 [WARNING] /E:/powersi/code/maven_pro/src/main/java/com/powersi/conf/common/action/DataImportAction.java: 有關(guān)詳細(xì)信息, 請(qǐng)使用 -Xlint:deprecation 重新編譯。 [WARNING] /E:/powersi/code/maven_pro/src/main/java/com/powersi/conf/problem/action/ProManagerAction.java: 某些輸入文件使用了未經(jīng)檢查或不安全的操作。 [WARNING] /E:/powersi/code/maven_pro/src/main/java/com/powersi/conf/problem/action/ProManagerAction.java: 有關(guān)詳細(xì)信息, 請(qǐng)使用 -Xlint:unchecked 重新編譯。 [INFO] [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ maven_pro --- [INFO] Using 'GBK' encoding to copy filtered resources. [INFO] Copying 0 resource [INFO] [INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ maven_pro --- [INFO] Nothing to compile - all classes are up to date [INFO] [INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ maven_pro --- [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 9.721 s [INFO] Finished at: 2019-09-11T15:45:19+08:00 [INFO] Final Memory: 42M/581M [INFO] ------------------------------------------------------------------------
在本地maven倉(cāng)庫(kù)中刪除 woodstox-core 文件夾,再次maven clean install 即可
關(guān)于Maven工程啟動(dòng)報(bào)錯(cuò) invalid LOC header 的處理方法就分享到這里了,希望以上內(nèi)容可以對(duì)大家有一定的幫助,可以學(xué)到更多知識(shí)。如果覺(jué)得文章不錯(cuò),可以把它分享出去讓更多的人看到。
標(biāo)題名稱:Maven工程啟動(dòng)報(bào)錯(cuò)invalidLOCheader的處理方法
鏈接分享:http://jinyejixie.com/article8/jjhjip.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供網(wǎng)站維護(hù)、面包屑導(dǎo)航、虛擬主機(jī)、建站公司、搜索引擎優(yōu)化、定制開(kāi)發(fā)
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來(lái)源: 創(chuàng)新互聯(lián)