Maven工程启动报错invalid LOC header的处理方法
发表于:2025-01-31 作者:千家信息网编辑
千家信息网最后更新 2025年01月31日,这篇文章将为大家详细讲解有关Maven工程启动报错 invalid LOC header 的处理方法,文章内容质量较高,因此小编分享给大家做个参考,希望大家阅读完这篇文章后对相关知识有一定的了解。错误
千家信息网最后更新 2025年01月31日Maven工程启动报错invalid LOC header的处理方法
这篇文章将为大家详细讲解有关Maven工程启动报错 invalid LOC header 的处理方法,文章内容质量较高,因此小编分享给大家做个参考,希望大家阅读完这篇文章后对相关知识有一定的了解。
错误日志:
严重: A child container failed during startjava.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 moreCaused 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 moreCaused 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 moreCaused 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 moreCaused 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 命令检测:
发现如下错误
[WARNING] 读取d:\repository\com\fasterxml\woodstox\woodstox-core\5.0.3\woodstox-core-5.0.3.jar时出错; 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时出错; invalid LOC header (bad signature)[WARNING] /E:/powersi/code/maven_pro/src/main/java/com/powersi/conf/common/action/DataImportAction.java: 某些输入文件使用或覆盖了已过时的 API。[WARNING] /E:/powersi/code/maven_pro/src/main/java/com/powersi/conf/common/action/DataImportAction.java: 有关详细信息, 请使用 -Xlint:deprecation 重新编译。[WARNING] /E:/powersi/code/maven_pro/src/main/java/com/powersi/conf/problem/action/ProManagerAction.java: 某些输入文件使用了未经检查或不安全的操作。[WARNING] /E:/powersi/code/maven_pro/src/main/java/com/powersi/conf/problem/action/ProManagerAction.java: 有关详细信息, 请使用 -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仓库中删除 woodstox-core 文件夹,再次maven clean install 即可
关于Maven工程启动报错 invalid LOC header 的处理方法就分享到这里了,希望以上内容可以对大家有一定的帮助,可以学到更多知识。如果觉得文章不错,可以把它分享出去让更多的人看到。
文件
有关
工程
方法
处理
信息
内容
文章
更多
知识
篇文章
错误
编译
输入
不错
过时
安全
仓库
再次
命令
数据库的安全要保护哪些东西
数据库安全各自的含义是什么
生产安全数据库录入
数据库的安全性及管理
数据库安全策略包含哪些
海淀数据库安全审计系统
建立农村房屋安全信息数据库
易用的数据库客户端支持安全管理
连接数据库失败ssl安全错误
数据库的锁怎样保障安全
对数据库数据监控报警
数据库中保存的密码
互联网科技秀
服务器没有响应 n1018
管理跨物理服务器子站
监控管理服务器怎么办
大数据和网络安全哪个好就业
fifa3超级数据库
cmd数据库实例名查询
中国青少年网络安全专业
网站域名服务器什么意思
绿盟网络安全工程师
山东鑫驰互联网农业科技有限公司
hr档案管理软件开发
目前网络安全监控的应用
吉林网络服务器机箱厂家
生物信息学数据库构建概述
互联网科技股的未来
济南质量好的服务器供货商
高校大学生网络安全发言
vivo的网络技术
简单cad软件开发视频
网络安全手抄报图文
服务器意外停机影响数据库
服务器硬盘数据克隆会丢吗
it梦幻软件开发
网络安全不烦恼
计算机软件开发区万达
山东软件开发有什么途径
软件开发定制宜昌