文档章节

【Maven】工程启动报错 invalid LOC header (bad signature)

zw965
 zw965
发布于 09/11 20:47
字数 808
阅读 19
收藏 0
  1. 错误日志:
严重: 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
  1. 使用 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] ------------------------------------------------------------------------
  1. 在本地maven仓库中删除 woodstox-core 文件夹,再次maven clean install 即可

© 著作权归作者所有

zw965
粉丝 1
博文 49
码字总数 6019
作品 0
长沙
高级程序员
私信 提问
创建项目勾选所有权系子系统时编译报错

@Koala_考拉 你好,想跟你请教个问题:编译时 [INFO] koala ............................................. SUCCESS [0.503s] [INFO] koala-conf ..............................................

JMYang
2014/07/08
760
1
maven中遇到的问题,报错

maven中央仓库地址pom.xml配置 <!-- 设定主仓库,按设定顺序进行查找。 --> <repositories> <!-- 如有Nexus私服, 取消注释并指向正确的服务器地址. <repository> <id>nexus-repos</id> <name......

writeademo
2016/10/31
545
0
invalid LOC header (bad signature)

问题 每当导入一个从别的Maven项目的时候,总有那么几次会出现下面这个错误。 invalid LOC header (bad signature) 解决 网上给出的解决方案一般就是找到有问题的jar包,删除之就好了。下面这...

yysue
2018/03/26
273
0
tomcat启动报错 java.util.zip.ZipException: invalid CEN header (bad signature)

war包部署到tomcat里,启动时报错: 根据ZipException报错,怀疑是jar包有损坏。 为了定位是哪个jar包,使用下面shell脚本,用jar命令测试jar包: 正常的jar包只打印出jar的文件名,损坏的j...

sy9876
2018/08/07
0
0
项目搭建问题

尝试搭建SpringMVC的maven项目,但是启动一直在报错: 严重: A child container failed during start java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: ......

流风回雪pj
2017/05/16
160
1

没有更多内容

加载失败,请刷新页面

加载更多

iota硬件集成实战教程

本教程面向iota初学者,我们将学习如何开发基于指定IOTA地址的余额来闭合或断开一个连接到树莓派上的继电器,点亮或熄灭LED。教程虽然简单,但足以展示IOTA的强大能力。 我们将使用一个联网的...

汇智网教程
6分钟前
0
0
influxdb-1.7.8绿色安装-centos7

influxdb作为一款性能强悍的时序数据库, 一旦拥有, 别无所求. 本文介绍它的绿色安装方法. 环境准备, 下载, 解压. [dev5@7bdc6644c7c4 influxdb-1.7.8] cat /etc/redhat-release CentOS Linu...

dev5
10分钟前
0
0
Java 11 新特性

java 11 是继 java8 之后的第一个LTS版本。因此有必要针对它进行一些深入的学习,虽然短时间内java8 还是主流版本。当然,如果从java8基础上升级,几乎可以确定目标就是java11。 同时也要明确...

polly
11分钟前
0
0
SVG

本文转载于:专业的前端网站➯SVG SVG 是使用 XML 来描述二维图形和绘图程序的语言。 SVG 使用 XML 编写。 一、什么是SVG? SVG 指可伸缩矢量图形,使用 XML 格式定义图形,SVG图像在放大或改...

前端老手
12分钟前
1
0
zabbix server proxy

server./configure --prefix=/data/zabbix3.4 --enable-server --enable-agent --with-net-snmp --with-libcurl --enable-proxy --with-mysql=/data/mysql-5.6.44-linux-glibc2.12-x8......

雁南飞丶
13分钟前
0
0

没有更多内容

加载失败,请刷新页面

加载更多

返回顶部
顶部