无法在tomcat 9上播放WAR

时间:2018-08-06 09:57:53

标签: java xml maven tomcat

在部署该项目之前,每个项目都部署良好。但是在我的tomcat上部署该项目时,会出错。通过运行其maven安装和maven测试,我没有收到任何错误。我尝试了堆栈溢出的所有问题,但仍然无法正常工作。任何建议将不胜感激。如果错过了,我将上传任何信息。非常感谢。

这是我在catalina上遇到的错误.2018-08-06.tomcat 9.0.8上的日志     2018年8月6日16:33:32.228错误[ContainerBackgroundProcessor [StandardEngine [Catalina]]] org.apache.catalina.core.ContainerBase.addChildInternal ContainerBase.addChild:开始:  org.apache.catalina.LifecycleException:无法初始化组件[org.apache.catalina.webresources.JarResourceSet@45956aaa] 引起原因:java.lang.IllegalArgumentException:java.util.zip.ZipException:无效的LOC标头(错误的签名) 原因:java.util.zip.ZipException:无效的LOC标头(错误的签名)

06-Aug-2018 16:33:32.230 error [ContainerBackgroundProcessor[StandardEngine[Catalina]]] org.apache.catalina.startup.HostConfig.deployWAR Error deploying web application archive [C:\ML\Tools\apache-tomcat-9.0.8\webapps\cubGate.war]
java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: Failed to initialize component [org.apache.catalina.webresources.JarResourceSet@45956aaa]

06-Aug-2018 16:33:32.233 INFO [ContainerBackgroundProcessor[StandardEngine[Catalina]]] org.apache.catalina.startup.HostConfig.deployWAR Deployment of web application archive [C:\ML\Tools\apache-tomcat-9.0.8\webapps\cubGate.war] has finished in [322] ms

这是我运行Maven测试的代码

[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building cubGate 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ cubGate ---
[WARNING] Using platform encoding (MS950 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory C:\ML\workspace1\cubGate\src\main\resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.7.0:compile (default-compile) @ cubGate ---
[INFO] Nothing to compile - all classes are up to date
[INFO] 
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ cubGate ---
[WARNING] Using platform encoding (MS950 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory C:\ML\workspace1\cubGate\src\test\resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.7.0:testCompile (default-testCompile) @ cubGate ---
[INFO] No sources to compile
[INFO] 
[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ cubGate ---
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.699 s
[INFO] Finished at: 2018-08-06T17:52:25+08:00
[INFO] Final Memory: 11M/155M
[INFO] ------------------------------------------------------------------------

`

0 个答案:

没有答案